Aircraft Gyro Horizon - DIY

About: For me, instructables is more than a website. It is a lifestyle. It gave me the chance to live my dream. Share what I do with the world. I am an embedded Systems Engineer. Love to travel , run , design usefu...

Intro: Aircraft Gyro Horizon - DIY

Do you want to make your own Gyro Horizon ? Have you seen this instrument on an aircraft before or in the Flight Simulator ?

This project is based on Renesas RX62N Demonstrating Kit YRDKRX62N as part of Renesas DevContest Competition 2010

Artificial Horizon or Gyro Horizon is a very important instrument for any flying aircraft. Have you ever thought of making your own?

The device is used on all flying aircrafts to indicate its attitude ( Roll & Pitch ) to the pilot.

This meter was a mechanical meter on old aircrafts that used a device called Gyroscope.

Modern aircrafts use an electronic device called ADIRU made by companies like Honeywell and Thales. The new device does the same function of attitude sensing with grater accuracy.

Here is the guide of making one. I put this step by step DIY instructable so you can try to do it some day. If you like it , you may want to vote for me in instructables contest. Thank you.

I received an evaluation kit from Renesas ( A Famous MCU manufacturer ) and decided to enter Renesas design contest.

The challenge was to use the evaluation kit with all its sensors and interface in a working useful application. I decided to use the kit to simulate the Gyro Horizon Flying instrument.

I got the project inspiration from Embraer 170 ADI ( Attitude Directional Indicator )

Wish you the best. And have fun ,Live free And Read Books on Amazon

Step 1: Hardware Setup

The Renesas kit was ready to be used for the project . Actually , I designed my application to use the available components of the board .

The components I used in my project are :

3D accelerometer from Aliexpress or Banggood
Graphic LCD from Aliexpress or Banggood

32 bit Renesas Microcontroller

Step 2: Software Concept

The concept is simple. Just as your iPhone uses its sensors to feel gravity using the 3D accelerometer, I used the kit's accelerometer to sense the gravity in magnitude and direction. The sensor senses gravity in 3 dimensions.

So it can feel not only gravity magnitude, but it can also sense gravity vector. Using the powerful Renesas RX62NMicrocontroller , I knew how to analyze gravity vector to get tilt angel in tow dimensions ( Pitch and Roll ).

This part was the easiest part ( Belive me !!! )

The next part was how to demonstrate these values and readings visually.

The kit had a graphical wide LCD that inspired my ( and the 3D accelerometer ) to make this project . But the problem was that the LCD hasn't been shipped with a drawing driver software.

I had to make the driver for graphics by my own. I started from drawing a single dot on the LCD. Then connecting some dots to draw a straight line.

Then I could draw the entire static display. Then I wanted to draw the updating moving display that represents motion.

That is made by making the line coordinates updated with gravity values.

I also made my Gyro Horizon looks like the real Gyro Horizon in the aircraft in that the lower part ( that represents ground ) looks darker than the upper part ( that represents sky ).

I also made those two parts move and update their position with gravity so it gives the Gyro Horizon looks.

Here is part of the code that reads accelerometer output and responds to board motion:

x = accel_x_axis;
y = accel_y_axis;
z = accel_z_axis;

x -= BSP_Accel_X_Zero; /* Normalize */
y -= BSP_Accel_Y_Zero;
z -= BSP_Accel_Z_Zero;

x2 = x * x;
y2 = y * y;
sum_x2_y2 = x2 + y2;
AppMagnitude = sqrt(sum_x2_y2 / 2.0f);

Step 3: Realizing the Concept

At this step I went to finalizing the project and transform the concept idea into reality.

Here is the link for Renesascontest entry.

Here is the link for the project on my Blog MicroMonitor Embedded Egypt

Here is the link for the project on my Blog in Arabic:

المقال باللغة العربية

Here is the link to my Blog : Embedded Egypt


Thank you for reading my instructable.

Do you like audio books and want to learn something new on the Go ?

This instructable is brought to you by Audible, the famous Audio Books Platform. You can now listen to free Audio Books from Audible.

Listen to Free Audio Books on Audible US ...

Listen to Free Audio Books on Audible CA ...

Listen to Free Audio Books on Audible UK ...

Listen to Free Audio Books on Audible DE ...

Listen to Free Audio Books on Audible FR ...

Wish you the best. And have fun ,Live free And Read Books on Amazon

You can also find my book Learn By Making on Amazon website.

If you like this instructable you can support us by many ways:

1. Leave comments stating your point of view about this article.

2. Buy our book on Amazon Learn By Making.

3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free. This means that you can enjoy something for free and still support our blog to keep posting useful stuff. - Read eBooks using the FREE Kindle Reading App on Most Devices

This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission. There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format. The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.

Join Amazon Kindle Unlimited 30-Day Free Trial

You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.

Try Amazon Prime 30-Day Free Trial

The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.

Shop Amazon - Give the Gift of Amazon Prime

Try Audible and Get Two Free Audiobooks

Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.

Shop Amazon - Create an Amazon Baby Registry

If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.

4. Visit our new website

Thank you for visiting our instructable.

Here are some of my latest books on Amazon.

Learn By Making

Backyard Wind Turbines



    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest
    • Furniture Contest 2018

      Furniture Contest 2018

    2 Discussions


    2 years ago


    How about the code?

    i am planning to do somewhat similar with an ATSAMV21 board from ATMEL / BNO055.

    Could you kindly help me.




    2 years ago

    You will have a problem with accuracy as accelerometers are vibration sensitive and inaccurate in yaw axis. MEMS gyros (like all gyros) will drift, so in quadcopters they use 9DOF, 3axis accelerometers+ 3axis gyros+3axis magnetometers with all sensor results being passed to Kalaman filter for reasonable accuracy. i believe that modern avionics like garmin 1000 use similar approach.