nassir-malik / IOT-AC-Light-Dimmer-With-Alexa

IOT-Light-Dimmer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file not found "ets_sys.h"

tunage opened this issue · comments

Your code calls on these libraries, but they are not standard and there is no reference where to find these libraries in the README.

#include "ets_sys.h"

in hw_timer.c

@tunage : Did you get this working?

Hi Nassir,

I was able to get it working with an ESP8266-01, thanks for the code. Since there is only two GPIO I only had to change the two lines:
const byte zcPin = 0; // Was 12
const byte pwmPin = 2; // Was 13

Now I have a question:

The bulb flickers a little. I tried to look at the oscilloscope but it is difficult to catch the moment when it flashes. This occurs several times 2 or 3 per 10 seconds at a maximum brightness 255 and more often at a low brightness, erratically, such as 5 to 10 times per second. It looks like a triac missfire (It didn't do it using a PIC from microchip vcc=3.3v, so I am confident that there is something with the zcd, software timer, the ESP8266 it self or something I am not aware of). Any idea of ​​what could be the source of the problem?

It does it with both LED bulb and incandescent bulb.

Mathieu