possible to dim / pwm several channels together

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

possible to dim / pwm several channels together

#1 Post by kr0815 » 03 Oct 2016, 16:21

I want to dim up several channels together, but switch them off individual

a short test with a rule like

Code: Select all

on ledon do
pwm,4,1023,1000  
 pwm,5,1023,1000
 pwm,14,1023,1000  
 pwm,16,1023,1000  
endon
showed, that now the led´s go on one after the other, so one dims up in 1000ms, as soon as that is finished the next one starts.
Any idea / workaround on this?

Best regards

Klaus

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: possible to dim / pwm several channels together

#2 Post by kr0815 » 23 Oct 2016, 19:51

no reply so far :-(

Does anybody usw a RGB LED stripe ? How do you dim up / down the 3 colors the same time ?

Madbanana
Normal user
Posts: 13
Joined: 16 Oct 2016, 20:48

Re: possible to dim / pwm several channels together

#3 Post by Madbanana » 23 Oct 2016, 20:27

Hi, I'm still waiting for my strips to arrive so haven't had any time playing yet, however a workaround could be to dim in stages?

So instead of going to full brightness on each channel in one go, how about doing each say 10% and then move on to the next? Then repeat until they're all at full brilliance.

It may not be very neat coding and may not be visually what you want, but its what I'd try first. If it looks jerky, maybe reduce each to 5%.

Good luck, once I get mine I will give it a go. There must be an easier way!

User avatar
renearts
New user
Posts: 9
Joined: 26 May 2016, 13:31
Location: Volkel, NL
Contact:

Re: possible to dim / pwm several channels together

#4 Post by renearts » 02 Nov 2016, 13:40

As far as I have experienced the tasks are carried out sequentially, so this behaviour is expected. Also the fading is a blocking operation AFAIK.
I totally agree that there should be a neater method to fade several channels at the same time to be able to get a nice color fade.
A temporary workaround as Madbanana might provide a solution for now, but the requested functionality will take some time to implement as both the tasks and fading will need to be converted to 'multithreaded' operations.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: possible to dim / pwm several channels together

#5 Post by mrwee » 03 Nov 2016, 14:30

This sounds interesting. I'm using a H801 with espeasy R120 but can't seem to find a good dimmer solution.

User avatar
ledfreak3d
Normal user
Posts: 48
Joined: 21 Oct 2016, 12:41

Re: possible to dim / pwm several channels together

#6 Post by ledfreak3d » 03 Nov 2016, 21:27

the milight plugin works fine for rgb
sadly not for rgbw yet
Domoticz Synology Esp easy Location Netherlands /Hoorn

User avatar
pmayer
Normal user
Posts: 26
Joined: 12 Jun 2016, 20:04
Location: Germany
Contact:

Re: possible to dim / pwm several channels together

#7 Post by pmayer » 06 Nov 2016, 14:31

@ledfreak3d: Could you post an example?

User avatar
ledfreak3d
Normal user
Posts: 48
Joined: 21 Oct 2016, 12:41

Re: possible to dim / pwm several channels together

#8 Post by ledfreak3d » 06 Nov 2016, 15:41

ofcourse just compile the rgbw plugin with easy esp and you can control it via the milight plugin in domoticz
works good for rgb but not rgbw yet
but that's a limitation of domoticz not of the plugin


_P105_RGBW.zip
rgbw plugin
(3.42 KiB) Downloaded 510 times
Domoticz Synology Esp easy Location Netherlands /Hoorn

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: possible to dim / pwm several channels together

#9 Post by mrwee » 06 Nov 2016, 19:02

i have tried that plugin, but I often find the fading to be very unstable.

User avatar
ledfreak3d
Normal user
Posts: 48
Joined: 21 Oct 2016, 12:41

Re: possible to dim / pwm several channels together

#10 Post by ledfreak3d » 08 Nov 2016, 08:44

I must say I don't use it my self I use a modified version of quindor's lau code to contoll my aquarium lights
they fade very nicely
and are super stable
Domoticz Synology Esp easy Location Netherlands /Hoorn

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: possible to dim / pwm several channels together

#11 Post by papperone » 08 Nov 2016, 09:26

ledfreak3d wrote:I must say I don't use it my self I use a modified version of quindor's lau code to contoll my aquarium lights
they fade very nicely
and are super stable
can you share some info? maybe woudl be great to leverage the algorithm used for fading if very nice and create a RGBW plugin which is more "universal" than the P105 which emulates a MiLihght device...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
ledfreak3d
Normal user
Posts: 48
Joined: 21 Oct 2016, 12:41

Re: possible to dim / pwm several channels together

#12 Post by ledfreak3d » 08 Nov 2016, 11:03

wel the fading in quindor's code is done automaticly it fades between levels instead of just selecting the level straight away

see http://blog.quindorian.org/2015/01/esp8 ... p-01.html/ for details on the code

would be great it it can be integrated into esp easy
Domoticz Synology Esp easy Location Netherlands /Hoorn

nygma
Normal user
Posts: 25
Joined: 26 Nov 2016, 11:16

Re: possible to dim / pwm several channels together

#13 Post by nygma » 09 Dec 2016, 23:44

I was just looking for the same. Does anyone know if this has been considered (fading in between PWM states)? I guess this is not something which can be implemented in rules.

User avatar
ledfreak3d
Normal user
Posts: 48
Joined: 21 Oct 2016, 12:41

Re: possible to dim / pwm several channels together

#14 Post by ledfreak3d » 10 Dec 2016, 00:04

Yep confirmed working with esp easy and domoticz with the correct script
Last edited by ledfreak3d on 10 Dec 2016, 09:42, edited 1 time in total.
Domoticz Synology Esp easy Location Netherlands /Hoorn

nygma
Normal user
Posts: 25
Joined: 26 Nov 2016, 11:16

Re: possible to dim / pwm several channels together

#15 Post by nygma » 10 Dec 2016, 09:28

I am sorry, I don't understand. What does this mean?

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests