LSM6DSOX IMU using stemma / QT cable to usb on rpi4b

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Summertime2022_
 
Posts: 4
Joined: Mon Jun 27, 2022 3:32 pm

LSM6DSOX IMU using stemma / QT cable to usb on rpi4b

Post by Summertime2022_ »

Hi, I thought I'd post a new topic for this for the sake of clarity. For the LSM6DSOX the online tutorial is for i2c and spi where the imu is hardwired to the GPIO pins of either an arduino or other MCU or the raspberry pi. However if we want to connect via the stemma / qt cable for a more robust connection, is there any example scripts to receive this data over usb / serial communication (as in this video https://www.adafruit.com/product/4438).
Many thanks for your time.

User avatar
adafruit_support_carter
 
Posts: 29466
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM6DSOX IMU using stemma / QT cable to usb on rpi4b

Post by adafruit_support_carter »

In terms of wiring to the breakout - the STEMMA QT connector provides easy access to the I2C pins. The same pins are also available on the header pins. So you can connect to either. More info on STEMMA QT here:
https://learn.adafruit.com/introducing- ... -stemma-qt

In terms of wiring to the host controller, it depends. Not all boards will have a STEMMA QT connector, like the Feather board shown in the video:
https://www.adafruit.com/product/4382

If the board does have a STEMMA QT connector, then the connection is easy - just use a STEMMA QT cable and go connector-to-connector with a cable like this:
https://www.adafruit.com/product/4399

If the board does *not* have a STEMMA QT connector, then you can still use the connector on the breakout. To connect to the board, could then use a cable like this:
https://www.adafruit.com/product/4209
or this:
https://www.adafruit.com/product/4397

There is no equivalent connector for SPI usage.

Specific to Raspberry Pi, there are a few options for providing a STEMMA QT (same a Qwiic) connector:
https://www.adafruit.com/product/4688
https://www.adafruit.com/product/4463
https://www.adafruit.com/product/5142
The PID 4397 STEMMA QT cable would also work - the female ends of the cable would mate with the male header pins of the Pi's GPIO

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”