This program is simple illustration of GY-521 accelerometer and gyroscope module. It takes input form wire library and shows in serial moniter.
To use this pice of code, download Arduino software and run this code. My code is tested on Arduino Uno and Mega.
install MPU6050_tockn
by going sketch > Include Library > Manage Library
Upload the code contained in this sketch on to your board
Accelerometer => Arduino sketch folder ├── Accelerometer.ino => main Arduino file ├── layout.png => Circuit Diagram └── README.adoc => this file
This project is released under a License given in root directory. If you want to use any piece of code please cite me as given below
Note
|
P. K. Prasad, "Arduino Peripherals," 03-Feb-2019. [Online]. Available: https://github.com/Krprashant94/Arduino-Peripherals. [Accessed: 04-Feb-2019] |
To contribute this project please contact krprashant94 https://id.arduino.cc/krprashant94 or krprashant94 https://github.com/Krprashant94
Bill of the materials need for this project.
SL |
Part name |
Model |
Quantity |
1 |
acceleromete |
GY-521 |
1 |
2 |
Arduino UNO |
R3 |
1 |
3 |
Programming Cable |
USB 2.0 |
1 |