DIYables Solenoid Lock 12V DC
Click to zoom






Quick Overview
This DIYables 12V DC solenoid lock is a compact electromagnetic locking mechanism ideal for cabinet, drawer, door, and window security projects with Arduino, ESP32, ESP8266, and Raspberry Pi. The lock operates on 12VDC at 0.6A and features a fail safe type (fail-unlocked design), meaning it unlocks safely when power is removed for maximum safety.
The solenoid lock measures just 27mm x 28mm x 19mm and weighs only 45 grams, making it perfect for compact installations where space is limited. Control the lock through a relay module connected to your microcontroller, enabling electronic access control, RFID-based security, keypad entry systems, and smart home automation.
Ideal for DIY security systems, smart lockers, access control projects, home automation, IoT security, cabinet and drawer protection, and any application requiring electronic locking. The small size and lightweight design make it versatile for various enclosures and furniture.
Key Features
- 12V DC Operation — Operates on 12VDC at 0.6A current draw
- Fail-Unlocked Design — Safely unlocks when power is removed (fail-safe)
- Compact Size — 27mm x 28mm x 19mm, perfect for tight spaces
- Lightweight — Only 45 grams, easy to mount
- Versatile Locking — Suitable for cabinets, drawers, doors, windows
- Relay Control — Controlled via relay module from microcontroller
- Fast Response — Quick locking and unlocking action
- Easy Installation — Simple mounting with included hardware
- Microcontroller Compatible — Works with Arduino, ESP32, ESP8266, Raspberry Pi
- Tutorial Support — Comprehensive guides for multiple platforms
- Security Applications — Access control, smart locks, RFID systems
- Home Automation — IoT integration for smart home projects
SPECIFICATION
| Specification | Value |
|---|---|
| Product Type | Solenoid Lock |
| Operating Voltage | 12V DC |
| Operating Current | 0.6A (600mA) |
| Lock Type | Electromagnetic (fail-unlocked/fail-safe) |
| Fail Mode | Unlocked (safe when power removed) |
| Dimensions | 27mm x 28mm x 19mm |
| Weight | 45 grams |
| Control Method | Relay module (controlled by microcontroller) |
| Response Time | Fast locking/unlocking action |
| Mounting | Screw holes for easy installation |
| Applications | Cabinet lock, drawer lock, door lock, window lock |
| Power Requirements | 12V DC power adapter (not included) |
| Compatibility | Arduino, ESP32, ESP8266, Raspberry Pi (via relay) |
| Ideal For | Access control, smart locks, RFID security, IoT automation, DIY security systems |
Tutorials
- Arduino - Solenoid Lock tutorial
- Arduino Uno R4 - Solenoid Lock tutorial
- Arduino Nano - Solenoid Lock tutorial
- Arduino Nano ESP32 - Solenoid Lock tutorial
- ESP32 - Solenoid Lock tutorial
- ESP32 MicroPython - Solenoid Lock tutorial
- ESP8266 - Solenoid Lock tutorial
- Raspberry Pi - Solenoid Lock tutorial
- Raspberry Pi Pico - Solenoid Lock tutorial
COMPATIBLE HARDWARE
- Arduino boards (UNO, Mega, Nano, etc.) — Control via relay module
- Arduino Uno R4 WiFi/Minima — Digital output to relay for lock control
- ESP32 development boards — WiFi-enabled smart lock applications
- ESP8266 boards (NodeMCU, Wemos D1, etc.) — IoT-connected access control
- Arduino Nano ESP32 — Compact smart lock controller
- Raspberry Pi (all models) — GPIO control via relay module
- Raspberry Pi Pico — Microcontroller-based lock control
- Relay modules — Required for switching 12V DC power
- RFID readers — RFID-based access control systems
- Keypad modules — PIN code entry systems
- Fingerprint sensors — Biometric access control
- Smart home systems — Home automation and IoT integration
- Access control projects — Electronic security systems
- Cabinet and drawer security — Furniture protection
- Door and window locks — Entry point security
- Smart lockers — Secure storage solutions