1. Activity Overview
In this activity, students will learn how to control an LED using an Arduino board. They will build a simple circuit and write a short program that makes the LED turn ON and OFF repeatedly.
2. Learning Objectives
By the end of the activity, students should be able to:
- Identify an LED and its basic components.
- Identify the Arduino board and its digital pins.
- Understand the concept of digital ON/OFF output.
- Connect an LED safely to an Arduino.
- Upload a simple Arduino program.
- Explain how a program controls a physical device.
3. Research Before the Activity
Core Concepts
- Arduino
- LED
- Digital Output
- GPIO / Digital Pin
- Resistor
- Electrical Circuit
- Program → Controller → Output
Expected Learner Understanding
Students aged 6–11 should primarily understand the relationship between instructions and physical action. Advanced electronics theory is not required at this stage.
Likely Misconceptions
- An LED can be connected in any direction.
- The Arduino itself is the LED.
- A program can work without a physical circuit.
- The LED stays ON forever after the command is executed.
- The delay value is unrelated to the blinking speed.
4. Materials Required
| Component | Quantity |
|---|---|
| Arduino Uno | 1 |
| LED | 1 |
| 220Ω or 330Ω resistor | 1 |
| Breadboard | 1 |
| Jumper wires | 2–3 |
| USB cable | 1 |
| Computer with Arduino IDE | 1 |
5. Safety Precautions ⚠️
- Switch off/disconnect the circuit before changing connections.
- Always use a suitable current-limiting resistor with an external LED.
- Do not connect the LED directly across the power supply.
- Check the polarity of the LED before powering the circuit.
- Do not short-circuit Arduino power pins.
- Young students should perform wiring under teacher supervision.
6. Know Your LED
An LED (Light Emitting Diode) produces light when electric current flows through it in the correct direction.
| Part | Purpose |
|---|---|
| Longer leg | Usually the positive side (anode) |
| Shorter leg | Usually the negative side (cathode) |
7. Circuit Connection
Connect the components as follows:
| Arduino | Component |
|---|---|
| Digital Pin 13 | LED → Resistor → LED circuit |
| GND | LED negative side / cathode |
8. Arduino Program
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
9. Understand the Program
| Code | Meaning |
|---|---|
void setup() |
Runs once when the Arduino starts. |
pinMode(13, OUTPUT) |
Sets pin 13 as an output. |
void loop() |
Runs repeatedly. |
digitalWrite(13, HIGH) |
Turns the LED ON. |
delay(1000) |
Waits for 1000 milliseconds (1 second). |
digitalWrite(13, LOW) |
Turns the LED OFF. |
10. Activity Procedure
- Place the Arduino and breadboard on the work table.
- Identify the LED, resistor, jumper wires and Arduino pins.
- Build the LED circuit according to the connection plan.
- Connect the Arduino to the computer using the USB cable.
- Open the Arduino IDE.
- Enter the Blink program.
- Select the appropriate Arduino board and port.
- Verify/compile the program.
- Upload the program to the Arduino.
- Observe the LED.
- Confirm that the LED turns ON and OFF repeatedly.
11. Explore & Investigate 🔎
Change the program and observe what happens.
Challenge 1 — Faster Blink
Change:
delay(1000);
to:
delay(200);
What happens?
Challenge 2 — Slower Blink
Try:
delay(2000);
How does the LED behave?
Challenge 3 — Create Your Own Pattern
Can you make the LED blink twice quickly and then remain OFF for two seconds?
12. Differentiated Learning
| Age | Expected Task |
|---|---|
| 6–7 | Identify LED colours and observe ON/OFF behaviour. |
| 8–9 | Build the basic circuit with teacher guidance and modify delay. |
| 10–11 | Write/modify the Arduino program and create a custom blink pattern. |
13. Computational Thinking
This activity introduces several important computational ideas:
- Sequence: ON → wait → OFF → wait.
- Iteration: the
loop()function repeats the sequence. - Parameter: the delay value controls timing.
- Debugging: students identify and correct wiring or code errors.
- Abstraction: a few lines of code control a physical device.
14. Assessment
| Criterion | Evidence |
|---|---|
| Component Identification | Student identifies Arduino, LED, resistor and GND. |
| Circuit Building | Student makes the required connections correctly. |
| Programming | Student uploads/runs the Blink program. |
| Observation | Student explains why the LED blinks. |
| Experimentation | Student changes delay and observes the effect. |
15. Quick Questions
- What is an LED?
- What is the purpose of a resistor?
- What does
pinMode()do? - What is the purpose of
digitalWrite()? - What does
delay(1000)mean? - Why is the code inside
loop()repeated? - What happens if the delay is reduced?
16. Student Reflection
Tick (✓) the statements that apply to you:
☐ I can identify an LED and resistor.
☐ I can identify Arduino digital pins.
☐ I understand ON and OFF as digital output states.
☐ I can explain what digitalWrite() does.
☐ I can explain the purpose of delay().
☐ I can modify the blink speed.
☐ I can troubleshoot a simple LED circuit.
17. Extension Challenge 🚀
Connect two LEDs and program them so that:
- LED 1 turns ON.
- LED 1 turns OFF.
- LED 2 turns ON.
- LED 2 turns OFF.
- The sequence repeats.
This prepares students for the next level: Traffic Light Automation.
18. Teacher Reflection
- Were students able to identify the components?
- Could students explain the ON/OFF concept?
- Which students required help with circuit connections?
- Could students modify the delay value independently?
- What should be reinforced in the next robotics session?