How pranav-kuppachi/esp-32-smart-torch works
This small embedded project reads ambient light or a potentiometer, converts the selected input to a percentage, and drives a color-coded LED output; the MODE button selects automatic or manual operation. The README documents the behavior and Wokwi simulation, but no source excerpts were provided, so implementation-level call relationships cannot be verified. sketch.ino represents the firmware behavior and diagram.json the simulated circuit.
Main entry points: sketch.ino LEDC PWM · diagram.json Ambient Light Sensor
Components 12
Controls and Sensors
- Ambient Light Sensor
diagram.json - Brightness Potentiometer
diagram.json - MODE Button
diagram.json
Firmware Behavior
- Mode Selection
sketch.ino - Input Reading
sketch.ino - Percentage Mapping
sketch.ino - LED Selection
sketch.ino
Other components
- Wokwi Simulation
Connections 11
- MODE Button → Mode Selection: switches mode
README.md - Mode Selection → Input Reading: selects input
README.md - Ambient Light Sensor → Input Reading: provides reading
README.md - Brightness Potentiometer → Input Reading: provides reading
README.md - Input Reading → Percentage Mapping: maps to percent
README.md - Percentage Mapping → LED Selection: selects by level
README.md - LED Selection → LEDC PWM: sets LED output
README.md - LEDC PWM → White LED: drives at 0–33%
README.md - LEDC PWM → Cyan LED: drives at 34–66%
README.md - LEDC PWM → Blue LED: drives at 67–100%
README.md - Wokwi Simulation → Ambient Light Sensor: simulates circuit
README.md