Components and supplies
Capacitor 100 µF
Jumper wires (generic)
SSD1306 0.96 inches OLED
Rotary potentiometer (generic)
Arduino Nano R3
Apps and platforms
FlightGear
Anaconda
Arduino IDE
Project description
Code
arduinoElevatorTrim.xml
xml
Script to be added in the folder <FlightGearRoot>/data/Protocol. Do this once for all.
arduinoElevatorTrim.xml
xml
Script to be added in the folder <FlightGearRoot>/data/Protocol. Do this once for all.
Github
Online repository on Github
arduinoElevatorTrimOLED.ino
arduino
Code to load on the Arduino Nano. Adjust line 2 (type of display) as needed.
arduinoElevatorTrim.py
python
Script to be executed along with FlightGear to "translate" serial communication into UDP packets. You need Python installed in order to execute this script. Modify line 14 (USB port where the Arduino is connected) as needed.
arduinoElevatorTrimOLED.ino
arduino
Code to load on the Arduino Nano. Adjust line 2 (type of display) as needed.
arduinoElevatorTrim.py
python
Script to be executed along with FlightGear to "translate" serial communication into UDP packets. You need Python installed in order to execute this script. Modify line 14 (USB port where the Arduino is connected) as needed.
Downloadable files
Breadboard view
In Fritzing it is not possible to pass wires below components. The ground wire of the display may go under the Arduino Nano.
Breadboard view
Breadboard view
In Fritzing it is not possible to pass wires below components. The ground wire of the display may go under the Arduino Nano.
Breadboard view
Comments
Only logged in users can leave comments
dancili
2 years ago
Hello. This code will only work with FlightGear and there is no workaround, as far as I know, to make it work only with Arduino without Python and XML file.
Anonymous user
2 years ago
hi, im trying to make project for trim wheel for flight simulator cessna . can the coding fit for flight simulator x ?
ingweza
2 years ago
Very nice, even the little I understand. Starting out late n life. I am trying to make a cockpit dash but for a RC plane and want somthing like this but with and Imu on a colour spi. Hopefully I can get the imu to show inlcination, pitch etc. Any pointers. Excuse my dumb question. THis is a steep learning curve and satrted last week.
Anonymous user
2 years ago
Hi, I'm trying to make a wheel box/ Flight trim box for five ky-040 digital potentiometers and four on/off/on switches Ive got everything drilled and fitted to a project box but struggling what Arduino varient to use and find a wiring diagram/ code for each of the 5pins on (KY-040) potentiometer, CLK, DT, SW I think the potentiometers will use 15pin and the switches will use 10pins I'm a complete novice to this hence asking for help.
dancili
2 years ago
Hello. Maybe these links about Arduino may help you: https://www.arduino.cc/en/main/products https://www.arduino.cc/en/reference/board Good luck with your project!
ingweza
3 years ago
Very nice, even the little I understand. Starting out late n life. I am trying to make a cockpit dash but for a RC plane and want somthing like this but with and Imu on a colour spi. Hopefully I can get the imu to show inlcination, pitch etc. Any pointers. Excuse my dumb question. THis is a steep learning curve and satrted last week.
Anonymous user
5 years ago
hello i want ask for coding only for arduino with out need excute with python and xml. also i use it only for sendor rotaiong dont need lcd or else. can you give me please
dancili
2 years ago
Hello. This code will only work with FlightGear and there is no workaround, as far as I know, to make it work only with Arduino without Python and XML file.
Anonymous user
5 years ago
hi, im trying to make project for trim wheel for flight simulator cessna . can the coding fit for flight simulator x ?
dancili
2 years ago
No. This code will only work with FlightGear.
Anonymous user
6 years ago
Hi, I'm trying to make a wheel box/ Flight trim box for five ky-040 digital potentiometers and four on/off/on switches Ive got everything drilled and fitted to a project box but struggling what Arduino varient to use and find a wiring diagram/ code for each of the 5pins on (KY-040) potentiometer, CLK, DT, SW I think the potentiometers will use 15pin and the switches will use 10pins I'm a complete novice to this hence asking for help.
dancili
2 years ago
Hello. Maybe these links about Arduino may help you: https://www.arduino.cc/en/main/products https://www.arduino.cc/en/reference/board Good luck with your project!
Anonymous user
2 years ago
hello i want ask for coding only for arduino with out need excute with python and xml. also i use it only for sendor rotaiong dont need lcd or else. can you give me please