Hi I hope you can help. Please excuse my ignorance on where to find the necessary wiring information I require for my first extension project.
I have a raspberry pi zero with an enviro phat attached and I’d like to extend the sensors and add a SGP30 gas sensor.
I’ve bought a proto bonnet mini extension and can physically connect the SGP30 to the bonnet with the enviro phat mounted on top using the appropriate GPIO 11mm header, however, I have no idea how to wire up the board. How do I figure out which pins are available (i.e. not used by the enviro phat) for the SGP30 so I can wire up the additional sensor?
Many thanks
I do believe this is what your looking for. =)
Many thanks for helping me out :-)
Your welcome. It is linked too from the product page, but its just in bold type and easy to miss.
I have the SPG30 wired up and working nicely with the test code from using IC2 pins 2 & 3 https://learn.adafruit.com/adafruit-sgp30-gas-tvoc-eco2-mox-sensor/circuitpython-wiring-test
I’d like to now switch to using IC2 pins 8 & 9 however I’ve been unable to figure out how to adapt the python code to switch to the different pins. I’ve been trying to find a tutorial on how to do this, but unfortunately I don’t really know enough to get started.
i2c? GPIO 8 and 9 are SPI pins? Why do you want to switch pins?
i2c is a shared bus by the way. You can connect multiple devices to i2c and they will all work fine, as long as no two devices have the same i2c address. The address used by Pimoroni’s breakouts etc are listed on their product pages.
Many thanks for pointing me in the right direction. I now have my project up and running successfully.
That’s good to hear. I’ve been tinkering with Raspberry Pi’s for years now and I’m still learning.
It can at times be frustrating but its also a whole lot of fun. =)