Hi,
I have problems with the Grove I2C multichannel gas sensor and I hope you can help me.
#!/usr/bin/env python
#NOTE:
# This sensor is on port 0x04, so not compatible with grovepi unless you load an alternate firmware
# This is work in progress, would need logic analyzer and arduino to get working
# Error:
# Traceback (most recent call last):
# File "multichannel_gas_sensor.py", line 67, in <module>
# m= MutichannelGasSensor()
# File "multichannel_gas_sensor.py", line 21, in __init__
# if self.readR0() >= 0:
# File "multichannel_gas_sensor.py", line 27, in readR0
# rtnData = self.readData(0x11)
# File "multichannel_gas_sensor.py", line 52, in readData
# buffer=bus.read_i2c_block_data(self.address, cmd, 4)
#IOError: [Errno 5] Input/output error
#
# LINKS
# http://www.seeedstudio.com/wiki/Grove_-_Multichannel_Gas_Sensor
# https://github.com/Seeed-Studio/Mutichannel_Gas_Sensor
import time,sys
This file has been truncated. show original
This sensor is on port 0x04, so not compatible with grovepi unless you load an alternate firmware
I don’t know where the alternate firmware is. Can you guide me? If it works, I will update the tutorial to our wiki.
Best Regards,
Seeed Technical Support Zeng
Hi @xudong.zeng ,
You might be interested in changing the GrovePi’s I2C address by following the following tutorial:
Even though that article is actually meant for stacking multiple GrovePis, I think you could get away with it for this particular issue.
Just so you know, here’s the folder that’s being referenced in that article:
Thank you!