-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More than 8ch #24
Comments
I have to run some extra tests, but the test above seems to run good now. I raised the number of maximum lights to 12 by adjusting |
would be great to know if this limit could be increased to 16. I am using Arduino Mega and was hoping to get up to 16 dimmers. not sure if anyone has tried increasing to this max number...? |
Technically there is no limit (leaving out the memory and pins) to the number of dimmers. Just change the "soft" limit to the desired value here: dimmable-light/src/thyristor.h Line 165 in c780331
and here: dimmable-light/src/dimmable_light.h Line 129 in c780331
|
Glad to hear that. Maybe it is worth adding this in a comment so when others look at the limitation, they are going to be less concerned with making a change. Or perhaps maybe make it adjustable at the compile time? I have cloned the repo anyway as I think I might need to also be able to retrieve the pin number from the thyristor class. This is handy when I have an array of dimmers. |
I have never tested more than 8 dimmers, so I didn't want to document what it is not tested. However, if you have succeeded, I will add a note and eventually I can add an easier way to increment the max number of dimmers. |
Hey @kleurbleur @bcelary , did you manage to go up to 16 lights? |
I did not test it above 12, but flickering can happen if the zero cross is not good. |
@kleurbleur Wow, first of all thank you for your fast answer even after 2years! |
How I read my opening post I all different boards should have their zero-cross connected to the same Arduino pin indeed. Otherwise the board doesn't know when to do the dimming and you get flickering. |
Which board are you using? Do the lamps work properly with a single board (4 lamps)? |
I'm using the RoboDyn 4CH board. My lights are all on the same AC indeed. Thank you for your help :) |
That's fine. Which Arduino board are you using? Arduino UNO, Arduino mega, or other? I need to know at least the generic platform you are working with. Moreover, if you control only 9 lamps, do they run smoothly? |
Sorry forgot to mention the board! |
I guess, but I have to give it a closer look. |
I'll try connecting all of the Z-C to the Arduino tomorrow and see if that changes anything. I'll keep you updated. |
For now, I can tell I can replicate issue. |
Awesome. Let me know if you need anything.
…-------- Message d'origine --------
Le 1 nov. 2023, 21:56, Fabiano Riccardi a écrit :
For now, I can tell I can replicate issue.
—
Reply to this email directly, [view it on GitHub](#24 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ADXJQ6GCCW72M7MLHWJVSNTYCKZQVAVCNFSM5CFLSACKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYHE3DOMRZGM3A).
You are receiving this because you commented.Message ID: ***@***.***>
|
Hello again. |
I was using an ESP32 so maybe that's the difference? But this is al a long time ago for me and the company I made it for got bankrupt in the end so I salvaged most parts and took my loss. I don't have documentation of it I'm afraid. |
@kleurbleur Holy shit lol that's a story on it's own. It's alright, thank you anyway! Hope you're doing good now. |
May you post a MCVE sketch that makes the lamps flicker? |
Sure, here you go: Gist Code |
This is not exactly an MCVE since it requires the device that sends the messages through Ethernet. However, I have investigated a bit and I have found an issue that introduces the flickering when many dimmers are controlled. |
That's great news! Is it something you can fix? |
I hope so. I have pushed a possible fix to branch https://github.com/fabianoriccardi/dimmable-light/tree/fix-16-dimmers . Can you test it on your setup? |
Thank you Fabiano. Sure, I'll give it a go as soon as I can and let you know how it went. Thanks a lot! |
Closing as v1.5.2 (which includes the fix) is out. |
I'm using three RobotDyn 4ch dimmer boards all getting their power from a MeanWell 5V 3.4A power supply. Since they're connected to the same 230V 50Hz power outlet they also all have their zero-cross connected to the Ardiuno Uno GPIO 2.
In total I have 12 channels and if I mix the channels around spread across the boards the first 8 of the list work. I tested this by putting the last not working 4 channels in the beginning of the list and vice versa. Result was that the ones that did not work worked, and the others didn't.
Now I checked the source code and changed the on line 95 in file dimmable_light.h from 8 to 12, but to no avail. Does anybody know how to raise the limit of the maximum amount of channels?
The text was updated successfully, but these errors were encountered: