Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-rtijn/mpu6050-arduino
A library to read values from an MPU-6050 accelerometer and gyroscope using a Arduino compatible device.
https://github.com/m-rtijn/mpu6050-arduino
arduino arduino-library mpu6050
Last synced: 25 days ago
JSON representation
A library to read values from an MPU-6050 accelerometer and gyroscope using a Arduino compatible device.
- Host: GitHub
- URL: https://github.com/m-rtijn/mpu6050-arduino
- Owner: m-rtijn
- License: mit
- Created: 2016-12-08T14:46:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-03T09:13:02.000Z (over 7 years ago)
- Last Synced: 2024-11-13T23:42:00.448Z (3 months ago)
- Topics: arduino, arduino-library, mpu6050
- Language: C++
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mpu6050-arduino
A library for using the MPU-6050 digital accelerometer and gyroscope using Arduino-compatible devices.
# Usage
Before you can use this library in your Arduino project, you need to download and place this
repository in the library folder of your Arduino IDE. The location of the library folder depends on your system,
examples are `~/.arduino/libraries` and `~/.arduino17/libraries`.To download the repository, use:
```
git clone https://github.com/Tijndagamer/mpu6050-arduino.git
```Then move it to the correct folder. Now start your Arduino IDE and check if you can select "MPU6050" under
Sketch > Include Library > Contributed libraries. If you can't find the library, something went wrong during
the installation of the library. Check if you put the repository in the right folder to solve this issue.To use the library in your project, include the library (Using the GUI or by adding `#include ` in
the source code) and declare an MPU6050 object outside all other code, like this:```c
// Include statementsMPU6050 mpu6050;
void setup() {
...
```The MPU6050 class allows for easy access to the sensor using the following seven methods:
```c
readTemp()
readAccelX()
readAccelY()
readAccelZ()
readGyroX()
readGyroY()
readGyroZ()
```# Todo
Implement the more advanced features of the MPU-6050 sensor, such as changing the ranges of the accelerometer
and gyroscope.# License
This repository is published under the MIT license. For more information, please refer to the LICENSE file.