Arduino Tutorials – Lesson 18 – A Solenoid Valve Control Using Arduino UNO

Creating A Solenoid Valve program using Arduino UNO

Required Components

  1. Solenoid valve -1 no
  2. Darlington Transistor -1 no
  3. Resistor(10K) -1 no
  4. IN4001 Diode -1 no
  5. Arduino UNO -1 no
  6. Bread board -1 no
  7. Connecting wires -1 set

Circuit

Steps

  1. Make sure the components are working properly.
  2. Connect the Transistor to the Arduino UNO board & Solenoid valve.
  3. Connect the 10K resistor to the Transistor.
  4. Connect the Power supply to the Solenoid valve.
  5. Connect the Solenoid valve to the Arduino UNO board.
  6. Connect the 10K resistor to the 2nd pin of Arduino UNO board.
  7. Check the Cicuit Connections.
  8. Check the Arduino program.
  9. Run the Arduino program.

Arduino Program

int solenoidPin = 9;
                                   
void setup( )
{
  pinMode(solenoidPin, OUTPUT);          
}

void loop( )
{
  digitalWrite(solenoidPin, HIGH);           
  delay(1000);                                             
  digitalWrite(solenoidPin, LOW);            
  delay(1000);                                             
}

Usage

  1. Computer printers
  2. Fuel injection gear
  3. Vehicles like cars
  4. Industrial setting

Leave a Reply

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