CubeCell

From Eric

(Difference between revisions)
Jump to: navigation, search
m
m (Measuring battery level)
 
Line 9: Line 9:
== Measuring battery level ==
== Measuring battery level ==
The battery voltage can be read using the getBatteryVoltage() API.
The battery voltage can be read using the getBatteryVoltage() API.
-
This is achieved by connecting the ADC to vbat via a 1/2 divider:
+
This is achieved by connecting the ADC to vbat via a voltage divider (*1/2):

Latest revision as of 08:56, 10 April 2021

The CubeCell module

[cubecell.jpg]

Problem uploading sketches

In case you cannot upload the sketch to the cude cell (timeout when connecting to the bootloader), a solution consists to set the CubeCell in bootloader mode manually by:

  • pressing the user button
  • pressing the reset button
  • releasing the reset button
  • releasing the user button

Measuring battery level

The battery voltage can be read using the getBatteryVoltage() API. This is achieved by connecting the ADC to vbat via a voltage divider (*1/2):


Cuvecellvbatmeasure.jpg


In order to prevent the battery to dry out via the divider, connection to vbat is controlled by GPIO7 via a dual transistor (AO7801).

AO7801.jpg
Personal tools