I am trying to get my new piezo vibration sensor up and running. However, when I run the example code, it crashes because of something going wrong with the I2C communication I believe.
I am running a RaspberryPi 3B with GrovePi+ board, and piezo sensor.
The error I am getting is:
File"grove_piezo_vibration_sensor.py", line 49, in
print(grovepi.analogRead(piezo)) File"/home/pi/...", line 227 in analog
return number * 256 + number
TypeError: ‘int’ object has no atribute ‘getitem’
I tried changing the line to read only return number, and got as output -1. But as soos as the script tries to read number as a vector, it crashes.
Does anybody else experience this problem? Or know how to fix the problem?