Measuring Battery volts ESPEasy Mega

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Measuring Battery volts ESPEasy Mega

#1 Post by OzGrant » 22 May 2018, 09:12

G'day,
Have seen a few google answers, where DEVICE is set to Analogue Input.
But I do not see that choice. I do see P025, P059, P007, and P002.
Does a PXXX for a simple analogue on A0, have to be imported/configured in some way.

danmero
Normal user
Posts: 64
Joined: 11 May 2017, 01:19

Re: Measuring Battery volts ESPEasy Mega

#2 Post by danmero » 22 May 2018, 12:50

Build 120 is too old.
See image attached below, my setup on Mega for voltage up to 19V.
Compile your own from source or try the latest nightly built from GitHub

Regards,

Edit: I add a resistor(don't remember the value) and a fuse between the car battery and A0 and do the reverse math.
Attachments
adc_a0.png
adc_a0.png (17.51 KiB) Viewed 11382 times

OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Re: Measuring Battery volts ESPEasy Mega

#3 Post by OzGrant » 22 May 2018, 21:29

Tks for our reply.
I downloaded the latest firmware (GIT version: mega-20180522) and Device "Analog Input" not in the drop-down list.

Displayed choices are:
P025 Analog Input ADS1115
P060 Analog Input MCP3221[Testing]
P007 Analog Input PCF8591
P002 Analog Input Internal

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

Re: Measuring Battery volts ESPEasy Mega

#4 Post by grovkillen » 22 May 2018, 22:14

If you use the VCC version you cannot use analog plugin I think?
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:

OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Re: Measuring Battery volts ESPEasy Mega

#5 Post by OzGrant » 22 May 2018, 22:23

Have tried:
ESP_Easy_mega-20180522_dev_ESP8266_4096.bin
ESP_Easy_mega-20180522_normal_ESP8266_4096.bin
ESP_Easy_mega-20180522_test_ESP8266_4096.bin
and
ESP_Easy_mega-20180522_test_ESP8266_4096_VCC.bin
And got the same failed result.

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

Re: Measuring Battery volts ESPEasy Mega

#6 Post by grovkillen » 22 May 2018, 22:27

No analog at all?
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:

OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Re: Measuring Battery volts ESPEasy Mega

#7 Post by OzGrant » 22 May 2018, 22:41

Just the following.
P025 Analog Input ADS1115
P060 Analog Input MCP3221[Testing]
P007 Analog Input PCF8591
P002 Analog Input Internal
I think one set did not have the Pxxx number, plus a there was [test] after the name when I viewed the drop-down selection menu.

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

Re: Measuring Battery volts ESPEasy Mega

#8 Post by grovkillen » 22 May 2018, 22:49

Analog Input internal is the one that's using the ESP chips internal analog port.
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:

OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Re: Measuring Battery volts ESPEasy Mega

#9 Post by OzGrant » 22 May 2018, 23:03

I thought analog internal is 8266 3v3 supply and not the A0 pin.

danmero
Normal user
Posts: 64
Joined: 11 May 2017, 01:19

Re: Measuring Battery volts ESPEasy Mega

#10 Post by danmero » 22 May 2018, 23:14

Analog Input use A0, but can read up to internal Vcc.
If you want to go higher Vc you will need a resistor between A0 and Vc. If high current is involved please add a very small fuse inline(<=100mA).

Regards,

ESP_Easy_mega-20180522_normal_ESP8266_4096
Attachments
adc_a0b.png
adc_a0b.png (30.74 KiB) Viewed 11347 times

OzGrant
Normal user
Posts: 10
Joined: 20 Nov 2017, 22:44

Re: Measuring Battery volts ESPEasy Mega

#11 Post by OzGrant » 22 May 2018, 23:29

Thanks for your help, I got confused with A0 and VCC.
Also, I like your flash programme, so its been a good day all around.
Regards
Grant

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

Re: Measuring Battery volts ESPEasy Mega

#12 Post by grovkillen » 23 May 2018, 05:56

:) Great
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:

QSKONE
New user
Posts: 1
Joined: 24 Jan 2019, 16:29

Re: Measuring Battery volts ESPEasy Mega

#13 Post by QSKONE » 24 Jan 2019, 16:46

pls delete

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests