inspired_energy_mux_driver
inspired_energy_mux_driver.py is a circuit python module that was converted into a ROS node, so that individual inspired energy battery's in a battery pack can communicate their charging information. This driver is configured to work with a MCP2221 USB to I2C Chip and a TCA9548 adafruit MUX.
The ROS topic name is currently listed as 'battery_bus_status'
Example output
[INFO] [1691183425.346616] [/BatteryStatus]: About to publish latest update:
header:
seq: 0
stamp:
secs: 1691183424
nsecs: 49459457
frame_id: ''
connected_batteries: 3
bus:
- {'charge_remaining': 74, 'capacity_remaining': 4747, 'time_to_empty': 65535, 'battery_discharging': True, 'battery_fully_charged': False, 'voltage': 15.72, 'current': 0.0, 'temp': 25.250000000000057, 'serial_no': 42977}
- {'charge_remaining': 75, 'capacity_remaining': 4905, 'time_to_empty': 65535, 'battery_discharging': True, 'battery_fully_charged': False, 'voltage': 15.72, 'current': 0.0, 'temp': 25.150000000000034, 'serial_no': 42911}
- {'charge_remaining': 74, 'capacity_remaining': 4838, 'time_to_empty': 65535, 'battery_discharging': True, 'battery_fully_charged': False, 'voltage': 15.703, 'current': 0.0, 'temp': 24.950000000000045, 'serial_no': 43019}
--