Using relay on solenoid lock

I'm currently working on a Rfid door lock project using Arduino UNO, an LCD LM016l with I2C, an RFID sensor, 2 LED, a buzzer, a HW482 relay module and a solenoid lock.

The working principle is, when I touch correct RFID card on the sensor, the solenoid lock will lock or unlock, and the LED will grow. When I touch the incorrect card, the solenoid lock won't respond, but LED will grow and sound will be produced from buzzer.

The problem is, before I install relay module and solenoid lock, my concept works perfectly fine. Once I install relay module and solenoid lock, when I try to trigger solenoid lock using RFID card, first it works fine. However, I have to manually retract the solenoid lock. When I use correct RFID card again, solenoid is expanded, but LCD won't display correct characters and the system won't respond when I want to touch the RFID card again.

For the connection in relay module, I connected the relay module from normally open position to VIN in arduino UNO and 9V battery to the arduino UNO. Then I connected the common in relay module to the solenoid.

Is there any method to troubleshoot this problem? Thank you very much.

1 Like

Try a better power source... a 9v battery can't provide enough current to drive the types of devices you are using.

2 Likes

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

I'll try this solution once my new components arrive and let you know later on. Thank you.

Also make sure that, your code does not contains long delay that can block other operation in a period of time

Hi, @jennseu
Welcome to the forum.

Can you please post a copy of your code and a copy of your schematic, including power supplies, component names and pin labels?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.