I am working on a project which involves an LM2956, a 12V female jack, and a 5V Single Channel Relay module. I am planning to use the relay to power a solenoid lock as well but I am a bit confused as to whether I can split the power between the buck converter (which will power my ESP32 through its VIN) and the 5V relay through wiring, or is it actually risky?
My bad. The solenoid that I am planning to use is a 12V one 500mA with 0.6A current and power supply wise, I want to use a 12v 2A wall adapter (with maximum 24W) to power both the ESP32 and the lock itself.
Umm yeah supposedly if I have it connected by 5V right? But I was confused about the buck also taking the 5V pin as well so my original plan is to split the wiring between the buck converter (so it solely powers the ESP32 and such) and the 5V relay so they both use the 5V pin of the ESP32.
Unfortunately, in the description of the page/shop I am planning to buy it from, it doesn’t show the full specs such as the pull-in and the starting current. But, I can ask by the time their sales rep is online.
It's good to have the specs anyway. Your buck doesn't draw a lot to power esp and relay, so probably 2A supply is sufficient. You need to place "kickback" diode across your solenoid.
Like jim-p wrote, not all 5V relay modules are compatible with Esp 3.3V trigger signal.
Post a link to the one you are willing to use.
Is this lock of the type that needs the current reversed in order to unlock? Or is it spring loaded and your solenoid is UNLOCKING the lock. How much time will you be applying power to the solenoid lock?
Ok, I thought do. Power to unlock. What type of door will this open? Metal or wooden? Do you have the striker plate for the door, so it can push back the locking pin when the door is closed?
It does + the door is metal but for now, this is just a school project (so its leaning more towards a demo rather than something that is going to be used as of yet). Planning on mixing this with an actual application that involves firebase and 2x RC522 readers as well (one for in and one for out).
The description says: "To drive a solenoid lock with an Arduino you will need a relay module fairly good power supply, as a lot of current will rush into the solenoid to charge up the electro-magnet, about 500mA"
So If that 500mA is the inrush current, your power supply is ok.
If that relay is "low-level trigger type", you shouldn't drive it directly from Esp. Use NPN transistor to drive it or use a relay that has high-level trigger or separate pins for coil .