I2C was working great for over a month using an Adafruit Motor Hat, and an LSM303 accelerator/compass also on the interface passing through the Motor Hat and consuming 3v. As a side note, power-wise, two HC-SR04 sensors attached to GPIOs and 5v.
sudo i2cdetect -y 1 will show the devices, I'll run my robot control software and although the devices init, as soon as I send a command to the wheels my app will crash because the devices have disappeared and
sudo i2cdetect -y 1 will not show the devices. That's happened a couple of times. The devices would eventually come back with no known action causing them to return despite my best efforts at process of elimination. Now I can't get them to come back.
There have been no updates to the OS.
As I make changes to diagnose, suggestions on where I should focus?
- Failed Motor Hat
- Failed Pi
Steps taken without consistently providing a fix:
- A reboot worked once to restore the connections but never again.
- Enabled/disabled the I2C interface.
- Resoldered SCL/SDA.
- Tried disconnecting the LSM303
- Turned the battery supplying the motors off/on
- Disconnected the HC-SR04 sensors
I have another Pi but haven't tried swapping it in yet - I guess that is my next step even though that seems unlikely to fix it.
Thanks in advance.