Hi,
I’d like to connect a Qwiic sensor to a Raspberry Pi. Would it be easier to connect it to an Arduino and send data to the Raspberry Pi serially or directly to the Raspberry Pi? Are there Python libraries for sensors like there is for Arduino? Any guidance would be greatly appreciated.
Qwiic sensors use I2C. You can connect them directly to the Raspberry Pi’s GPIO pins.
1 Like
Hi,
Thank you for your response. I am aware of how to connect Qwiic sensors, I’m just not sure as to how to read the sensor data programatically. With Arduino boards, there are libraries for each sensor. How would I read Qwiic sensor data on a Raspberry Pi, (preferably with Python)?
You need the Python lib for the sensor. Qwiic is just the hardware interface (actually it is just a nifty common connector definition). For an example of Sparkfun libs you can look at sparkfun/Qwiic_Py: Python package for the qwiic system. (github.com)