How dzakirt/smartfan-esp32_kelompok-3_es-c works
This is an ESP32 smart-fan system whose documented workflow detects presence, validates motion, and runs the fan in automatic temperature-based or manual potentiometer-based mode. It also displays system information and saves energy by stopping the motor, switching off selected sensors, and entering deep sleep while PIR remains available for wake-up. The repository contains one firmware file, but no source excerpt was provided, so relationships below rely on the README rather than verified calls or state transitions.
Main entry points: SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino Finite State Machine
Components 15
Sensing
- PIR AM312
- DHT22
- Potentiometer
Control
- ESP32 Firmware
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - Finite State Machine
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - Motion Validation
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - Automatic Mode
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - Manual Mode
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino
Power and Output
- Sleep State
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - Sensor Power Switching
SourceCode_Smart-Fan_Kelompok-3_Embedded-System-C.ino - L298N Driver
- DC Fan Motor
- LCD Display
- ESP32 Deep Sleep
Other components
- User
Connections 17
- User → PIR AM312: triggers presence
README.md - PIR AM312 → Finite State Machine: signals motion
README.md - PIR AM312 → ESP32 Deep Sleep: wakes system
README.md - Finite State Machine → Motion Validation: validates motion
README.md - DHT22 → Automatic Mode: provides temperature
README.md - Potentiometer → Manual Mode: provides setting
README.md - Finite State Machine → Automatic Mode: selects mode
README.md - Finite State Machine → Manual Mode: selects mode
README.md - Automatic Mode → L298N Driver: sets fan speed
README.md - Manual Mode → L298N Driver: sets fan speed
README.md - L298N Driver → DC Fan Motor: drives motor
README.md - ESP32 Firmware → LCD Display: displays information
README.md - Sleep State → ESP32 Deep Sleep: enters sleep
README.md - Sleep State → L298N Driver: stops motor
README.md - Sleep State → Sensor Power Switching: switches sensors off
README.md - Sensor Power Switching → DHT22: cuts power
README.md - Sensor Power Switching → Potentiometer: cuts power
README.md