Closed PizzaAllTheWay closed 1 year ago
It seems that the custom driver we made is not robust Sometimes the i2c signal gets wrong timing and we measure voltage of 4V instead of 16V! Need to investigate this issue Code for PSM driver: https://github.com/vortexntnu/vortex-auv/blob/feature/battery_monitoring/mission/internal_status/src/mcp3422.py
Solved. We used the official MCP342x library for python, works flawlessly :) Tested the code. We also changed how we convert current measurements, so now it is accurate :D
It seems that the custom driver we made is not robust Sometimes the i2c signal gets wrong timing and we measure voltage of 4V instead of 16V! Need to investigate this issue Code for PSM driver: https://github.com/vortexntnu/vortex-auv/blob/feature/battery_monitoring/mission/internal_status/src/mcp3422.py