Equipment: Arduino Uno board (1 per pair), USB cable, computer with the Arduino IDE installed, LED, 220Ω resistor, push button, light sensor (LDR photoresistor), breadboard, jumper wires.
(1h30) Installing and getting familiar with the Arduino IDE, uploading the provided "Blink" program (blinking the built-in LED), checking it works.
(2h) Wiring an external LED on a breadboard with a protection resistor, modifying the program to blink it at a different frequency.
(2h30) Wiring a push button as a digital input, writing a program that turns on the LED only when the button is pressed (direct link with the conditional logic from 4.3).
(3h) Wiring a light sensor (photoresistor) as an analogue input, reading and displaying the raw value (0-1023) on the serial monitor.
(2h) Writing a program that combines sensor and actuator: automatically turn on the LED if the measured light level drops below a given threshold (simulating automatic lighting).
(1h) Testing, adjusting the trigger threshold, validating the expected behaviour.
Expected program for step 3 (button → LED): in the loop() function, read the button pin's state with digitalRead(), then use a structure such as if (buttonState == HIGH) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); }.
Expected program for step 5 (sensor → automatic LED): read the sensor value with analogRead() (a value between 0 and 1023), then compare it to a threshold (e.g. 400) with if (sensorValue < 400) { digitalWrite(ledPin, HIGH); }.
Marking point: check that each pair correctly identified the direction of the sensor's variation (value increasing or decreasing with darkness, which depends on the voltage-divider wiring used).