Grade 8 · Reaction timer

ESP32 setup and one LED

Follow the teacher to set up the ESP32 and make one LED blink. Work through the two parts at the class pace; keep your earlier bridge game and timer design for later.

For this lesson

Use the same weekly handout for Part 1 and Part 2. Keep your own answers and evidence.

Use pages 1–2 of the revised weekly handout: setup, then one LED. Follow the teacher’s pace.

Starter files and circuit references

Unplug before changing wires. Use 3.3 V inputs and teacher-checked wiring. The handout includes the circuit reference.

Work through the lesson

1. Set up the ESP32

Open this lesson’s weekly handout (Word)

Visual walkthrough

From setup to an observation

Trace the stages from left to right.

  1. Select: board and port
  2. Verify and upload the setup sketch
  3. Open Serial Monitor: 115200
  4. Record actual output or error
Discuss before continuing

What did you actually see? A power light alone does not prove the upload succeeded.

Start

Which board and port does the teacher identify for your ESP32?

Explain and demonstrate

Verify checks the sketch; Upload sends it to the board. Serial Monitor displays messages from the sketch. Its baud rate must match Serial.begin(115200). A power light alone does not prove an upload worked.

Demonstration

Follow the teacher through Boards Manager, board and port selection, Verify and Upload. Open Serial Monitor at 115200 for the class setup sketch. setup() runs once; loop() repeats. Compare what the sketch prints with what appears on screen.

Class example

The board has a power light, but Upload reports an error. What should you record?

Reveal example answer

Record the error and last step reached as NOT YET WORKING. Ask the teacher to check the data cable, board and port. Do not record a successful upload or invent Serial output.

Your work

Check the esp32 board package by Espressif Systems in Arduino IDE. Connect a USB data cable, select the teacher-identified board and port, then verify and upload the teacher’s setup sketch. Open Serial Monitor at 115200 baud. Save the sketch and record the actual output or error. Keep your earlier bridge work.

Practice steps

Complete Part 1 of the handout using your own observations. Save the setup sketch. If setup is unfinished, record the error and ask before changing settings or installing drivers.

Check and finish

Show the selected board, port, saved sketch and actual Serial observation or error.

2. Make one LED blink

Open this lesson’s weekly handout (Word)

Visual walkthrough

One LED repeats on and off

Trace the stages from left to right.

  1. HIGH: LED on
  2. Wait 500 ms: half a second
  3. LOW: LED off
  4. Wait 500 ms, then repeat
Discuss before continuing

Predict the blink, then compare with the actual LED. Unplug USB before changing wires; get the teacher’s wiring check before power.

Start

With USB unplugged, locate the LED, resistor, GPIO label and GND.

Explain and demonstrate

An LED is an output. The series resistor limits current. For this circuit, HIGH turns the LED on and LOW turns it off. delay(500) waits 500 milliseconds, or half a second. Never connect 5 V to a GPIO pin.

Demonstration

Read LEDStarter: LED_PIN is 25, pinMode sets OUTPUT, and loop writes HIGH and LOW with 500 ms waits. With USB unplugged, check GPIO25 → 330 ohm resistor → LED anode; cathode → GND. Verify the actual board and polarity with the teacher before powering and uploading.

Class example

Predict what HIGH, delay(500), LOW, delay(500) will do when loop() repeats.

Reveal example answer

The LED should stay on for half a second and off for half a second, repeatedly. This is an expectation until the checked circuit runs. Record the real result; if it did not run, write NOT TESTED and the next check.

Your work

Unplug USB before wiring. For the teacher-checked classic ESP32 circuit, connect GPIO25 → 330 ohm resistor → LED anode (+), and LED cathode (−) → GND. The teacher must verify the actual board, pin labels and polarity before power. Upload LEDStarter, observe half a second on and half a second off, then save the sketch and your actual result. Other boards may need another pin.

Practice steps

Upload LEDStarter to the checked circuit. Observe one LED, save your file and complete Part 2. If it fails, unplug before checking wires and ask the teacher. No button test or timer build is required this week.

Check and finish

Keep the saved LED sketch, expected and actual blink results, and one problem/check or safety rule.

3. Later project targets

Button input, the full reaction timer, timed rounds, false-start checks and user tests belong to later lessons. They are not required in this week’s handout, homework or feedback rubric.

Keep this evidence

  • Keep your own board and port record, saved setup and LED sketches, actual Serial and LED observations, and one troubleshooting or safety reflection. If a test did not run, write NOT TESTED and your next check. Hardware stays at school.

Homework

Finish the setup and one-LED record using what you did in class: board, port, saved filenames, actual observations and one troubleshooting or safety reflection. Keep your earlier bridge work for later.

If a test did not run, write NOT TESTED and your next check. Hardware stays at school. No button, reaction timer or new circuit is required.

Homework · Weekly handout (Word)

Weekly rubric

Use this rubric for feedback on this week’s setup and one-LED record.

BandObservable evidence
0No assessable evidence for this task yet.
1–2Some setup or LED details are recorded, but the observation or unfinished step is unclear.
3–4Board, port and some setup or LED evidence are recorded. Saved filenames or the troubleshooting/safety reflection need more detail.
5–6The setup and LED record is clear: filenames, actual observations and one troubleshooting or safety reflection. Unrun tests are marked NOT TESTED with a next check.
7–8The complete record explains the half-second HIGH/LOW blink, distinguishes expected from observed results, and justifies a safe next check. No button or timer evidence is required.

When hardware is unavailable, clearly labelled predictions and safe planning count as this week’s evidence; do not claim practical testing.