HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
255 stars 140 forks source link

GPIO7 on CubeCell #7

Closed Skipper-is closed 5 years ago

Skipper-is commented 5 years ago

GPIO7, on the pinout says that it is battery test control. Is this capable of giving a reading on the battery level? Or is it for testing whether it is running on battery power?

Heltec-Aaron-Lee commented 5 years ago

GPIO7 is ADC enabler, before measure the battery voltage, need set GPIO7 LOW firstly.

You can refer to this example: https://github.com/HelTecAutomation/ASR650x-Arduino/blob/master/libraries/Basics/examples/ADC_battery/ADC_battery.ino

tomershechtman commented 3 years ago

Hi, page not found, I also trying to understand how to connect battery to ADC (pullups or something) and also how to use GPIO7, currently its my interrupt pin, can I use other pins for interrupts? Thanks