Monitoring Battery/Accu

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
Beliar_666
Normal user
Posts: 2
Joined: 11 Apr 2019, 00:08

Monitoring Battery/Accu

#1 Post by Beliar_666 » 11 Apr 2019, 00:11

Hello,
I plan to run my Nodemcu with ESP Easy Mega with Batterys/Accu as Powersupply. Is it possible to monitor the Powersource used and send the Voltage also via mqtt?

ThomasB
Normal user
Posts: 222
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Monitoring Battery/Accu

#2 Post by ThomasB » 11 Apr 2019, 01:51

Short Answer:
Yes.

Long Answer:
Use the "Analog input - internal" Plugin. ADC input is on pin A0.

You MUST use a voltage divider that scales your maximum external voltage so it does not exceed 1VDC:
https://www.letscontrolit.com/wiki/inde ... ge_divider
https://www.microcontroller-project.com ... nitor.html

Notes: Do not use a firmware release with "VCC" in its name. Some NodeMCU boards include a voltage divider (see details in link above).

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest