Hello all, I'm currently working on building an arduino UNO powered door lock, using a relay and the MFRC522 module. I'm using the exact example found in the library. When I turn on the Arduino, open the serial monitor on my laptop, it works fine for a few minutes or seconds, showing me all the messages, adding new tags to the EEPROM successfully, sometimes it makes a mistake but I just add it again using the master card and it works.
But the issue is that after a random amount of time, the Arduino suddenly stops working, the serial monitor shows nothing, but the Arduino is still "on". I try to scan something, no message comes in the serial monitor, the relay doesn't open at all. But of course when I hit the reset button, everything goes back to normal for another minute or two. I don't see any error messages anywhere.
Edit: whoops hit post way too early on accident
I have attached the code below.
If anyone has any guidance for how to try and solve this I would greatly appreciate it. Thanks!
AccessControl.ino (23.9 KB)