-->
Page 3 of 9

Re: Wifi controlled 220V AC dimmer

PostPosted: Wed Sep 09, 2015 4:05 pm
by freedom2000
Hi,

Almost right !

I only perform the zero crossing détection on the falling edge.
This allows to totally avoid flicker.

So the code is :
- interrupt on falling edge
- wait required delay
- send pulse to MOC
- wait half a period (minus pulse duration)
- send pulse to MOC

And thank you for my youtube channel :oops:

and for the link --> really interesting

JP

Re: Wifi controlled 220V AC dimmer

PostPosted: Thu Sep 10, 2015 8:50 am
by Def
@freedom2000 Are you using Espressif SDK or Lua?

Re: Wifi controlled 220V AC dimmer

PostPosted: Thu Sep 10, 2015 2:30 pm
by freedom2000
Neither Expressif nor Lua !

Lua is too slow
Expressif too complex


So I use Arduino firmware --> very powerful, standard an so easy to master

JP

Re: Wifi controlled 220V AC dimmer

PostPosted: Fri Jan 08, 2016 12:26 am
by bkrajendra
Hi @freedom2000 looks nice!
can you provide source and detail schematic of design.