Yes especially since it only requires 2 resistors to make a voltage divider and problem solved.
I think that I will use a 10k and 5.6k as this will allow for measuring 2S battery on db11 and 1S battery on db 6

The voltage on any pin, including adc, must not exceed the power supply voltage (3.3V), so the voltage divider is certainly needed.OutoftheBOTS_ wrote: ↑Wed Feb 21, 2018 4:05 amMy question is if I execute adc.atten(adc.ATTN_11DB) and hook the battery directly to the ADC pin without a voltage divider will it damage the ESP32 when the battery is above 3.9v ???
Code: Select all
import display
tft = display.TFT()
tft.init(tft.ST7735, miso=19, mosi=25, clk=26, cs=5, dc=27)
tft.rect(0, 0, 100, 100, tft.GREEN,tft.GREEN)