The code to the proposed examples and solutions to the pupil assignments, in Section XXXX of chapter XXXX, can be found through the following links.
Section 1.3.3 – Introduction to the Arduino:
- LED example (blinking on/off)
- LED assignment – 1 (2x LEDs blinking synchronously)
- LED assignment – 2 (2x LEDs blinking asynchronously)
Section 1.3.4 – Introduction to sensors (switch):
Section 1.3.5 – Explain voltage dividers and sensors (LDR):
- Voltage divider example (print the value)
- LDR example (print the value)
- LDR assignment – 1 (create a street lamp)
- LDR assignment – 2 (create a light dimming application)
Section 1.3.6 – Expand with additional sensors (potentiometer, IR-sensor):
- Potentiometer example (print the value)
- IR-sensor example (print the value)
- Potentiometer assignment – 1 (stepwise light dimming)
- Potentiometer assignment – 2 (fluent light dimming)
- IR-sensor assignment – 1 (turn LED on/off)
- IR-sensor assignment – 2 (stepwise light dimming)
Section 1.3.7 – Actuators (Servo- and DC-motor):
- Servo-motor example (sweep)
- DC-motor example (run the motor)
- Servo-motor assignment – 1 (exoskeleton)
- Servo-motor assignment – 2 (open/close a window)
- DC-motor assignment – 1 (shift direction)
- DC-motor assignment – 2 (adjustable ventilation)
Section 1.3.8 – Additional sensors (ultrasonic distance-sensor, color-sensor):
- Ultrasonic distance-sensor example (print the distance)
- Color-sensor example (print the values)
- Ultrasonic distance-sensor assignment – 2 (industrial alarm system)
- Color-sensor assignment – 3 (register and print the read colors)
Section 1.3.9 – Introduction to additional programming concepts (functions and while-loops):