I’m working on a project which could basically be described as an RFID locker. it uses an RC522 RFID reader, and a 5V Dual-channel low-level trigger relays to control two linear actuators. During breadboarding, the ATMega328P is still connected to the Arduino board and the circuit and my code works as intended. Unfortunately this is an academic project and I am required to remove the ATMega328P from the Arduino board and make it a standalone circuit. Little by little, I made the standalone circuit up to where the output of the dual-channel relays were connected to LEDs, and it would work as intended. The problem is, when I connect the linear actuators, the circuit comes in to problems such as the RFID reader would not read any input anymore.
My power source in the standalone circuit would be a 12v 9A lead acid battery and I use a LM2596 to regulate the voltage at 5V. The relay load is connected directly from that 12v source to power the linear actuators.
I would connect the linear actuators to the relays as in this video (even in the standalone circuit):
The linear actuators I use are looks also the same as in the video above. My circuit works as intended when the ATMega328P is on the Arduino board so I’m sure that there is no problem with my code.
The current schematic diagram for my standalone circuit looks like this:
My question is, is there something missing from my standalone circuit? My standalone circuit works as intended when the relays' output are connected to LEDs. Am I missing components that I need to connect first before connecting the linear actuators? Do I need to replace the linear actuators instead?
A description on how my code and circuit is supposed to work: A push button is meant to be an input to determine if the locker door is closed. When it is pushed, the linear actuators will actuate their rods. Then,the RFID reader waits for input. An unrecognised tag will make a red LED flash, while a recognised one will make a green LED flash and the linear actuators will retract.