- Posts: 29
- Thank you received: 1
enigma wrote: Thank you leolopezlez,
It is a pity there is no v0-8bx image file for the RPI, because I have no clue how to get the easyiot server file into my rasbian home/easyiot directory, for me the rasbian pi is quit new.
Hope somebody can explain this
Later I've discovered one little detail about ESP8266. While power up GPIO2 must be connected to VCC to start in correct mode. In my test case it happened that door was open and GPIO2 was on VCC. If you start this example with door closed it won't work because ESP8266 wont start int correct mode. There are two solutions:
-connect reed relay and capacitor to VCC and GPIO. That way GPIO2 will be always connected to VCC at startup. Also correct line gpio.mode(4,gpio.INT,gpio.PULLUP) to gpio.mode(4,gpio.INT,gpio.PULLDOWN)
-use different ESP8266 model and connect reed relay to different GPIO pin. Also correct program to work with different GPIO.