Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.56 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.56 KB

ESP32 Light Dimmer

An attempt at a multi-channel incandescent light dimmer using the ESP32. Will eventually provide HTML/javascript based UI for dimming lights.

Status

Still under construction. Able to do fades of up to 4 dimmer channels.

Experiments with the LEDC peripheral revealed a need to perform dimming manually (instead of with LEDC fade functionality) due to inability to adjust PWM phase via dimming. So, we implemented the dimming logic inside zero-crossing interrupt routine, but needed to perform all math as fixed-point due to hard faults when doing floating point in ISR.

Next step is to implement HTML/wifi based control. Looking at possibly using

Hardware

Building

Requires ESP32 IDF.

Currently using v4.4.3 (git checkout v4.4 --recurse-submodules)

. /path/to/esp/idf/export.sh
idf.py set-target esp32
idf.py menuconfig
idf.py build
idf.py -p /dev/tty.usbserial* flash