pytrack get charging cable connected



  • Hi,
    is there a way to get information on whether a charging or data or no cable is connected? I know I can get a readout of the battery voltage. Is there a specific charging voltage to look for or some kind of function to call to determine the connection status?



  • @Peter-Ehses The charging voltage is always higher than the voltage of a discharging battery. Just measure it in both cases to determine an appropriate threshold (probably around 4.2V IIRC).


Log in to reply
 

Pycom on Twitter