Chat freely about anything...

User avatar
By Aditya Varshney
#50560 I have been trying for days to dim a light bulb using a ticker timer available for ESP8266 but no luck yet. I have even edited my timer library to support microseconds but bulb doesn't dim properly as it FLICKERS!
ESP8266 also resets, this may be due to timer mismatch or any similar cause.
Also, while dimming the light at 60% and above the light dims, after some time it starts to flicker and eventually the esp resets.
If anyone has tried the same project and suffered or solved the same problem ,please suggest me how to fix it!
I am uploading my code where I have used Ticker library to dim a light bulb so you can understand my problem.
User avatar
By Aditya Varshney
#50674
Aditya Varshney wrote:I have been trying for days to dim a light bulb using a ticker timer available for ESP8266 but no luck yet. I have even edited my timer library to support microseconds but bulb doesn't dim properly as it FLICKERS!
ESP8266 also resets, this may be due to timer mismatch or any similar cause.
Also, while dimming the light at 60% and above the light dims, after some time it starts to flicker and eventually the esp resets.
If anyone has tried the same project and suffered or solved the same problem ,please suggest me how to fix it!
I am uploading my code where I have used Ticker library to dim a light bulb so you can understand my problem.
Attachments
(1.48 KiB) Downloaded 516 times
User avatar
By schufti
#50681 instead of posting (and asuming your problem is special) you should have used boardsearch for e.g. "zero crossing"
you would have found:
viewtopic.php?f=28&t=8745&hilit=zero+crossing or
viewtopic.php?f=45&t=9907&p=47139&hilit=zero+crossing or
viewtopic.php?f=19&t=5847&p=30784&hilit=zero+crossing

and maybe a solution:
viewtopic.php?f=13&t=10331&p=48923