How jasurdevv/iot-lab-2 works
This repository is an IoT lab template with four independent Arduino exercises, each implementing its own setup/loop behavior rather than forming one application pipeline. The workflows cover LED chasing, light-sensor statistics, threshold alerts with hysteresis, and debounced button counting with an LED pattern. Each sketch directly reads or drives its hardware and reports through Serial. The README documents the board pin assignments and expected behavior. The available excerpts do not show how a build selects among the four sketches, so no selection or orchestration link is drawn.
Main entry points: ex4.cpp Counter Loop · ex1.cpp Chase Loop · ex2.cpp Statistics Loop · ex3.cpp Alert Loop
Components 8
LED Chase
- Chase Loop
src/ex1.cpp
Sensor Statistics
- Statistics Loop
src/ex2.cpp
Threshold Alert
- Alert Loop
src/ex3.cpp
Button Counter
- Counter Loop
src/ex4.cpp
Other components
- LEDs
- Light Sensor
- Button
- Serial Monitor
Connections 9
- Chase Loop → LEDs: drives LEDs
src/ex1.cpp - Chase Loop → Serial Monitor: prints chase
src/ex1.cpp - Statistics Loop → Light Sensor: samples light
src/ex2.cpp - Statistics Loop → Serial Monitor: prints statistics
src/ex2.cpp - Alert Loop → Light Sensor: reads level
src/ex3.cpp - Alert Loop → Serial Monitor: prints transitions
src/ex3.cpp - Counter Loop → Button: reads presses
src/ex4.cpp - Counter Loop → LEDs: sets pattern
src/ex4.cpp - Counter Loop → Serial Monitor: prints count
src/ex4.cpp