I am biulding a battery analyzer, charging, discharging unit.
This version is working more or less full time for 2 months.
Two weeks ago the INA219 current sensor started to stop, does'nt responsing the bus cycle, and this case the chipKIT I2C library remains in an infinite cycle (twi.c).
After a reset it started to work again.
The failure has been repeated in an irregular ferquency, sometimes once in two days, sometimes in ten minutes.
I have changed the iNA, but after a while the problem continued.
Yesterday a plenty of times repeated.
Today I decided installing the input filter to INA recommended by the data sheet.
Disconnected the power supply, started to solder and there was some sparks on the iron, because I haven't disconnected the battery.
I did and finished the filter.
When I switched on the system, the chipKIT uC32 board has been warm up, the MX chip was 80-90 °C drawing much current, the 3,3v goes to 2,7. The card was destroyed.
Cheking the input supply there was no visible failure what could be the cause. I have changed to a chipKIT Uno32 board that was ok, but the INA219 was destroyed, and the program stucks in an infite loop elsewhere in MPIDE.
So the system collapsed.
Right now I dont have more INA sensor to continue.
Then I was thinking about the sparks through the soldering iron.
The iron is grounded, I have had the sparks from the battery + terminal, soldering to the high side shunt what means my system is grounded.
I thought my system is not grunded, at least I intended not to be.
Actually I supposed that notebooks are not grounded, but they are.
There are 3 notebooks connected by USB to my system: a datalogger, one for serial display, and the debugger. All grounded to mains and connected into loops though my system.
Creating nice groud loops.
Do you think this grounding mistake is enough explanation to the INA219 stucks and the damages?
After 3 months of operation?
What do you recommend to solve this?
I could detach the mains ground of notebooks at the inlet, and ground them with a separate wire to my system in one point.
This wire would be along the USB cable to minimize the loop effect.
Or using USB isolators the only acceptable solution?
One notebook connecting directly two throgh isolator.
Thanks, Csaba