top of page
Gradient

LED lights
Arduino output

01

DESCRIPTION & MATERIALS

 This is a simple two light circuit that has a delay which has a delay time that makes the LED lights light up at separate times. Material used are:

- 1 Arduino Uno

-2 LEDs

- 2 220ohms Resistors

02

CODES

int LED1=12;
int LED2=13;
void setup()

  pinMode(LED1, OUTPUT); 
  pinMode(LED2, OUTPUT);   
}
void loop()
{
    digitalWrite(LED1,HIGH);
    digitalWrite(LED2,LOW);
    delay(1000);
    digitalWrite(LED2,HIGH);
    digitalWrite(LED1,LOW);
    delay(1000);
}

03

OUTPUT

WeChat Image_20211217095901.png

04

ANALYSIS

The system run smoothly and without fault.

bottom of page