Page 1 of 1

battery vcc measure problem

Posted: 12 Sep 2019, 15:11
by skittlez
Hi,
I have a lipo battery connected to a ldo 3.3v regulator that is powering my esp8266.
This works fine however I want to monitor the 3.3v and then detect when it just starts to drop out which will indicate that the battery is getting too low.

I am using the vcc bin, I added "analog internal" as a device but it reports a measurement of "-1"

I have nothing connected to a0

What am I doing wrong?

Thanks for any help

Re: battery vcc measure problem

Posted: 12 Sep 2019, 16:41
by grovkillen
Shouldn't you use VIN?

Re: battery vcc measure problem

Posted: 12 Sep 2019, 21:46
by TD-er
The VCC build allows the "system info" plugin to report the VCC.
The analog input (ADC) plugin cannot be used with the VCC build.

This one has bitten me too last week :)
And yes this should be changed :)

Re: battery vcc measure problem

Posted: 13 Sep 2019, 00:57
by skittlez
TD-er wrote: 12 Sep 2019, 21:46 The VCC build allows the "system info" plugin to report the VCC.
The analog input (ADC) plugin cannot be used with the VCC build.

This one has bitten me too last week :)
And yes this should be changed :)
Ah ok, worked it out: generic system info device
Thanks!