Hi everyone,
I've been reading in the forum days and trying to run my gyro but not run with it because it does not give accurate data on fixed or XY Z.
Attached picture of my sensor and wiring diagram. I use a Arduino UNO r3 board.
Thanks for all ![]()
Hi everyone,
I've been reading in the forum days and trying to run my gyro but not run with it because it does not give accurate data on fixed or XY Z.
Attached picture of my sensor and wiring diagram. I use a Arduino UNO r3 board.
Thanks for all ![]()
Hi, welcome to the forum.
The I2C bus is working ?
What is your sketch ? which libraries did you use ? and why are the values wrong ?
sorry, if i run the I2CScanner the monitor show the picture 1.
now, i use this code: #include <Wire.h> #define CTRL_REG1 0x20#define CTRL_REG2 0x21#define CT - Pastebin.com
and if i dont move the sensor and it is in the table as the picture of first post, the values are not the same or constant (picture 2)
this is my gy-50 sensor:
Thanks for all


Can anybody helps me please? Thanks ![]()
Perhaps those values are okay. All MEMS sensors are not very stable.
What if you move the sensor around ? Do the values change according to the motion ?
If the values change for 5% (5% compared to fast motion) while the sensor is not moving, it might be normal.
You could try other code.
For example the i2cdevlib.
You have to install the i2cdevlib library and the l3g4200d library.
This is the code : i2cdevlib/Arduino/L3G4200D at master 路 jrowberg/i2cdevlib 路 GitHub
This is the page for it, but the links to the code are missing : L3G4200D 3-axis accelerometer | I2C Device Library
Thanks Peter, when i try the sketch i tell u if it works better than other ![]()