NodeMCU ESP8266 - how to measure voltage off 8.4v battery on A0 pin?

I have an RC car that has an output pin called BVD which is used to check the voltage of the battery. I'd like to put that in the A0 pin of the ESP8266 to read the voltage level and tell me when the car needs to be charged.

I believe the A0 pin can take up to 3.3v

What is the best way to go about this?

Add a 160K resistor in series with A0

Hi, @faatma
Google;

esp8266 reading battery voltage

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I don't have a 160k so tried with 150k and 10k in series. The voltage from the BVD pin measures 8.03v at the end of the series but 7.47 (too high) at the junction point? I measured with my multimeter

Edit: I'm stupid I was measuring from R1 to R2 instead of just R2

Sorry, I thought you said 4.8V.

For 8.4V use 560K

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.