04/06/2015 at 05:50 •
After reading the Arduino IDE support for the ESP8266 article on the HAD blog, I decided to write up some quick example code to see if it also exhibited the same flickering issue as NodeMCU. I was very happy to see smooth dimming and have now ported the code I had for NodeMCU to Ardiuno.
Code and Fritzing schematic I've been working on are now available on GitHub. Both are for 110v and will need adjusted timings in code and 30k resistors to the bridge rectifier for 220v.
Next up will be trying to fit all components on my perfboard. I've ordered some 4A 250V pigtail fuses and am waiting to see if I can squeeze it on my board (I will need to shift things around). If not, I will use an inline fuse holder. I'm also hoping to add a low temp (< 100c) AC thermal fuse for peace of mind.
Here is what its looking like with all components in place (except fuse). Nothing is soldered yet.
04/06/2015 at 00:59 •
My initial code was running on NodeMCU firmware. Unfortunately, when wifi was enabled there was a slight flickering (something like 5% or so) when dimming was enabled. I believe this was due to the wifi CPU cycles causing the TRIAC trigger delay to vary. If NodeMCU ever ports their code to the RTOS SDK, I will be curious to see if that corrects this issue.