Posts

Showing posts from August, 2016

Measuring bank angles with the MPU6050 and Raspberry Pi - The first tests

What happened so far Throughout the last blog entries I briefly explained the motivation and idea behind measuring the bank angles on a motorcycle with the help of a raspberry pi and the MPU6050. We then focused on the hardware- and software requirements as well as the basic coding structure . First data and validation: With the hard- and software ready it is time to test. At first I wanted to make sure that the sensor produces accurate results. For this purpose we took the motorcycle, lined it up without starting the engine, and tilted it left and right. The next diagram shows the bank angle vs. time. One can see the angle that has been calculated from the accelerometer input.   The chart shows a constan t angle output for the motorcycle in straight upright position of 5 deg rees wit h the engine switched off (blue line). The 5 degrees offset for the straight position come from the mounting of the MPU6050 on the circu it board. This is perfectly fine and and off...