Grade 9 Robotics Project #1.3 LED Blinking in Series Using Tinkercad
Grade 9 Robotics Project #1.3 LED Blinking in Series Using Tinkercad
Objective:
Students will create a circuit with 5 different colored LEDs that blink in series using Tinkercad.
You will design the circuit, write the Arduino code, simulate the blinking sequence, and then
save the project. After completion, submit your project by sharing the Google Drive link with
your teacher.
Materials Needed:
Instructions:
1. Open Tinkercad:
o Log into your Tinkercad account and select "Circuits" from the dashboard.
o Click on "Create new circuit".
2. Add Components:
o From the components library, drag and drop the following components onto the
workspace:
Arduino Uno R3
Breadboard
5 LEDs (choose different colors)
5 Resistors (220Ω)
Jumper Wires
3. Connect the LEDs:
o Place the 5 LEDs on the breadboard. The longer leg of each LED is the positive
(anode), and the shorter leg is the negative (cathode).
o Connect the negative leg of each LED to the GND rail of the breadboard using
jumper wires.
o Connect the positive leg of each LED to a 220Ω resistor, and then connect each
resistor to different Arduino digital pins:
LED 1 → Pin 2
LED 2 → Pin 3
LED 3 → Pin 4
LED 4 → Pin 5
LED 5 → Pin 6
4. Connect Ground:
o Use a jumper wire to connect the GND pin on the Arduino to the GND rail of the
breadboard.
cpp
Copy code
// Pin numbers for the LEDs
int led1 = 2;
int led2 = 3;
int led3 = 4;
int led4 = 5;
int led5 = 6;
void setup() {
// Set LED pins as output
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
}
void loop() {
// Turn on each LED in sequence, with a delay
digitalWrite(led1, HIGH); // Turn on LED 1
delay(500); // Wait for 500 milliseconds
digitalWrite(led1, LOW); // Turn off LED 1
Deadline: