proveskit / battery_board

The battery and power management board for the PROVES Kit.
CERN Open Hardware Licence Version 2 - Weakly Reciprocal
1 stars 2 forks source link

I2C Devices Don't Work on the First Initialization #7

Open Mikefly123 opened 3 months ago

Mikefly123 commented 3 months ago

Software Used

Issue Description

For some reason after initialization of the PySquared_EPS the I2C devices do not respond in a timely manner. After keyboard interrupting and calling them again they report immediately though.

Images of the Issue

On INA Call

Screenshot 2024-07-07 at 2 16 06 PM

On Thermocouple Call

No recovery:

Screenshot 2024-07-07 at 2 20 33 PM

On PTC Call

Screenshot 2024-07-07 at 2 21 07 PM
Mikefly123 commented 3 months ago

This seems to be fixed if the TCA is properly initialized. So continues the saga of problematic TCA stuff:

Screenshot 2024-07-07 at 2 37 56 PM

Possible Solution

Move the TCA to I2C1 instead of I2C0?