Description
What it is
The DC12V 2A 10mm 20N solenoid electromagnet with integrated linear spring return is a component used for mechanical applications that require controlled movement from electronic circuits.
Features
- Supply Voltage: DC12V
- Maximum Current: 2A
- Solenoid Diameter: 10mm
- Magnetic Force: 20N
- Integrated Linear Spring Return
What it is for
Suitable for 3D printer, CNC machine, and lifting system projects. Also ideal for creating automatic closing mechanisms based on drawers or doors that open and close with the electromagnet.
Tutorial: How to Use DC12V Solenoid Electromagnets
This linear electromagnet with integrated spring return is ideal for projects that require mechanical movement controlled by a circuit. It is perfect for both beginners and expert creators.
What you need
- Arduino or microcontroller
- network power supply or battery
- connection cables
Steps
- Connect the positive and negative leads of the electromagnet to the microcontroller.
- Check the operating voltage (12V) and maximum current (2A).
- Write an Arduino sketch to control the solenoid via a relay or MOSFET.
- Test the connection with Arduino, turning the solenoid on and off.
- If necessary, add a fuse protection between the power supply and the solenoid.
- Check the stability of the mechanism when the solenoid is active.
- Try to integrate a sensor to control the state of the electromagnet.
- End.
Example code
void setup() {
pinMode(relè_pin, OUTPUT);
}
void loop() {
digitalWrite(relè_pin, HIGH); // Attiva il solenoide
delay(1000);
digitalWrite(relè_pin, LOW); // Disattiva il solenoide
delay(500);
}
Mini project
Build an automatic closing system for drawers or doors that open and close with the electromagnet.
Common mistakes
- Connect the solenoid directly to the microcontroller without protection.
- Do not check the voltage and maximum current before connection.
- Use a relay or MOSFET not suitable for the power of the electromagnet.
Recommended accessories
- Relay for Arduino
- N-Channel MOSFET
- Position sensor
- 12V power supply
Frequently asked questions
What is the operating voltage of the electromagnet?
Check the datasheet.
How to protect the microcontroller from the electromagnet’s electrical current?
Use a relay or MOSFET as an intermediary.














Reviews
There are no reviews yet.