![]() Only power your Huzzah32 either using the USB plug (max 5V, 1A) or a LiPoly battery (3.7/4.2V).The battery charges automatically when plugged in and the Huzzah32 is externally powered. This LED will also flash (more slowly) when the battery is plugged in and charging. The charging circuit light will flash quickly when there is no LiPoly battery plugged in.GPIO 13 is the LED_BUILTIN (the red LED next to micro USB).Make sure you use the proper max value in your conversions ( e.g., using map()) This is in contrast to the Arduino Uno and Leonardo, which uses ATmega chips with 10 bit ADCs (so, 0-1023). The ADC resolution is 12 bits (0-4095).Here’s an initial program to read and print out the battery level to Serial ( link) ![]() When reading in the battery level using analogRead(A13), make sure to multiply by 2 to get correct reading. It’s used for measuring the voltage on the LiPoly battery via a voltage divider.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |