Electromagnet Solenoid Lock 5mm 12VDC 350mA

  • 🔒 12VDC solenoid lock / electromagnet latch
  • ⚡ Current draw: ~350mA (5mm stroke)
  • 🔁 Push/pull action for locking and release mechanisms
  • 🧩 Ideal for cabinets, access control, and DIY lock projects
  • 🛠️ Easy to control using relay or MOSFET driver
  • 💪 Strong holding force for compact size
  • 📦 Compact design—fits inside small enclosures
  • ✅ Great for Arduino/ESP32 smart lock applications

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

220,00 EGP

2 People watching this product now!

Payment Methods:

Description

This 12V Electromagnetic Solenoid Lock is a compact and secure locking mechanism ideal for DIY access control systems, smart lockers, vending machines, and other automation projects. When powered, the solenoid pulls the bolt in, unlocking the latch; when power is cut, a spring pushes it back to lock.

It features a 5mm stroke and operates reliably at 12V DC, drawing only 350mA, making it efficient for battery-powered or microcontroller-controlled systems.

Key Features

  • Electromagnetic solenoid lock with spring-loaded bolt

  • 12V DC operating voltage, low power consumption (350mA)

  • 5mm linear stroke for smooth locking/unlocking

  • Durable metal housing for long-lasting operation

  • Easy integration with Arduino, ESP32, Raspberry Pi, relays, etc.

  • Ideal for cabinets, lockers, access control, and vending mechanisms

Specifications

Parameter Value
Operating Voltage 12V DC
Current Consumption ~350mA
Stroke Length 5mm
Operation Type Pull-type (spring return)
Material Metal body and plunger
Mounting Pre-drilled mounting holes
Cable Length ~15–20cm
Applications Smart locks, cabinets, drawers, automation

How It Works

  • Powered (ON): Lock bolt retracts

  • Unpowered (OFF): Spring pushes bolt back into locked position

Package Includes

1 × 12V DC Solenoid Lock (5mm stroke)

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
Solenoidto switching transistor/relaycoil leads into a flyback-diode-protected switch, gated by a board digital pin
📟
Electromagnet Solenoid Lock 5mm 12VDC 350mA
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
Electromagnet Solenoid Lock 5mm 12VDC 350mA - Arduino Uno
Electromagnet Solenoid Lock 5mm 12VDC 350mA - Arduino Nano
Electromagnet Solenoid Lock 5mm 12VDC 350mA - Arduino Mega
Electromagnet Solenoid Lock 5mm 12VDC 350mA - ESP32
Electromagnet Solenoid Lock 5mm 12VDC 350mA - ESP8266
Electromagnet Solenoid Lock 5mm 12VDC 350mA - STM32
Electromagnet Solenoid Lock 5mm 12VDC 350mA - Raspberry Pi Pico
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_arduino_uno.inoArduino Uno
530 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin 7 on Arduino Uno.
6#define SOLENOID_PIN 7
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_arduino_nano.inoArduino Nano
531 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin 7 on Arduino Nano.
6#define SOLENOID_PIN 7
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_arduino_mega.inoArduino Mega
531 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin 7 on Arduino Mega.
6#define SOLENOID_PIN 7
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_esp32.inoESP32
526 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin 13 on ESP32.
6#define SOLENOID_PIN 13
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_esp8266.inoESP8266
528 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin D3 on ESP8266.
6#define SOLENOID_PIN D3
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_stm32.inoSTM32
528 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin PB2 on STM32.
6#define SOLENOID_PIN PB2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
📄 File: electromagnet_solenoid_lock_5mm_12vdc_350ma_-_raspberry_pi_pico.inoRaspberry Pi Pico
538 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Electromagnet Solenoid Lock 5mm 12VDC 350mA draws too much current for a GPIO pin directly - switch it through a flyback-diode-protected transistor or relay, gated by pin 17 on Raspberry Pi Pico.
6#define SOLENOID_PIN 17
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(SOLENOID_PIN, OUTPUT);
11 digitalWrite(SOLENOID_PIN, LOW);
12}
13
14void loop() {
15 digitalWrite(SOLENOID_PIN, HIGH); // energize
16 delay(1000);
17 digitalWrite(SOLENOID_PIN, LOW); // release
18 delay(3000);
19}
Electromagnetic actuator - simple on/off (energize/release), switched through a transistor or relay, not PWM-speed-controlled like a motor.

Specification

Specification

WeightWeight10 g
Dimensions2,5 × 1,5 × 1 cm
Product NameElectromagnet Solenoid Lock – 5mm, 12V DC, 350mA
TypeElectromagnetic Solenoid Lock
Model5mm Stroke, 12V DC
Operating Voltage12 V DC
Operating Current350 mA
Force / Holding Strength~5 N (typical)
Stroke / Plunger Travel5 mm
Power Consumption4.2 W (typical)
MaterialMetal Body with Plastic Plunger
Mounting TypeThrough-Hole / Screw Mount
Operating Temperature-10°C to +50°C
ApplicationsElectronic Door Lock, Security Systems, Arduino / DIY Projects, Automated Cabinets
Package Contents1× Electromagnet Solenoid Lock – 5mm, 12V DC, 350mA

Customer Reviews