Teensy 4.1 and Adafruit LSM9DS1

Status
Not open for further replies.

MarekM

Member
I've been trying to set up Adafruit LSM9DS1 sensor and Teensy 4.1. Sensor is connected to I2C port A5/A4. Port has been tested with i2c LCD and it works fine, but I have an issue with LSM9DS1 initialization and to be more specific I cannot initialize it at all.
I use Adafruit_LSM9DS1 v. 2.1.0 and Adafruit_Sensor (Adafruit Unified Sensor) v. 1.14 libraries.
The test code was based on Adafruit LSM9DS1 Library example.
The sensor has been taken from working Arduino Mega where it worked fine.

Can you please advice why this does not work? Thanks!
 
OK, I have bypassed level shifter (3V3 <-> 5V) and connected LSM9DS1 directly to Teensy i2c port and it works fine now.
 
That makes perfect sense, the T4.x is 3.3V only. I think you might have been lucky if the level shifter was previously putting 5V on a T4 pin, that tends to burn the chip.
 
Status
Not open for further replies.
Back
Top