museuminabox / brain

Where the magic happens.
4 stars 0 forks source link

Switch to the RC522 RFID reader #92

Closed amcewen closed 5 years ago

amcewen commented 5 years ago

Are any of the other RFID/NFC readers better/cheaper?

amcewen commented 5 years ago

I tried a bunch of the PN532-based readers:

I got all of them working over i2c with an ESP32, and also with an Arduino Uno, using the Adafruit library.

However, the blue and red ones were intermittent in which tags they could read. Nothing specific to the type of tag, but only about half of the tags I tried (MiFare Classic 1K, NTAG203, NTAG213, NTAG216) worked :-(

The Adafruit reader could read all the tags just fine, but is bigger than the SL030 and more expensive.

I've just got one last reader to try - an RC522. They're ~£4 each.

amcewen commented 5 years ago

The RC522 seems to work okay - it seems to read all the tags okay (all the ones I've got knocking around anyway).

Looking on Aliexpress, they're available for ~$1.50 each (for example).

The only downside to them seems to be that they don't have an LED to indicate when they've detected a card, so there's not that additional bit of feedback to let you know you've got the tag in the right place.

george08 commented 5 years ago

Should we close this and make a new Issue about any code rewriting that's required @amcewen?

amcewen commented 5 years ago

Don't think it makes a lot of difference. The rename makes it more obvious that it could also collect the code changes here too - and that's the remaining bit of work required now.

amcewen commented 5 years ago

Code is done for this, and integrated into the rest of the brain. Needs plenty more testing but we can open new bugs (or reopen this) if we find any problems.