π First stable release of the Remote Controlled Fan Controller firmware.
β¨ Features
- TRIAC-based fan speed control (LOW / MEDIUM / HIGH / OFF)
- Swing control via IR remote or manual button
- IR remote decoder (TSOP1838 sensor)
- Delay-off timer (30 / 60 / 120 minutes)
- LED indicators for speed and swing
- Push-button fallback (ON, OFF, SWING)
- PWM buzzer feedback
- Modular C code with separate header/source files
π οΈ Hardware requirements
- PIC16F887 microcontroller (20 MHz crystal)
- TSOP1838 IR receiver
- TRIAC drivers for fan coils + swing
- Push buttons (ON, OFF, SWING)
- LEDs (3 Γ speed, 1 Γ swing)
- PWM buzzer on CCP2 (RC1)
π¦ Contents
src/β Source filesinclude/β Header filesmain.cβ Entry pointassets/β Image previews
π§ Build Instructions
- Open with MPLAB X IDE
- Compiler: XC8
- Device: PIC16F887
- Clock: 20 MHz HS oscillator
- Use PICkit 3/4 or compatible programmer
MIT License Β© Lakmal Weerasinghe