Skip to content

An integration of two-way switches connected to an Arduino board to FS2020 using SImConnect

License

Notifications You must be signed in to change notification settings

nf1973/FS2020_HWPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FS2020-HWPanel

FS2020-HWPanel leverages Python-SimConnect and pySerial to allow two-way switches connected to an Arduino board to control switches in Microsoft Flight Simulator 2020 (MSFS2020).

This project is in the very initial and early stages of development but is in a working state (at least with the Cessna 172).

arduino.py

Listens on COM3 for data to arrive from an Arduino, then triggers Events to Microsoft Flight Simulator S2020 via Python-SimConnect based on a Dictionary which maps the data received with the Event Name. I currently have it working with some simple two-way switches connected to the Arduino. The code running on the Arduino can be found in 'single_switch.ino'

gui.py

So that testing could be done without the need for Arduino board this uses a tkinter GUI with buttons to trigger Events to Microsoft Flight Simulator S2020 via Python-SimConnect.

get_vars.py

Reads Simulator variables out of MSFS2020 (also using Python-SimConnect) and displays on console.

Notes

For Python-SimConnect, Python 64-bit is needed.

Microsoft SimConnect Documentation

Below are links to the Microsoft documentation for SimConnect

Function

Event IDs

Simulation Variables

About

An integration of two-way switches connected to an Arduino board to FS2020 using SImConnect

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published