[Solved]M5Stack, Arduino, RFID Module example needed
-
@ajb2k3 Okay, I found the I2C tester and ran it. It shows the addresses 0x68 and 0x75. With the device attached it also shows 0x28. When not attached this disappears. Does this mean the device can be found and the hardware wiring is okay? If so the focus is on a software problem.
-
@kees said in M5Stack, Arduino, RFID Module example needed:
@ajb2k3 Okay, I found the I2C tester and ran it. It shows the addresses 0x68 and 0x75. With the device attached it also shows 0x28. When not attached this disappears. Does this mean the device can be found and the hardware wiring is okay? If so the focus is on a software problem.
Yes, that is correct, 0x28 is the address so it is being read.
The RFID uses the MFRC522 to read and write to 13.56MHz devices.
Try looking for guides on the MRFC522 readers -
Thanks, this was very helpful. So now the problem is software. As I stated in the first part of the topic: I use software found at https://github.com/miguelbalboa/rfid. Has anyone experience with this in combination with Arduino, M5Stack and the RFID Module with RC522? Or perhaps anyone tells me to use a different IDE and language (I have enough experience with C, but not C++). All suggestions are welcome.
-
@Kees Have you tried this code?
https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/RFID/Arduino -
There is sample code here - https://docs.m5stack.com/#/en/unit/rfid
I have ordered one and will see what I can do, btw had to order cards from elsewhere.
-
Thanks, both(?). I ran the example and it does seem to work. I also saw that an addition for this library is in the pipeline: https://github.com/miguelbalboa/rfid to also support ESP32.
I can continue building software for the M5Stack hardware with my requirements using, among others, the RFID module, the same ajb2k3 ordered.
Again, thanks!!! -
@kees Have a good day.
-
@kees said in [Solved]M5Stack, Arduino, RFID Module example needed:
Thanks, both(?). I ran the example and it does seem to work. I also saw that an addition for this library is in the pipeline: https://github.com/miguelbalboa/rfid to also support ESP32.
I can continue building software for the M5Stack hardware with my requirements using, among others, the RFID module, the same ajb2k3 ordered.
Again, thanks!!!The code base doesn't support I2C which is used By the M5Stack device.
-
@ajb2k3 To understand correctly. The M5Stack can use both SPI and I2C (as does the ESP32), however the RFID device I have (and you ordered) only uses I2C, and the code for the library I mentioned only supports SPI. The code you both mentioned supports I2C (Grove Port device). So assuming the tag functions suffice I should use that. Correct or nonsense.
-
Yes, you should use the I2C code to experiment. Looks like I won’t be able to help more for another two weeks until mine arrives
-
Hi,
Sorry for pulling this olde thread up.
I really need an Arduino example on how to read and write I can't seem to find any examples on that.
Best regards,
Christian