Skip to content

Read battery voltage #314

@lalo-uy

Description

@lalo-uy

In the api there are 3 different ADC calls

analogRead(ADC)
analogReadmV(ADC)
and
getBatteryVoltage()

the AB01-V2 datasheet say:

ADC_IN2 for external ADC; ADC_IN1 is used to read the lithium battery voltage, the voltage of the lithium battery
is: V BAT = 2*V ADC_IN1

non example touches GPIO7 .
Is ok to read getBatteryVoltage() while other sensor is connected to the ADC pin?

Thanks in advance

Lalo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions