I have found this nice project and tried to implement it. First I went with the exact same equipment as it was described and it worked but then I realised I will have to change batteries at some point so I figured which I didn’t like. Since I have my sprinklers running with a nodemcu esp8266 and two switches I figured I should connect the rain gauge there too.
I have connected the two wires from the rain gauge to the esp8266 GND pin and to the D4 but I get no state change in the binary sensor set for the D4 pin. I have tried to connect the gauge between 3V pin and the D4 pin but still nothing.
Can anyone help me figure out where to connect the wires?
I have the following yaml configured for this esp8266 at the moment:
I have used D8 but that didn’t work either. Given that I have all the others connected, I am not sure which to use! I could try to use D0 since I have not physically connected anything there. Would that be ok?
i might end up doing that in the end if it doesn’t work! I had an overly ambitious project for it but it seems my skills are still lacking! i’ll try and let you know!
Be careful, D0 and D4 HAVE to be high when the ESP boots up, or it won’t come up. So usually not a good idea to connect a switch to those pins.
You might want to a add another ESP to do this.
so D0 is safe and ok? sweet! now I have to wait for rain again…
Also you are so right! I was reading up on esp32 and boy oh boy it is so nice for not much more! I will change to it as soon as I have the time to solder a breakout board for it!
Well the esp32 is very nice, I would not change it a 8266 unless you want to add more stuff the 8266 can not support.
I have a bunch of 8266’s around the house, installed before esp32’s were around, and they are serving their purpose so I am not replacing them.
Hi @luciandf , I’m about to try the same thing with this gauge and ESP8266. Did you succeed with this project and if so, what did you discover was the working layout?