Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Specifications
Power Supply – 5V (For whole project)
Must use the Resistor for limiting the value of current applied on LED
Hardware Required
• Pin Description:
Circuit Connection
• connect all the negative of the leds then connect to the ground pin of Arduino uno
• Positive of green Led to Arduino’s digital pin 8 via 220 ohm resistor adding on positive
terminal of led.
• Positive of Yellow Led to Arduino’s digital pin 9 via 220 ohm resistor adding on positive
terminal of led.
• Positive of Red Led to Arduino’s digital pin 10 via 220 ohm resistor adding on positive
terminal of led.
5
Code
Modified by
TECHNICAL TEAM,REES52
int yellowled = 9;
void setup()
pinMode(yellowled, OUTPUT);
pinMode(redled, OUTPUT);
void loop()
delay(5000);
digitalWrite(yellowled, HIGH);
delay(2000);
digitalWrite(redled, HIGH);
delay(5000);
delay(2000);
digitalWrite(yellowled, LOW);