Getting the RFID-RC522 to work! [SOLVED]


#267

That’s a bit more complicated then, since this is a forum dedicated to Particle devices.
While a lot of things are similar to Arduino, not everything is and hence we may not be able to help with your specific question.
You may be better off with a community that explicitly targets Arduinos.

But if we spot something, we may still point you to it.


#268

Ok I didn’t know. Well thanks anyway :wink:


#269

Hello.

I don’t know if this is the right post but i have one week with one same problem.

I have tested this python code

https://github.com/mxgxw/MFRC522-python

Inside with one raspberry and one MFRC522, and it works great!, It does the authentication.

I have translated this code to STM32F0, and it get rights the UID but it get MI_NOTAGERROR when I tried to pass the SelectTag step and one MI_ERR when I tried to do the authentication step.

I suppose that the problem was SPI, because I had to translate SPI function from python to STM32F.

I simulated and used Hardware SPI. In both cases I can read register, even I can get right ID but I have problems with SelectTag and Authentication process. It seems that errors are when I tried to send more than 2 bytes to MFRC522_REG_FIFO_DATA.

What is wrong?

Thanks in advance.

Best regards.

Francis.


#270

@francisjjp, this is a forum for Particle devices, Photon and Electron. If you were using one of those devices we could help you but you are not.


#271

Hello peekay123.

Sorry.

Anyway, thanks!


#272

Hello All !
I have a particle photon working with a RFID-RC522 board. It works great for reading the board. I am triggering a relay based on successful reading of a card and that works great, and will swipe and trigger the relay forever.
However, when i hook up a door lock to the relay, i can get one or two swipes before the card becomes unresponsive.
The relay (SRD-5VDC-SL-C) is using a separate 5 v power supply and I have a diode on the common ground with the photon. I do not have a diode on the trigger to the relay (have to get another one :)) just in case the door lock / relay are sending voltage back.
The door lock is using a separate 12 v power supply.
It seems to be a shielding issue, it just triggered 11 times in a row with the door lock.
When I reset the photon, it will work again. I am considering adding a system.reset after a successful door open, but would rather not.
Is there a way to actually reset the RFID card? i thought there was a reset() but it is not recognized.
Has anyone ran into a similar issue?

// This #include statement was automatically added by the Particle IDE.
#include <MFRC522.h>

#273

If your relay has not got a (built-in) flyback diode, you will definetly see some effect to the common ground possibly upsetting - and maybe over time damaging - your device.


#274

(SRD-5VDC-SL-C)
Get this one.


#275

Hello ,someone can help me ?
my rfid522 i use library code the original but something error . :frowning:


#276

What device are you trying to program? This forum is dedicated to the Particle product suite, and it seems as though you’re trying to flash an Arduino by the looks of the IDE.


#277

Please no double posting!


#278

Ignore it. You almost there. :stuck_out_tongue_winking_eye:


#279

ah sorry. yes it’s arduino


#280

hi
i want to send the serial number of rfid tag to mysql database, where i use arduino and gsm for sending the data…
can any one help


#281

Im having same problem. These days im using ESP8266 module to send data to database but no luck. Are you figure out to this? Please help @zah