Closed daghemo closed 6 years ago
It seems that running "i2cdetect -a -y 1" will cause the Arduino to restart. This seems also to be true for any code enumerating devices on the I2C bus.
This seems also to affect your own examples.
if you leave out the "-a" then the reset doesn't occur. According to the Linux manual:
"[-a] Force scanning of non-regular addresses. Not recommended."
Removing the "-a" seems to solve the problem! Looking at the sources of i2cdetect I can see that not using "-a" means checking only addresses from 0x03 to 0x77 so I've modified my code to to that.
The Arduino on my Sleepy Pi 2 is restarting over and over after some time with apparently no reason. I've also tried my other Sleepy Pi 2 and even a different Raspberry Pi.
The following code can be used to reproduce the error:
The above code has been slightly modified from #9. On the serial I see the following output (just a sample):
Have you got any ideas?