How ibn-e-shahid/24-ntu-cs-fl-1010 works
This repository is a collection of independent ESP32/Arduino coursework sketches, not one integrated application. Each sketch runs its own setup/loop workflow to read a control or sensor input, generate a timed signal, or report output through serial and/or an OLED. The graph groups the examples by their demonstrated behavior; wiring details and peripheral implementations not shown in excerpts are omitted.
Main entry points: homework-01/main.cpp Button counter · week 5/main.cpp Environment monitor · week 7/main.cpp LDR monitor · homework-2/main.cpp Dual PWM monitor
Components 25
User interaction
- Button counter
homework-01/main.cpp - Counter OLED
homework-01/main.cpp - OLED setup demo
week4 part2/main.cpp
Sensor monitoring
- DHT11 sensor
- Environment monitor
week 5/main.cpp - Light sensor
- LDR monitor
week 7/main.cpp - OLED display
Signal output
- Dual PWM monitor
homework-2/main.cpp - PWM LEDs
- DAC/PWM test
main.cpp - DAC and PWM outputs
- PWM LED fade
week 6/main.cpp - Fade LED
- Buzzer tones
week 6 part 2/main.cpp - Buzzer
- DAC LED test
week 8/main.cpp - DAC LED output
- Blinking LED sketch
week2/main.cpp - LED output
Interrupt examples
- Button interrupt
week 3/main.cpp - Interrupt LED
- Timer interrupt
week 4/main.cpp - Timer LED
Other components
- Button user
Connections 16
- Button user → Button counter: presses
homework-01/main.cpp - Button counter → Counter OLED: updates
homework-01/main.cpp - Button counter → Button user: reports count
homework-01/main.cpp - Environment monitor → DHT11 sensor: reads
week 5/main.cpp - Environment monitor → OLED display: renders readings
week 5/main.cpp - LDR monitor → Light sensor: samples
week 7/main.cpp - LDR monitor → OLED display: renders values
week 7/main.cpp - Dual PWM monitor → PWM LEDs: drives brightness
homework-2/main.cpp - Dual PWM monitor → OLED display: renders status
homework-2/main.cpp - DAC/PWM test → DAC and PWM outputs: writes values
main.cpp - PWM LED fade → Fade LED: fades brightness
week 6/main.cpp - Buzzer tones → Buzzer: sets tones
week 6 part 2/main.cpp - DAC LED test → DAC LED output: writes levels
week 8/main.cpp - Blinking LED sketch → LED output: toggles output
week2/main.cpp - Button interrupt → Interrupt LED: toggles on press
week 3/main.cpp - Timer interrupt → Timer LED: toggles each second
week 4/main.cpp