Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled Multi-Color LED and Solenoid Valve System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Multi-Color LED and Solenoid Valve System

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, multiple LEDs of different colors, NPN transistors, diodes, resistors, solenoid valves, a 12V power supply, and a 2.1mm DC barrel jack. The circuit is designed to control the LEDs and solenoid valves using the Arduino UNO.

Component List

  1. Arduino UNO

    • Description: Microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. 12V Power Supply

    • Description: Provides 12V DC power.
    • Pins: +, -
  3. Diode

    • Description: Standard diode.
    • Pins: cathode, anode
  4. LED: Two Pin (red)

    • Description: Red LED.
    • Pins: cathode, anode
  5. LED: Two Pin (blue)

    • Description: Blue LED.
    • Pins: cathode, anode
  6. LED: Two Pin (orange)

    • Description: Orange LED.
    • Pins: cathode, anode
  7. LED: Two Pin (green)

    • Description: Green LED.
    • Pins: cathode, anode
  8. LED: Two Pin (yellow)

    • Description: Yellow LED.
    • Pins: cathode, anode
  9. Plastic Solenoid Valve

    • Description: Solenoid valve for controlling fluid flow.
    • Pins: pin1, pin2
  10. NPN Transistor (ECB)

    • Description: NPN transistor with emitter, collector, and base pins.
    • Pins: emitter, collector, base
  11. Resistor

    • Description: Resistor with a resistance of 1000 Ohms.
    • Pins: pin1, pin2
    • Properties: Resistance: 1000 Ohms
  12. 2.1mm DC Barrel Jack

    • Description: DC barrel jack for power input.
    • Pins: switch, sleeve, center

Wiring Details

Arduino UNO

12V Power Supply

Diode

LED: Two Pin (red)

LED: Two Pin (blue)

LED: Two Pin (orange)

LED: Two Pin (green)

LED: Two Pin (yellow)

Plastic Solenoid Valve

NPN Transistor (ECB)

Resistor

2.1mm DC Barrel Jack

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup function is used to initialize any settings, and the loop function contains the main code that runs repeatedly.