Description
What it is
The digital gyroscope sensor module axis GY-50 L3G4200D is an electronic component that allows measuring the angular velocity of rotation around an axis. It is compatible with Arduino and can be used in a variety of robotics, orientation control, and stabilization projects.
Features
- Digital Gyroscope Sensor L3G4200D
- Compatible with Arduino
- Measures angular velocity
- SKU: ARD0011069
- Price: 8.48 € (price subject to variations)
What it is for
The GY-50 L3G4200D module is ideal for projects that require measuring angular velocity, such as:
- Image stabilization
- Navigation
- Orientation controls
- Robotics projects
- GY-50 L3G4200D
- Arduino
- 5V power lead
- 10kΩ resistor
- 1. Connect the GY-50 to the Arduino using the following pins: VCC to 5V, GND to GND, SCL to A5, SDA to A4.
- 2. Connect the 10kΩ resistor between VCC and SDA.
- 3. Download the Wire driver for Arduino.
- 4. Load the following code onto your Arduino.
- 5. Check the gyroscope reading.
- 6. Adapt the code for your project.
- 7. Test the sensor with a simple example sketch.
- 8. Check the datasheet for further details.
Tutorial: How to use the GY-50 L3G4200D
The GY-50 L3G4200D is a digital gyroscope sensor ideal for image stabilization, navigation, and orientation controls. Useful for beginners and intermediates.
What you need
Steps
Example code
```cpp
#include <Wire.h>
void setup() {
Wire.begin();
}
void loop() {
Wire.beginTransmission(0x69);
Wire.write(0x2D);
Wire.endTransmission();
Wire.requestFrom(0x69, 6);
int16_t x = Wire.read()<<8 | Wire.read();
int16_t y = Wire.read()<<8 | Wire.read();
int16_t z = Wire.read()<<8 | Wire.read();
Serial.print("X: "); Serial.println(x);
Serial.print("Y: "); Serial.println(y);
Serial.print("Z: "); Serial.println(z);
delay(100);
}
```
Mini project
Create an image stabilization project using a smartphone and an Arduino with the GY-50. In 30 minutes, learn to control the image rotation based on the gyroscope reading.
Common mistakes
- Do not use a power supply other than 5V.
- Forget to connect the 10kΩ resistor.
- Use incompatible pins.
- Do not check the gyroscope reading.
Recommended accessories
- Wi-Fi module
- Digital camera
- LCD screen
- Alkaline AA battery
Frequently asked questions
Is the GY-50 reliable?
The L3G4200D is known for its reliability, but check the datasheet for further details.
Can I use a different power supply than 5V?
Check the datasheet for the recommended power supply.
How long does the battery last?
The GY-50 does not use batteries, it is powered directly by Arduino.





Reviews
There are no reviews yet.