ESP8266 Wifi messing with interrupts
Posted: Fri Feb 15, 2019 3:29 pm
I'm currently working on a Firebase controlled dimmer switch using the esp8266. The way it works is that I have a zeroCrossing detection interrupt which tells me when the AC phase is changing (freq. 120HZ). Whenever the zeroCrossing is detected a timer starts and when the timer matches the wanted dimming value it turns on the switch and turns it off before the next cycle. This part works perfectly, the problem I'm having is that whenever I try to get the dimming value from Firebase everything else seems to stop for a moment and although I can read the value and dim the lights properly, each time I want an update the light flickers.
I think that the Wifi functions are somehow interfering with the other ongoing processes but don't really know how to fix this...
I think that the Wifi functions are somehow interfering with the other ongoing processes but don't really know how to fix this...