Hi to all
I’m new to the group, my name is Fabrizio and I’m really a beginner.
I would like to turn a LED on Blink when this sensor becomes off / on.
I connected the sensor following this scheme
and this is the sensor.
I connected everything to port D8 and use an MCUesp2866.
Someone can give me some help so I can do some testing.
D8 = GPIO15, which isn’t a great choice if pins:
Your float switch is just a simple on/off device. One side is connected to D8, where is the other side connected to?
This sketch builder example would be a good starting point…
thanks for answering PeteKnight
the other part of the sensor is connected to the 5v with a 10k resistor. When the sensor is down (no water) there should be 5v on pin D8.
5v on pin D8 is much more than the nodemcu can admit.
the Max is 3.3v !
you risk to burn it.
And a 10k resistor in series with the 5v supply will give such a low voltage when the switch is closed that the NodeMCU will still see Pin D8 as LOW.
The sensible approach would be to use the 3v3 pin of the NodeMCU connected to one side of the switch and the other side to a more appropriate pin than D8.
thank you very much, you answered me very quickly.
noting that my floating sensor behaves like a switch I used this other scheme.
But when I check with the tester I always measure 4.8V.
This is right or not?
I have another free pin D0 but I don’t understand if it can go well
Thank a lot
I have not seen the scheme well, the voltage is 3.3V.
Now I just want to know if D8 and D0 are pins that is good for my sensor
I’ve already you that they aren’t, see the second post in this thread.
D8= boot failure if pulled high