Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 - Solenoid Electromagnetic Lock - power issue from Relay to Lock #113

Open
cnu77 opened this issue Feb 22, 2023 · 0 comments
Open

Comments

@cnu77
Copy link

cnu77 commented Feb 22, 2023

I tried the electromagnetic lock for my kid's school project.

https://esp32io.com/tutorials/esp32-button-controls-electromagnetic-lock

Circuit_1

I am using a 12V solenoid lock. Adapter is 5V (tried 12V, but it made the lock hotter) to power the lock and relay.

For ESP32, I am using an USB power.

The objective is to unlock the magneticlock for 10 seconds when the button is pressed. After so many iterations, when I press the button, the Relay is able to get the inputs.

But the Solenoid lock is always in Locked status. Not sure where the problem is. Is the because ESP32 is 3.3v and the power is 5v?

From 5V adapter:
+ve to the lock
-ve to the COM of Relay

Lock to NC of Relay.

Relay:
GPIO 27 is connected to VIN
GND to GND
5V to IN

b623a1e9-9489-4ec3-a2c8-0396f9eeaf17

Kindly help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant