Reefwing MPU 6050 GY-521 IMU Arduino Library

David Such
7 min readAug 5, 2023

To provide compatability with the Reefwing AHRS Library, we have been forced to release libraries for the following IMUs:

The control board that is used on our Stewart Platform (Figure 1 — this flight simulator will be the subject of a separate article), comes with an MPU6050, so once again we need to create our own library. Or so we thought…

The primary additions for the Reefwing IMU libraries is to use the Reefwing imuTypes library header to make it compatible with the Reefwing AHRS Library and allow easy graphing of IMU values via the Reefwing xIMU3 data visualisation library. The second addition is achieved by providing a time stamp for each sensor reading. While we are going to the trouble of creating our own versions, we also add in some additional functionality, not found in the standard libraries.

Figure 1. 6 DOF Stewart Platform [Image Credit]

The Reefwing MPU6050 Library is available via the Arduino IDE Library Manager or you can download it directly from the Reefwing Software GitHub Repository.

--

--

David Such

Reefwing Software · Embedded Systems Engineer · iOS & AI Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control