r/ArduinoHelp • u/Repulsive-Peak4442 • Sep 18 '26
Why is Teensy 4.1 not finding MPU-6050?
So I have a program on my arduino uno r4 wifi which gets readings from an mpu6050, a bmp388, and then does some calculations to output them in the serial monitor. It works great. Im using the Adafruit Mpu and the Adafruit BM3XX (if it is called like that) libraries. But when I switch the arduino for a Teensy 4.1 the mpu is not found. Though, there is electricity flowing in it since the read led lights up. Why is that and how to fix it? Also I used the scl sda pins 18 19 for the teensy 4.1
1
Upvotes
4
u/MagneticFieldMouse Sep 18 '26
Show
1
u/Repulsive-Peak4442 Sep 20 '26
I found the solution, I used different I²C Busses for each sensor and I got it working. And to do so, I also defined it in the code.
1
u/Unable-School6717 Sep 19 '26
YOU didnt mention pull-up resistors for sda-scl. Are these hardware, software, or both? Do both mpu boards use the same strategy do implement this ? Could they be doubled in hardware AND software, or missing from one configuration?
1
u/gm310509 Sep 21 '26
It is possible that the module you are using is converting the input voltages from 5v to 3v3 or 2v7. Thus it can work with a 5v GPIO system like an UNO R4.
But, the Teensy is a 3v3 system. Passed into that same circuitry (assuming it is present in your environment - which is why the others have insisted on you providing proper details) then it may be that there simply isn't enough ooomph in the Teensy's IO pins to interact with it.
But it might not be that - hence you need to provide some details.