miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.76k stars 1.44k forks source link

multiple RFID 552 scanners problem #263

Closed propiro closed 7 years ago

propiro commented 7 years ago

Hello, While using this library, im getting really weird results. I must connect 5 scanners to one arduino. My scanners share MISO SCK MOSI and power lines, and when i connect 1 or 2, they work as expected, but when i connect 3,4,5, all of them stop working - only if i disconnect MISO lines of any 3 of them, it'll make other two work. At this point im clueless, i've tried using voltage of 3.3, 5v, using 5 to 3.3v stabilizers, basically anything i can thing of. I've tried two MEGA arduinos, one leonardo and one UNO, on all of them i have similiar problem.

http://nopaste.linux-dev.org/?1120284 here is code, from multireader example, with added 5 scanners.

simbadMarino commented 7 years ago

Check voltage drop⁣ in your 3.3v or 5.0v, looks like you are exceeding the maximum current and this is causing malfunction in your setup. Good luck!

Enviado desde BlueMail ​

En 26 nov. 2016 21:14, en 21:14, propiro notifications@github.com escribió:

Hello, While using this library, im getting really weird results. I must connect 5 scanners to one arduino. My scanners share MISO SCK MOSI and power lines, and when i connect 1 or 2, they work as expected, but when i connect 3,4,5, all of them stop working - only if i disconnect MISO lines of any 3 of them, it'll make other two work. At this point im clueless, i've tried using voltage of 3.3, 5v, using 5 to 3.3v stabilizers, basically anything i can thing of. I've tried two MEGA arduinos, one leonardo and one UNO, on all of them i have similiar problem.

http://nopaste.linux-dev.org/?1120284 here is code, from multireader example, with added 5 scanners.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/miguelbalboa/rfid/issues/263

Rotzbua commented 7 years ago

maybe duplicate of #191 and #227

Rotzbua commented 7 years ago

In general my experience with spi:

Try:

or

The correct way to use multiple devices is to use a multiplexer. (see https://github.com/miguelbalboa/rfid/issues/191#issuecomment-242631153)

Rotzbua commented 7 years ago

@propiro Did you solved your problem? Can you share your experience with us? Otherwise I will close this issue within 14 days. Thanks.

propiro commented 7 years ago

Hello, Sadly, it was caused by noise on MISO lines, and i was unable to solve it, using multiplexing or transistor gates. Client i was makign this project for agreed just to but 5 cheap arduinos, so i hook them together to one arduino mega that controlled locks, and everything worked.

Best Regards, A.

2016-12-23 23:51 GMT+01:00 Rotzbua notifications@github.com:

@propiro https://github.com/propiro Did you solved your problem? Can you share your experience with us? Otherwise I will close this issue within 14 days. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/miguelbalboa/rfid/issues/263#issuecomment-269054031, or mute the thread https://github.com/notifications/unsubscribe-auth/AUF2add90UbvCvnja8U2rViHR6T_A8GRks5rLFBsgaJpZM4K9DQu .

Rotzbua commented 7 years ago

@propiro Cool! Thanks for sharing your knowledge with us. Merry Christmas.