• 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 21 November 2025 by Admin-Lavi Leave a Comment

Solenoid valve is small device which controls water or air flow.

Arduino can operate this valve using relay.

Relay works like switch.

Arduino gives signal to relay.

Relay turns valve ON or OFF.

This project for Solenoid Valve Control Circuit using Arduino is simple and useful.

Arduino Coding:

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:

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

12 volt solenoid valve needs high power.

Arduino cannot give this power.

So relay is used in middle.

Arduino sends low power signal to relay input pin.

Relay coil becomes active.

Relay connects 12 volt power to solenoid valve.

Valve opens.

When Arduino pin goes low then relay turns OFF.

Relay disconnects 12 volt supply.

Valve closes.

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:

  • Gather all the parts as shown in circuit diagram.
  • Arduino 5V to relay VCC.
  • Arduino GND to relay GND.
  • Arduino digital pin 7 to relay IN pin.
  • 12V DC power positive connect to relay common terminal COM.
  • Relay normally open terminal NO to solenoid valve positive wire.
  • Solenoid valve negative wire goes to 12V DC power negative.
  • The positive pin of the Connector goes to Relay module COM terminal.
  • The negative pin of the Connector goes to Solenoid valve negative wire.
  • Make sure Arduino GND and 12V negative join together for common reference.

Conclusion:

This Solenoid Valve Control Circuit using Arduino is easy for control system.

Arduino cannot drive solenoid directly.

Relay gives safe switching.

Circuit is simple and cheap.

Good for beginners.

Useful for water control, irrigation and automation.

References:

Solenoid Control using Arduino

Filed Under: Arduino 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

  • Alarm Circuits (47)
  • Amplifier Circuits (67)
  • Arduino Projects (100)
  • Audio Circuits (116)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (46)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (150)
  • Meters and Testers (31)
  • Motor Controllers (22)
  • Oscillator Circuits (40)
  • Power Supply Circuits (108)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (127)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (92)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (7)

Recent Posts

  • 5V 0.5A Regulated Power Supply Circuit
  • Transistor Based 5V Linear Power Supply Circuit
  • 5V Regulated Power Supply Circuit using Transistors
  • 220V AC Live Detection and Interface Circuit
  • Simple Drummer Sound Circuit using IC 555

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas