Description
What it is
The LY-03 DC12V steel electric lock is a security device that allows protecting lockers or drawers through electronic control. This solenoid can be easily integrated into home or industrial projects to add a second line of defense.
Features
- Electric Lock LY-03 DC12V
- Steel resistant
- Ideally suited for lockers and drawers
What it is for
The electric lock LY-03 can be used to create a custom security system to protect lockers or drawers. It can be controlled via a button or integrated into more complex projects with Arduino or ESP.
Tutorial: How to use Electric Lock LY-03 DC12V
The electric lock LY-03 is an ideal device for protecting lockers or drawers. This steel solenoid can be easily integrated into home or industrial security projects.
What you need
- Arduino Uno
- 12V Power Supply
- Relay Module
- Antenna Cable
Steps
- Connect the electric lock to the 12V power supply.
- Connect the relay module to the Arduino Uno to control the lock’s power.
- Write the Arduino sketch that activates/deactivates the relay based on received commands.
- Verify the correct integration of the system by connecting a button to the circuit to test the open/close function.
Example code
void setup() {
pinMode(RELAY_PIN, OUTPUT);
}
void loop() {
if (digitalRead(BUTTON_PIN) == HIGH) {
digitalWrite(RELAY_PIN, HIGH); // Attiva il solenoide per aprire la serratura
} else {
digitalWrite(RELAY_PIN, LOW); // Disattiva il solenoide per chiudere la serratura
}
}
Mini project
Create a security system for your room’s locker that opens with a simple button press.
Common mistakes
- Do not properly verify the electrical connection before use.
- Use voltages other than 12V without an appropriate converter.
- Omit protection against induced currents when deactivating the solenoid.
Recommended accessories
- Relay Module
- Arduino Power Supply
- Momentary Push Button
- Resistor
Frequently asked questions
Can the lock be controlled by a wireless security system?
Yes, but it requires additional components such as a WiFi or Bluetooth shield for the Arduino.
How long does the battery last?
Check the component datasheet.









Reviews
There are no reviews yet.