A simple Heads-Up Display (HUD) project for Arduino Pro Mini which visualices a MPU6050 gyroscope.
A compact Heads-Up Display (HUD) for Arduino boards using a 128x32 OLED screen and the SSD1306 driver. It visualizes roll, pitch, and other flight-style metrics using a gyroscope (MPU6050). Designed for low RAM usage and optimized for small microcontrollers like the Arduino Pro Mini.
- Connect the Arduino to your computer.
- Download the Adafruit dependencies using the Arduino IDE. Also can be downloaded from here: (Adafruit_SSD1306)[https://github.com/adafruit/Adafruit_SSD1306/blob/master/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino]
- Open the Arduino IDE and load the "HUD.ino" sketch.
- Compile and upload the sketch to your Arduino board.
- Connect the display to the Arduino following the wiring instructions in the "Connections.md" file.
- Power on the Arduino and the HUD will start displaying information.
How to connect all the system:
To compile the Arduino HUD project, follow these steps:
- Install the Arduino IDE from the official Arduino website (https://www.arduino.cc).
- Open the "HUD.ino" sketch in the Arduino IDE.
- Select the appropriate board and port from the Tools menu.
- Click the "Verify" button to compile the code.
- If there are no errors, you can proceed to upload the sketch to your Arduino board.
- Make sure the Arduino and display are properly connected.
- Power on the Arduino board.
- The HUD will automatically display the default information.
- Customize the HUD by modifying the code in the "HUD.ino" sketch.
- Upload the modified sketch to the Arduino to see the changes.
The main problem is that the Arduino Mini Pro only have 2KB of RAM. Only the Adafruit OLED controller uses 44% if the RAM memory. There is no much information about this topic and the IA tools are not very helpfull.
Image to the PCB scheme for building a more robust project and not use the prototyping breadboard.
3d recreadtion to the PCB construction.
Thanks to the following contributors who have helped make this project possible:
Feel free to contribute by submitting pull requests or reporting issues.




