JohnRDoeP
Posts: 6
Joined: Mon Mar 09, 2015 9:39 pm

[SOLVED] Active RFID Between arduino and raspberry pi

Mon Mar 09, 2015 9:48 pm

im trying to make a raspberry pi and arduino communicate with small amount of data over 10 meters with RFID is it possible with two Mifare RC522?, and if not can you suggest something (i really don't understand RFID... yet)

this is the setup i want to achieve: one raspberry does some stuff and sends either true or false to an arduino lily (the round small one) that receives and then acts depending on the massage, also the arduino needs to be able to send a massage that's always true and the arduino needs to be on at all times so that it can receive and last but not least the arduino works on a 400mA battery that need to be enough for somewhere around a year
Last edited by JohnRDoeP on Sat Mar 14, 2015 6:54 pm, edited 2 times in total.

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: Active RFID Between arduino and raspberry pi

Mon Mar 09, 2015 10:30 pm

Use Bluetooth, or wireless UART dongles, nrf24l01 dongles or other, even WiFi direct.

JohnRDoeP
Posts: 6
Joined: Mon Mar 09, 2015 9:39 pm

Re: Active RFID Between arduino and raspberry pi

Mon Mar 09, 2015 10:35 pm

but it needs to take as less power as possible

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: Active RFID Between arduino and raspberry pi

Mon Mar 09, 2015 10:51 pm

JohnRDoeP wrote:but it needs to take as less power as possible
Bluetooth low energy (4.0) or those UART and nrf24l01 dongles are pretty much low power. RFID is not designed for 2 side communication.

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Active RFID Between arduino and raspberry pi

Tue Mar 10, 2015 11:19 am

http://www.raspberrypi.org/forums/viewt ... 53#p658053

I use RS-485 and modbus with very cheap RS-485 converter.

I did all the data base and the decoding. + the Arduino code.

Check the small video.

Daniel

JohnRDoeP
Posts: 6
Joined: Mon Mar 09, 2015 9:39 pm

Re: Active RFID Between arduino and raspberry pi

Sat Mar 14, 2015 12:07 pm

i described what i need a Little better, i don't know if what you suggested is what i need

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Active RFID Between arduino and raspberry pi

Sat Mar 14, 2015 12:46 pm

First you said 10 meters but you didn't tell us if you are using wires. If it is then the power could be provided by the cable.
This is what I do. The power is provided with the cable . This way the power problem is not an issue.

If it is wireless than you will need to use a contact switch to power the Arduino when you insert a card. More or less like an hotel door . This is the only way to keep your power down. The Arduino could be in low power mode, or completely off, and the activation of the switch will wake/power it up.

After the card is inserted and the Arduino is fully operational , the card is read and sent to the Raspberry PI server via RF. The RF24L01 or a 433Mhz device will be good for that.

I don't like the RF method because you will need to encrypt the data for security reason and this is another debate about protection on IOT.

P.S. A Xbee transmitter could be easy encrypted, it's a build-in function, and will be my choice if you go RF.

Daniel

JohnRDoeP
Posts: 6
Joined: Mon Mar 09, 2015 9:39 pm

Re: Active RFID Between arduino and raspberry pi

Sat Mar 14, 2015 12:55 pm

danjperron wrote:First you said 10 meters but you didn't tell us if you are using wires. If it is then the power could be provided by the cable.
This is what I do. The power is provided with the cable . This way the power problem is not an issue.

If it is wireless than you will need to use a contact switch to power the Arduino when you insert a card. More or less like an hotel door . This is the only way to keep your power down. The Arduino could be in low power mode, or completely off, and the activation of the switch will wake/power it up.

After the card is inserted and the Arduino is fully operational , the card is read and sent to the Raspberry PI server via RF. The RF24L01 or a 433Mhz device will be good for that.

I don't like the RF method because you will need to encrypt the data for security reason and this is another debate about protection on IOT.

P.S. A Xbee transmitter could be easy encrypted, it's a build-in function, and will be my choice if you go RF.

Daniel
first of all thanks. the arduino needs to be able to receive at any moment without any user intervention and the raspberry pi will be turned on with a switch by a user, i dont need to protect the data all i need is to send a signal of true or false nothing more. about the 10 meters, i need it to send the data wirelessly over 10 meters and be sure that even in horrible conditions it will work.

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Active RFID Between arduino and raspberry pi

Sat Mar 14, 2015 1:03 pm

With 400ma battery for one full year.

I won't use a Arduino but something like some very low power cpu! Look at the newest TI MP430 cpu.

If it is outside add some solar cell to charge the battery.

Use separate 433Mhz receiver and transmitter.

Daniel

JohnRDoeP
Posts: 6
Joined: Mon Mar 09, 2015 9:39 pm

Re: Active RFID Between arduino and raspberry pi

Sat Mar 14, 2015 1:08 pm

danjperron wrote:With 400ma battery for one full year.

I won't use a Arduino but something like some new very low power cpu! something like TI MP430 cpu.

If it is outside add some solar cell to charge the battery.

Use separate 433Mhz receiver and transmitter.

Daniel
i think the arduino lily (the small round one) is very low on battery and the idea for a solar cell is great. do you have any 433Mhz receiver and transmitter to suggest?



Return to “Automation, sensing and robotics”