Traceback (most recent call last): File “/home/pi/Desktop/GrovePi/Software/Python/grove_i2c_multichannel_gas_sensor/multichannel_gas_sensor.py”, line 85, in m= MutichannelGasSensor() File “/home/pi/Desktop/GrovePi/Software/Python/grove_i2c_multichannel_gas_sensor/multichannel_gas_sensor.py”, line 39, in init if self.readR0() >= 0: File “/home/pi/Desktop/GrovePi/Software/Python/grove_i2c_multichannel_gas_sensor/multichannel_gas_sensor.py”, line 45, in readR0 rtnData = self.readData(0x11) File “/home/pi/Desktop/GrovePi/Software/Python/grove_i2c_multichannel_gas_sensor/multichannel_gas_sensor.py”, line 70, in readData buffer=bus.read_i2c_block_data(self.address, cmd, 4)IOError: [Errno 110] Connection timed out
When I was running the old firmware of GrovePi+, this error was not appearing, but it was not working, nothing appears on screen.
Checking the code line by line, I realize that in line 71 is print(data), after the buffer=bus.read_i2c_block_data(self.address, cmd, 4), but “data” variable is not defined in the code. Something is strange in this code.
Can someone help me with this grove pi sensor?Can someone give me any hint?
Hello!
I can not understand what I need to do to make the Multichannel Gas Sensor work in Rpi with GrovePi+. Can someone explain it to me steep by steep?
This example doesn’t work for now because the sensor does not return good values. We were unable to get it working properly the last time we tried working on it and it might take some time before it works with the GrovePi.
-Shoban