This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"cellView": "form", | |
"colab": { | |
"base_uri": "https://localhost:8080/" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Using the VDDIO2 pin of AVR Dx MCUs (e.g. AVR128DB32 or other DB, DD MCUs) | |
to measure battery voltage without a voltage divider | |
(when using Arduino IDE with DxCore) | |
Instructions: Connect the battery positive pin to VDDIO2 (and negative pin to ground obviously) | |
Note that a voltage higher than 6.5V on the VDDIO2 pin may destroy your MCU. Stable operation up to maximum of 5.5V |