Anbieter: vendor-unknown
How to use GY-521 3-Axis Acceleration gyroscope Module using Arduino Uno - KT985
Beschreibung
KIT INCLUDED:
- Arduino Uno with USB Cable - 1
- GY-521 3 axis acceleration Gyroscope 6DOF Module- 1
- Breadboard 400 points – 1
- Jumper wires (male to male) – 40 pcs
- 9v Battery - 1
- Snapper with DC jack - 1
HARDWARE REQUIRED
- Arduino Uno with USB Cable - 1
- GY-521 3 axis acceleration Gyroscope 6DOF Module- 1
- Breadboard 400 points – 1
- Jumper wires (male to male) – 40 pcs
- 9v Battery - 1
- Snapper with DC jack - 1
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download :https://camblick.com/en/Main/Software
SPECIFICATIONSGY-521 3-AXIS ACCELERATION GYROSCOPE MODULE
- Accelerometer ranges: ±2, ±4, ±8, ±16g
- Gyroscope ranges: ± 250, 500, 1000, 2000 °/s
- Voltage range: 3.3V - 5V (the module include a low drop-out voltage regulator)
This simple module contains everything required to interface to the Arduino and other controllers via I2C (use the Wire Arduino library) and give motion sensing information for 3 axes - X, Y and Z.
PIN DESCRIPTIONGY-521 3-AXIS ACCELERATION GYROSCOPE MODULE
With this module, you can measure:
- acceleration (= speed of movements) in three directions x, y, z;
- a rotation or an angles (in three directions);
- orientation
- VCC (The breakout board has a voltage regulator. Therefore, you can connect the board to 3.3V and 5V sources.)
- GND
- SCL (Serial Clock Line of the I2C protocol.)
- SDA (Serial Data Line of the I2C protocol.)
- XDA (Auxiliary data => I2C master serial data for connecting the module to external sensors.)
- XCL (Auxiliary clock => I2C master serial clock for connecting the module to external sensors.)
- AD0 (If this pin is LOW, the I2C address of the board will be 0x68. Otherwise, if the pin is HIGH, the address will be 0x69.)
- INT (Interrupt digital output)
The accelerometer measures the acceleration along one direction, while the gyroscope measures the angular acceleration on one axis.
Connections:
- VCC -> 3.3 V / 5 V (better)
- GND -> GND
- SCL -> A5
- SDA -> A4
- XDA -> NC
- XCL -> NC
- ADO -> NC
- INT -> NC
- I2Cdev wire
Click to download https://camblick.com/open?id=1V2hVX9eyigevA7h-loAFQ7-FQQ1EaFFP
Or you can install it from IDE
Sketch -> Include Library -> Manage Library -> Search for Wire
- MPU6050
https://camblick.com/open?id=1s7HN8meiyiXsmQlC9P-Sj97hO21Nk8jh
Or you can install it from IDE
Sketch -> Include Library -> Manage Library -> Search for MPU6050
CODEClick to see the code:
https://camblick.com/open?id=1TejkQKfUZGZMpTocmAMuy5Jk5KXFSOf2aYPkEIYZkUY
WORKINGWelcome to the Arduino Based Project which includes GY-521 MPU6050. The analogic pins are not set on INPUT because it's their default setting. The values read by the analogic pins will be sent to the serial port. Now, to view the output open the Serial Monitor, move the sensor and try to see how the values change. Accelerometers can be used for fun projects, for example to realize a game controller and many more applications.



