ESP32 ESP-IDF component for AC dimmer for 115V/400Hz

Wiki

EN | RU

Tested on

  1. ESP32 ESP-IDF v6.0.0

SAST Tools

PVS-Studio — static analyzer for C, C++, C#, and Java code.

Features

  1. Zero-crossing detection via GPIO interrupt for precise phase-angle control.
  2. TRIAC gate control through ESP-IDF gptimer with configurable dimming level (0–100%).
  3. IRAM-safe ISR and callback functions for reliable operation.
  4. 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"

Examples

See Wiki EN | RU

S
Description
ESP32 ESP-IDF component for AC dimmer (phase-angle control).
Readme Apache-2.0
111 KiB
0 Stars 1 Watchers 0 Forks
Languages
C 99.1%
CMake 0.9%