Hello everyone,
I'm really new to this forum and an amateur when it comes to electronics so please bear with me and don't judge. I'd really like to learn so please don't hesitate to correct and explain to me what's wrong.
So here's my problem.
I have 12v solenoid lock which I would be controlling with the Arduino Nano via a BC547 transistor. The whole project would be powered by an 12v AC/DC wall adapter. The problem is, whenever the power runs out I won't be able to open the lock as it is configured to be "fail-safe" However, I would like the project to be configured as a "fail-secure", where I can still open and lock even if there is no power.
To deal with this, I thought of connecting backup 18650 batteries ONLY to the solenoid (not the whole project), which I can turn on by a SPST mechanical switch lock like this one (https://shopee.ph/12mm-Metal-Key-Switch-with-keys-i.18252381.2700634084). Here are intended functionalities of the added back-up battery.
- When there is power from the AC/DC adapter, the solenoid can be opened/locked via a digital signal from the microcontroller.
- When there is power from the AC/DC adapter, the solenoid can be opened/locked via the mechanical lock switch, which (I think) draws power from both the batteries and AC/DC adapter.
- When there is no power from the AC/DC adapter, the solenoid cannot be opened and locked via the microcontroller
- When there is no power from the AC/DC adapter, the solenoid can be opened/locked via the mechanical lock switch, which draws power directly from the batteries.
- When there is power from the AC/DC adapter, a switch can be closed to charge the batteries via the BMS board
Also, I've added a DPST switch to the BMS board to charge it whenever the batteries are low.
So, anyone have a comment or suggestion?