Chat freely about anything...

User avatar
By bern
#66638 Hello,
I have just spent more than a week on the internet, looking for solutions to my problem. I just browse this forum, tried the "search function" without result ...

I want to measure a voltage with the ADC of my "NodeMcu1.0" and send it via Wifi and my BOX as SMS on my phone.

Everything works well except the measurement of the voltage with the ADC which is false and unstable.
Without Wifi, the measurement is correct, as soon as I put "#include <ESP8266WiFi.h>,"
The measurement becomes false.
I understand that there may be a electrical consomation problem with the WiFi module on the chip ?! but I'm not really sure.
I have tried many, many, many experiences without result.
Do you have a final idea before I definitely drop this module in dustbin.
User avatar
By rudy
#66660 I decided the solution is to use the analog input as a keypad/switch input. I developed a pretty good async routine for it. For real analog measurement I decided to use a small micro-controller.
Attachments
buttonSchematic.png
Only thing I found that A0 is good enough for.
User avatar
By bern
#66668
schufti wrote:try sending wifi to modem_sleep or even disable it before taking the measurment.

as soon as wifi.h is included (or even by default) wifi may be on right after boot.


Thanks a lot ; I tryed it and it works nicely.