Turning Multiple LED Lights on At Once with Elegoo Arduino Uno
This project I created to turn multiple led lights on at the same time using Elegoo Arduino Uno.
MATERIALS NEEDED
- Elegoo Arduino Uno
- Elegoo bread board
- 10 LED lights (any color)
- 2 wires with pins
- USB cable
DOWNLAODS NEEDED
- Arduino (https://login.arduino.cc/login?)
STEPS
- put one wire from GND to -1 on the bread board.
- put a wire from pin 13 to +1 on the bread board
- put any number of led lights were the + and – are. long in positive and short in negative
- plug usb cable in and write down the code
CODE
void setup()
{
pinMode(13, OUTPUT);
}void loop()
{
digitalWrite(13, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}