7:52 AM
@AhtishamAshraf Ah, I am troubleshooting your RFID-can-only-live-once problem bottom up: (1) 12V 1A PSU, (2) 12V 350mA solenoid door lock, (3) IRL540N mosfet switch, (4) EL817C optocoupler to convert 3V3 to 5V0 signals, (5) JD-vcc relay, (6) Square wave sign gen (using 0.5Hz to lock/unlock) .
I can do different configuration of system integration using the above 6 subsystems. Actually I have not used Rpi or RFID yet. So far are only off line testing. Next step is to perhaps try, instead of Rpi RFID, just Rpi print something repeatedly . My aim is first make sure that solenoid door switching on/of would disturb even Rpi repeated printing text such as "abc" etc. If even printing something can only live once, then there is no point trying RFID.
And before trying out python SimpleMfrc52 RFID I need to do one thing: Replace SPIpy by Rpi Thonny python built in SPI. Some two years ago I found using SPIpy for RFID and other programs using standard SPI at the same time messed things up. So I hope you can help replacing SPIpy by standard Rpi Thonny SPI.