alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
479 stars 84 forks source link

Voltage battery detection GPIO #419

Closed bobvc133 closed 1 year ago

bobvc133 commented 1 year ago

I bought a development board with a battery interface, but it does not have a voltage and battery detection. I used two 100k resistors as a voltage divider to connect to GPIO36. At this time, if you use GPIO36 as PIN_A1 and add a pull-up resistor, USB or other power supply methods The voltage display is inaccurate, and the charging status will always be displayed when the battery is used for power supply. The battery voltage and power can be accurately displayed by removing the pull-up resistor. Does the voltage and power detection need to monopolize GPIO32-39? 175033460-79117511-0239-4d51-8a96-23c3b08b2175