• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LVGL Attitude Indicator (like an airplane)

Q&A Forum › Category: Questions › LVGL Attitude Indicator (like an airplane)
0 Vote Up Vote Down
Richard Montoya asked 9 months ago

Would the LVGL be a good to pair with a MPU6050 gyro to display an attitude indicator like you would find in an airplane, sometimes called an artificial horizon gauge. If so any hints on how to begin.  I’ve worked through most of the LVGL ebook and understand most of the projects so far, but am having a hard time making the jump to a more complex project like this. 

I’ve yet to find a good example of a attitude indicator project and am thinking the LVGL might be a perfect candidate. 

1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 9 months ago

Hello Richard, unfortunately I couldn’t find any good option that would work out of the box…
This is probably the best example I could find that could be heavily modified for that application:

  • https://docs.lvgl.io/master/examples.html (scroll down until you find the “Scale” section)

The gauge described in the image 3 could be modified to make it look like a compass:

  • https://github.com/lvgl/lvgl/blob/8699a7e86e18fdb09bb2d72e35c75bdedc539b14/examples/widgets/scale/lv_example_scale_3.c


Or you could load an image like that as the background image for the CYD board, then you would just add an indicator on top of that image that would move around based on the MPU6050 values.

I hope that helps!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.