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!
Adafruit LSM9DS1 and Teensy4.1
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- MarekM
- Posts: 3
- Joined: Fri Oct 29, 2021 1:57 am
Re: Adafruit LSM9DS1 and Teensy4.1
I have reattached the sensor to Arduino Mega again to see if it works... and it works OK.MarekM wrote: The sensor has been taken from working Arduino Mega where it worked fine.
The only difference between two boards is that Teensy uses a level shifter to connect to LSM9DS1 (3V3 <-> 5V), but the same level shifter - exactly the same pins - were used to test LCD (is it possible that pull-up resistors are required for LSM9DS1?).
- MarekM
- Posts: 3
- Joined: Fri Oct 29, 2021 1:57 am
Re: Adafruit LSM9DS1 and Teensy4.1
OK, I have bypassed level shifter (3V3 <-> 5V) and connected LSM9DS1 directly to Teensy i2c port and it works fine now.
Please be positive and constructive with your questions and comments.