Projects with a solenoid
7 Mokxi projects use a solenoid (1 beginner and 6 intermediate). They run on Arduino Uno boards. Here are all of them, from “ULN2003A solenoid from an Arduino” to “Washing machine”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “ULN2003A solenoid from an Arduino”, a beginner project that needs an ULN2003A Darlington array, a solenoid and an oscilloscope.
- All of them run on an Arduino Uno, so that is the one board you need.
- The parts used most here are the DC motor (4 projects), the I2C LCD (4) and the push button (4). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the solenoid part page for its pins and what each one does.
7 projects ready to run

ULN2003A solenoid from an Arduino
Blink on pin 13 switches a 12 V, 40 ohm solenoid through a ULN2003A: 0.27 A that a pin could never give.
- Board
- Arduino Uno R3
- Parts
- ULN2003A Darlington array, solenoid, oscilloscope
- Level
- Beginner

Solenoid tap
An Uno taps a 12 V solenoid once a second through a MOSFET, with a diode across the coil to catch the kick when it lets go.
- Board
- Arduino Uno R3
- Parts
- MOSFET, diode, solenoid, bench power supply
- Level
- Intermediate

Car wash
Drive a car up to the sensor and press START: it rinses, soaps, brushes, rinses and dries on a timeline.
- Board
- Arduino Uno R3
- Parts
- Traffic light module, two-channel relay board, solenoid, mini water pump, MX1508 dual motor driver, +7 more
- Level
- Intermediate

Batch mixer
Pick a recipe on a keypad and a relay board runs it: fill A to a level, fill B for a time, mix, then drain.
- Board
- Arduino Uno R3
- Parts
- 4x3 telephone keypad, four-channel relay board, solenoid, DC motor, buzzer, +2 more
- Level
- Intermediate

Leak detector with shutoff valve
A teaching model: a YF-S201 flow sensor and an EEPROM totalizer watch for water that never stops or a trickle nobody is using.
- Board
- Arduino Uno R3
- Parts
- Water flow sensor, solenoid, bench power supply, MOSFET, diode, +5 more
- Level
- Intermediate

Packaging line
An E18-D80NK counts items into a box; when the count reaches the box size set with a button, the feed relay stops.
- Board
- Arduino Uno R3
- Parts
- Servo motor, buzzer, push button, two-channel relay board, DC motor, +3 more
- Level
- Intermediate

Washing machine
Pick a cycle on the knob and press START: it fills, washes with a reversing drum, drains and spins, and it only spins with the lid shut and locked.
- Board
- Arduino Uno R3
- Parts
- Servo motor, two-channel relay board, solenoid, mini water pump, L9110S motor driver, +6 more
- Level
- Intermediate