-
-
Notifications
You must be signed in to change notification settings - Fork 2
Replies: 1 comment · 11 replies
|
Yes of course ! There is no hard limit. That is also how I use it. Juste create one dimmer instance per lamp. The ZC callback is static so only wired once. I will add an example in a few minutes. |
All reactions
|
Hi,
Then I tested everything with v2.3.0, but I couldn't dim group 4 again. (I currently only have one 6.3W lamp.) What is the problem ? |
All reactions
|
Hello, can you please share parts of your code ? Aside api changes for semi-period (that you MUST set), there is no change between 2.2.7 and 2.3.0. Both should work the same way. I tested with 2 thyristor dimmers 2.3.0 and it works fine. Could you redo your test with 2.3.0 with 2 dimmers like you did before to confirm ? Try also to set the semi-period to a known value (10000 or 8333) and only use the pulse analyzer for the ZCD. Also, what kind of lamps ? I hope these are incandescent ones ? |
All reactions
|
Hi, /****************************************************************************************** ------------------------------------------------------------------------------------------*/ //#define Tenda // als we Wifi netwerk van kot gebruiken uncomment dit, dan is het telenet //---- WiFi en andere netwerken ------------------------- #include <WiFi.h> #include <Arduino.h> #include "ClickButton.h" //--------- Watchdog module ------------------ #define WDT_TIMEOUT 25 //35 seconds WDT const int buttons = 4; // aantal buttons long currentTime = millis(); //int buttonState1,buttonState2,buttonState3; // the current reading from the input pin // Arduino input pins from the buttons (these are not in an array for simplicity just now) // Instantiate ClickButton objects in an array #define WIFI_STATUS_LED 5 // Built in LED on ESP-32 //--- Dimmeroutputs + Settings static Mycila::PulseAnalyzer pulseAnalyzer; bool All_on = false; #define Max_L_Out 85 //----------------------------------------------------------------------------------------- //****defineer taken ******************************************************************** // Don't use BlynkRun_Priority too low, can drop Blynk connection, especially in SSL ////////////////// End Free-RTOS related code ////////////////// //----------------------------------------------------------------------------------------- BLYNK_WRITE(V3) { } ///////////////////////////////////////////////////////////////////////////// //----------------------------------------------------------------------------------------- } } } |
All reactions
|
Cool! Glad it works! Note: the semi-period is now static and common to all dimmers, so you can in 2.3.0 simplify your code with: Mycila::ThyristorDimmer::setSemiPeriod(10000); // 50Hz grid frequency |
All reactions
|
Oké, thanks I try it! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello, this is a great library and works perfect with triac, no flickering!
But is it possible to dim multiple lamps (4)with the library?
Thx
All reactions