I successfully installed the GrovePi-system, did some system checks (i2cdetect and blinking LED), so far everything seems to be in place.
I’m using a RaspberryPi Typ2 with the newest Raspbian Stretch available.
Now I want to start the gas sensor with sudo python3 grove_gas_sensor.py in the directory /home/pi/Desktop/GrovePi/Software/Python, nothing happens (the same for python 2.7 with just sudo python).
One strange thing: I checked the content of the sensor-py-File with sudo nano blkabla and found NO content, but checking it via the file manager of the Pi, there was a content.
Now, my question is, what does this have to do with the MQ-2 and CO2 sensors? The MQ-2 and CO2 sensors are sensors that aren’t supposed to be a part of the DI-Sensors. If I remember correctly, these 2 sensors are analog, so they should be working with the GrovePi out of the box.
Yes, this means you now have an up-to-date library on your Raspberry Pi. You’d still need to update the GrovePi’s firmware too (which is the firmware that sits on the actual GrovePi’s chip). It’s separate from whatever is on the Raspberry Pi.
Specifically, the firmware I talked about one paragraph above. In order to flash the latest firmware to the GrovePi, cd to your most up-to-date library of your GrovePi (which will be at /home/pi/Dexter/GrovePi) and then cd to Firmware and run:
Run that, and once that’s done, in a Python interpreter, go check the reported version of the GrovePi by running grovepi.version(). It should return "1.3.0".
Aa I wasn’t sure if you did the firmware update. And yes, if the firmware is not up to date, then there’s a high chance that you won’t be able to interface with the GrovePi, provided you’re using the latest library.