Chat freely about anything...

User avatar
By Aditya Varshney
#50277 I was successful dimming a bulb using normal zero cross detection for single bulb. My ultimate goal is to perform dimming on multiple loads. So to do it I have to use the logic of timers. But it seems that this logic for multiple load is not working properly.
Can anyone help me out!!!
Attachments
(1.48 KiB) Downloaded 636 times
User avatar
By trackerj
#50301 I really don't think that you can queeze more that one phase detection and ZCD from ESP8266. Even so it's to the limit if you want to run more than that on it.
The solution is to use a AC dimmer that has onboard Phase detection/ZCD.

This one: MPDMv4 - Universal AC MAINS Dimmer Module , was designed exactly for such applications where you don't have plenty of resources on your application MCU (ESP8266 in your case)

Related post : http://www.esp8266.com/viewtopic.php?f=13&t=10331

Also you have a short tutorials here:
- ESPBASIC example : http://www.esp8266.com/viewtopic.php?f=15&t=10630
- ESPBASIC simple interface example : https://www.youtube.com/watch?v=zVGn8s5BxM0
- Arduino example : https://www.youtube.com/watch?v=XftPnCJIU_0
- Blynk example : https://www.youtube.com/watch?v=sa2Io4sPK9k
User avatar
By Barnabybear
#50322
Aditya Varshney wrote:I was successful dimming a bulb using normal zero cross detection for single bulb. My ultimate goal is to perform dimming on multiple loads. So to do it I have to use the logic of timers. But it seems that this logic for multiple load is not working properly.
Can anyone help me out!!!


Hi, I'm not quite sure how you are going about this but once you know the zero crossing point it is the same for all the outputs you want to dim (unless you are using 3 phase in which case you still know the zero crossing point, it’s just a third of a phase different). The only bit you need to sort is the timing to set the outputs high after the zero cross point. It shouldn’t be a problem to dim a channel on each spare GPIO.
User avatar
By Anant_Sharma
#50384 I am working on same thing with same issues.
Light bulb doesn't dim properly when using Ticker timer in ES8266
If someone can look at our code provided by Aditya and suggest any improvements.