fabianoriccardi / dimmable-light

Arduino library to manage dimmers compatible with AVR, ESP8266, ESP32, SAMD, and RP2040 platforms.
GNU Lesser General Public License v2.1
95 stars 28 forks source link

Add "Count Mode" similiar to Circuitar #29

Open yokusan opened 2 years ago

yokusan commented 2 years ago

Dear Fabiano,

would it be possible to integrate a "Count Mode" similar as in the Circuitar Dimmer library? This is the mode that uses complete half-waves to dim. That would be very helpful.

Regards from Germany,

Johannes

fabianoriccardi commented 2 years ago

Hi Johannes, Of course, it is possible, but it requires a bit of rework. May you tell me in which scenario/circuit you would use it? Actually, I started the library to control lamps, so I suppose you would control other kind of loads that requires smoother signal.

yokusan commented 2 years ago

I want to control a resistive load (Thermoblock of an espresso machine) using an AC Dimmer module (RobotDyn) in combination with an ESP32 controller and the PID library. I would like to avoid cutting in the phase to minimize inductive heat generation and to minimize electric noise.

nsummy commented 2 years ago

@yokusan Check out these 2 repos, it might have what you are looking for:

https://github.com/biletnikov/bresenham-triac-driver https://github.com/GyverLibs/GyverDimmer/blob/main/README_EN.md