battery vcc measure problem

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
skittlez
Normal user
Posts: 13
Joined: 30 Apr 2019, 03:42

battery vcc measure problem

#1 Post by skittlez » 12 Sep 2019, 15:11

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: battery vcc measure problem

#2 Post by grovkillen » 12 Sep 2019, 16:41

Shouldn't you use VIN?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: battery vcc measure problem

#3 Post by TD-er » 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 :)

skittlez
Normal user
Posts: 13
Joined: 30 Apr 2019, 03:42

Re: battery vcc measure problem

#4 Post by skittlez » 13 Sep 2019, 00:57

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests