How to measure voltage using gpio?

Hello,

is it possible to measure voltage of LiPo accum
using GPIO (ADC0,1)?

Usually the voltage about 3.7v DC, and it seems to fit
for gpio levels.

Thank you,

SY, Serge.

Hello @sergetsp ADC is from 0 to 1,8v please check the docs for more information.

https://docs.khadas.com/products/sbc/vim3/applications/gpio/adc

If you would like to measure voltages greater than 1.8 you will need to use the appropriate voltage divider circuit.

Regards.

1 Like

Sravan,

thank you very much for important information.