Skip to content

masoncj/esp32-dimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ESP32 Light Dimmer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published