I’ve used the V5 Battery Medic on our V5 batteries. Now I’d like to do some diagnostics on our Gen 1 and Gen 2 IQ batteries. Anyone know a way to do this? Maybe something similar to the V5 Battery Medic? Or another method entirely?
I do not think that such a thing exists. On the Vex IQ brain, you can see the remaining battery percentage, but there is nothing like the battery medic for IQ that I know of.
There isn’t a battry medic, but there are a few functions Vex has (at least for Python) that might work for a battry medic.
Library code
class Battery:
'''### Battery class - access the brain battery
#### Arguments:
None
#### Returns:
Instance of Battery class
#### Examples:
'''
def __init__(self):
pass
def capacity(self):
'''### read remaining capacity of the battery
#### Arguments:
None
#### Returns:
capacity as percentage
#### Examples:
'''
return 100
def temperature(self, units: TemperaturePercentUnits = PercentUnits.PERCENT):
'''### read the temperature of the battery (not available on IQ2)
#### Arguments:
units (optional) : PERCENT, CELSIUS or FAHRENHEIT, default is CELSIUS
#### Returns:
temperature in supplied units
#### Examples:
'''
return 20
def voltage(self, units = VoltageUnits.MV):
'''### read the voltage of the battery
#### Arguments:
units (optional) : VOLTS or MV, default is MV
#### Returns:
voltage in supplied units
#### Examples:
'''
return 12800
def current(self, units = CurrentUnits.AMP):
'''### read the current of the battery
#### Arguments:
units (optional) : AMP, default is mA but jot available as an enum.
#### Returns:
current in supplied units
#### Examples:
'''
return 1
FYI, there is no temperature monitoring on IQ batteries, that’s just a compatibility function. We have voltage and current only (capacity is just based on voltage).
Hello! Team 28102S here, I have a pending post (I’ll put it on here if it gets approved.) about how I lost points because of an unreliable battery. An IQ battery medic would’ve been useful then!.
what is a battery medic?
something you could have searched on
A diagnostic program for V5 batteries, we have no such tool for IQ batteries and no capability to communicate with them to retrieve this kind of information.
https://kb.vex.com/hc/en-us/articles/360035590212-Using-the-V5-Battery-Medic