Skip to content

Arduino_getBatteryVoltage

Chris Courson edited this page Sep 3, 2020 · 2 revisions

Supported by xArm/LeArm

Gets the battery or power supply voltage. If the arm is powered by the supplied power brick, it will return its voltage which is around 7.6 VDC (7600 mv).

uint16_t getBatteryVoltage();

Parameters:

  • Nothing.

Returns:

  • Battery voltage in millivolts. Range is 4500 to 12000 mv.