diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/microcontrollers/olimex-esp32-c3-devkit-lipo/index.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/microcontrollers/olimex-esp32-c3-devkit-lipo/index.rst b/source/microcontrollers/olimex-esp32-c3-devkit-lipo/index.rst index caec10e..2a6b14c 100644 --- a/source/microcontrollers/olimex-esp32-c3-devkit-lipo/index.rst +++ b/source/microcontrollers/olimex-esp32-c3-devkit-lipo/index.rst @@ -38,11 +38,21 @@ These are the settings used: It may be necessary to bring GPIO9 to GND to force the board into bootloader mode before loading sketches. +Battery Measurement +=================== + +The battery voltage can be read on GPIO3 after closing the jumpers +BAT_PWR_E1 and BAT_SENS_E1 with the following arduino code:: + + float battValue = analogReadMilliVolts(3) / 500.0 ; + See also ======== * `The post on my blog with the original version of these instructions <https://blog.trueelena.org/blog/2023/04/30-programming_the_ESP32-C3-DevKit-Lipo_with_arduino/index.html>`_ +* `Explanation on battery measurements in a GitHub issue + <https://github.com/OLIMEX/ESP32-C3-DevKit-Lipo/issues/1#issuecomment-1486468781>`_ .. vim: set filetype=rst: |