isch4196 / balbot

GNU General Public License v3.0
0 stars 0 forks source link

Integrate MPU-6050 #1

Closed isch4196 closed 1 year ago

isch4196 commented 1 year ago

Task: Integrate the MPU-6050 to use its accelerometer and gyrometer for balancing.

Blockers:

Status: Complete. See comment below.

isch4196 commented 1 year ago

Successfully able to integrate pigpio with yocto build with commit 518971bc1e4c101eab0ea2f67ec602d652676abb. Originally, I was going to use IIO method, which is a more native way to integrate the mpu-6050 sensor. However, I couldn't get the sysfs trigger to work, which was essentially a trigger to get the accelerometer and gyroscope values upon a request for a sample. I ended up asking on different forums, but wasn't able to solve the problem, so I moved on to use pigpio. I had a bit of trouble with writing a recipe for it, but was eventually able to figure it out.