Skip to content

Interfacing L3G4200 triple axis gyro module with Arduino

Hello there,

In this article we gonna try to interface L3G4200 module with Arduino board, we’ll just wire it and get the raw values that we can use later in a project or something else, but first we should make it work!!

So what is a triple axis gyro/gyroscope? First a gyroscope  is a device used for measuring or maintaining orientation and angular velocity. It is a spinning wheel or disc in which the axis of rotation is free to assume any orientation by itself. When rotating, the orientation of this axis is unaffected by tilting or rotation of the mounting, according to the conservation of angular momentum. (source: “Gyroscope”Oxford Dictionaries)

But in our module we don’t have a spinning wheel, we have a micro-electromechanical system that uses similar technics (tuning forks, vibrating wheels, or resonant solids of various designs…)

They are used a lot in navigation, positioning, and also on smartphones, tablets… if you ever wondered how a phone know you are tilting it, and it flips the screen automatically, because it uses one of these.

So to not make this long, here is the Wiring and code used.


Wiring of a L3G4200 module with Arduino UNO board


I’ll try to use another codes in the future, or simple libraries.

Here is the “.ino” code: Download here or:

Yassine View All

Automation and Electrical Engineer, Electronics amateur trying to share my little projects.

2 thoughts on “Interfacing L3G4200 triple axis gyro module with Arduino Leave a comment

Leave a Reply

%d bloggers like this: