Having trouble reading MPU6050 sensor via I²C on Pine64
#1
Hello everyone,

I’m trying to read data from the MPU6050 6-axis sensor via I²C on my Pine64 board, but I’m running into some issues.

System: Armbian

I²C is already enabled, and I can see the device address 0x68 with i2cdetect -y 1

My Python script runs, but the data I get is unstable and often jumps around

Has anyone successfully driven the MPU6050 on Pine64? Do I need any additional configuration?

Thanks!
  Reply
#2
I had the same problem when working with the MPU6050 on a Pine64 board, and a few things made the difference:

Use 3.3 V instead of 5 V to avoid level shifting issues.

On initialization, write to register 0x6B (as described in the MPU6050 datasheet) to wake the device from sleep mode.

To smooth out the jitter, apply a simple moving average or even a Kalman filter depending on your needs.

Once I followed the datasheet’s register setup and wiring, the readings became much more stable.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  reading the inserted SSD gilwood 1 2,903 01-01-2022, 12:11 AM
Last Post: ryo
  Wi-Fi/Bluetooth for PINE64, Model: Sopine A64 lamson 0 2,609 08-24-2021, 08:17 AM
Last Post: lamson
  AC Adapter Which One? Pine64 A64 DB V1.1 2GB REV B (Year 2016) databaseprogrammer 2 4,988 06-17-2021, 05:35 AM
Last Post: kqlnut
  Just discovered Pine64 ! - first Q philip_rhoades 4 7,891 04-29-2020, 10:13 AM
Last Post: tophneal
  A newest user in Pine64 Aliko 1 5,182 04-19-2020, 10:33 PM
Last Post: tllim
  PINE64 Installer - Simple Way to Image Your MicroSD pineadmin 101 183,728 01-15-2020, 12:46 PM
Last Post: tophneal
  Emails from pine64 received as spam by gmail Matan 2 11,579 08-21-2019, 08:30 AM
Last Post: Leiaz
  How to handle a Pine64 correctly gbjensen 6 19,581 03-28-2019, 11:43 PM
Last Post: InsideJob
Information Creating a NAS server in Pine64 javi_cala 4 10,315 01-21-2019, 02:03 AM
Last Post: bartes
  The 6 most common reasons why Pine64 won't boot Andrew2 109 258,070 10-11-2018, 11:35 PM
Last Post: Technolab88

Forum Jump:


Users browsing this thread: 1 Guest(s)