Files
zh_ac_dimmer/README.md
T

1.0 KiB
Raw Blame History

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