1.0 KiB
1.0 KiB
ESP32 ESP-IDF component for AC dimmer for 115V/400Hz
Wiki
Tested on
SAST Tools
PVS-Studio — static analyzer for C, C++, C#, and Java code.
Features
- Zero-crossing detection via GPIO interrupt for precise phase-angle control.
- TRIAC gate control through ESP-IDF gptimer with configurable dimming level (0–100%).
- IRAM-safe ISR and callback functions for reliable operation.
- Thread-safe start/stop/set/get API.
Using
In an existing project, run the following command to install the component:
cd ../your_project/components
git clone https://github.com/aZholtikov/zh_ac_dimmer
In the application, add the component:
#include "zh_ac_dimmer.h"