We noticed, that in the case of concurrent access using multiple python scripts with python3 on a rapsberry3, the grovepi arduino seems to crash sometimes. We have a grovepi ultrasonic sensor and a ir movement sensor connected.
Error: Traceback (most recent call last): File "test-grovepi.py", line 48, in <module> sensor_value = grovepi.analogRead(light_sensor) File "/home/pi/.local/lib/python3.5/site-packages/grovepi.py", line 227, in analogRead return number * 256 + number TypeError: 'int' object is not subscriptable
After this, i2cdetect 1 shows nothing on the i2c bus
flashing the firmware again (1.2.7) helped most of the time, but only for a shored period of time. Than again: Error.
To reproduce, I started the python script 12 times.
I updated the firmware to 1.3.0beta. The error still occurred sometimes, but it is now very hard to reproduce. So not fixed, but much better.
Anything else I could do to help fixing this? Is there a way to debug the grovepi?