Hello everyone. I would like to connect 8 MPU6050 accelerometers to the Portenta H7 by configuring it in micropython. The MPU6050 can be set to two different addresses on the I2C (x068 and x069). I have read that theoretically, by connecting the AD0s of each sensor to a different PWM pin, it is possible to use all 8 in the following way: iterating the address change of one sensor (reading the sensor itself), the next one, and so on. Is there a library that allows me to do this? If not, which library do you recommend to use this sensor on the Portenta H7 with Micropython? I’m using OpenMV IDE.
Hi, here’s a MicroPython library for the MPU: Lezgend/MPU6050-MicroPython: A very simple library and useful for GY-521 IMU 3-axis Accelerometer/Gyro Module (MPU6050) on ESP32 or ESP8266 using MicroPython
As for doing what you want. There’s no reason why you can’t. You can control I/O pins and turn them off and on in MicroPython easily.
1 Like
Thank you very much for your fast reply! With the high density pins on Portenta H7 I have 3 different bus I2C (I2C0, I2C1, I2C2). Do you think that the reading of the MPU6050s could be faster using all the buses dividing the sensors 3-3-2 than using all the 8 sensors on the same bus?
It wouldn’t matter since the same processor is reading each.
1 Like
Ok, it does make sense! Thank you very much again!