• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Solenoid Valve Control Circuit using Arduino

Solenoid Valve Control Circuit using Arduino

Last updated on 1 July 2026 by Admin-Lavi Leave a Comment

Solenoid valve is small device which controls water or air flow and Arduino can operate this valve using relay.

Relay then works like switch and Arduino gives signal to relay and relay then turns valve ON or OFF; also this project for Solenoid Valve Control Circuit using Arduino is simple and useful.

Arduino Code:

void setup() {
pinMode(7, OUTPUT);
}

void loop() {
digitalWrite(7, HIGH);
delay(5000);
digitalWrite(7, LOW);
delay(5000);
}

Coding Explanation:

  • pinMode sets pin 7 as output pin.
  • digitalWrite HIGH sends 5V signal to relay.
  • Relay turns ON solenoid.
  • delay 5000 keeps valve open 5 seconds.
  • digitalWrite LOW turns relay OFF.
  • Valve closes.
  • delay is again for 5 seconds.
  • Loop repeats.

Circuit Working:

Solenoid Valve Control Circuit  Diagram using Arduino

Parts List:

ComponentsQuantity
Arduino UNO1
5V Single Channel Relay1
USB Cable1
12V DC Power Supply1
12V Connector1
12V DC Solenoid Valve1

A 12 volt solenoid valve requires high power, and the Arduino cannot provide this power; therefore, a relay connects the Arduino to the solenoid valve.

Then Arduino sends low power signal to relay input pin and relay coil becomes active and then relay connects 12 volt power to solenoid valve and valve opens.

When Arduino pin goes low then relay turns OFF and relay disconnects 12 volt supply and then valve closes; also Arduino and relay share common ground.

Formula with Calculation:

Relay coil voltage = 5V from Arduino

Solenoid valve voltage = 12V from power adapter

Current of valve = around 300 mA typical

Arduino pin current = around 20 mA max safe

Relay isolates Arduino from high current load

Power of valve = Voltage x Current

Power = 12V x 0.3A = 3.6 Watt

How to Build:

To build a Solenoid Valve Control Circuit using Arduino follow the below steps:

  • First, gather all the parts as shown in circuit diagram.
  • Next, Arduino 5V go to relay VCC, Arduino GND go to relay GND and Arduino digital pin 7 go to relay IN pin.
  • Then 12V DC power positive connect to relay common terminal COM and relay normally open terminal NO go to solenoid valve positive wire.
  • Also, solenoid valve negative wire goes to 12V DC power negative.
  • After that, the positive pin of the connector goes to Relay module COM terminal and the negative pin of the connector goes to Solenoid valve negative wire.
  • Finally, make sure Arduino GND and 12V negative join together for common reference.

Conclusion:

To conclude, this Solenoid Valve Control Circuit using Arduino is easy for control system, as Arduino cannot drive solenoid directly, so relay gives safe switching.

Also, circuit is simple and cheap and is good for beginners and further, is useful for water control, irrigation and automation.

Filed Under: Arduino Projects, Automation Circuits, Mini Projects, Motor Controllers

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Simple Arduino OLED Display Circuit
Next Post: Magnetic Field Detector Circuit using Hall Sensor and Arduino »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (137)
  • Alarm Circuits (81)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (88)
  • DIY Projects (435)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (241)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (390)
  • Motor Controllers (26)
  • Oscillator Circuits (70)
  • Power Supply Circuits (244)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (128)
  • Sensors and Detectors (236)
  • Solar Circuits (31)
  • Timer Circuits (63)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (33)
  • Voltage Regulator (55)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. etere on High Voltage Fence Charger Circuit
  3. Admin-Lavi on High Voltage Fence Charger Circuit
  4. egidio grzinic on High Voltage Fence Charger Circuit
  5. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR

Copyright © 2026 | New Circuit Ideas