Page 1 of 1

Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 09:12
by OzGrant
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.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 12:50
by danmero
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.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 21:29
by OzGrant
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

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 22:14
by grovkillen
If you use the VCC version you cannot use analog plugin I think?

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 22:23
by OzGrant
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.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 22:27
by grovkillen
No analog at all?

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 22:41
by OzGrant
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.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 22:49
by grovkillen
Analog Input internal is the one that's using the ESP chips internal analog port.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 23:03
by OzGrant
I thought analog internal is 8266 3v3 supply and not the A0 pin.

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 23:14
by danmero
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

Re: Measuring Battery volts ESPEasy Mega

Posted: 22 May 2018, 23:29
by OzGrant
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

Re: Measuring Battery volts ESPEasy Mega

Posted: 23 May 2018, 05:56
by grovkillen
:) Great

Re: Measuring Battery volts ESPEasy Mega

Posted: 24 Jan 2019, 16:46
by QSKONE
pls delete