Introduction
A 12V Solenoid Valve is an electromechanical device used to control the flow of liquids or gases. It is commonly used in irrigation systems, water dispensers, and industrial automation. The valve opens or closes when a 12V DC signal is applied.
Features
- Voltage: 12V DC
- Operates with liquids or gases
- Quick response time
- Durable construction
Pinout
Pin | Description |
---|---|
Red | 12V Power Supply |
Black | Ground |
Working Principle
The solenoid valve contains an electromagnet and a plunger. When 12V DC is applied to the solenoid, the electromagnetic force pulls the plunger, allowing fluid or gas to flow through the valve. When the power is turned off, the spring pushes the plunger back to its original position, blocking the flow.
Arduino Control Example
const int solenoidPin = 7; // Solenoid connected to pin 7 void setup() { pinMode(solenoidPin, OUTPUT); Serial.begin(9600); Serial.println("Solenoid Valve Initialized"); } void loop() { digitalWrite(solenoidPin, HIGH); // Open valve delay(5000); // Wait 5 seconds digitalWrite(solenoidPin, LOW); // Close valve delay(5000); // Wait 5 seconds }
Applications
- Irrigation systems
- Water dispensers
- Gas flow control
- Industrial automation
Sensor Image
