Search found 1 match
- Sun Dec 15, 2019 9:38 pm
- Forum: ESP-IDF
- Topic: Lipo voltage Lolin D32
- Replies: 2
- Views: 9542
Re: Lipo voltage Lolin D32
I'm wondering how to measure the LiPo voltage using a Lolin's D32. ...
I used this code, I'm not sure if it is correct or not.
void loop()
{
int ADC_VALUE = analogRead(35);
Serial.print("ADC VALUE = ");
Serial.println(ADC_VALUE);
int adc_percentage = int(100 * ADC_VALUE / 4095);
//delay ...