Pages: [1]   Go Down
Author Topic: Interfacing with Flight simulator X  (Read 7297 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I recently bought an Arduino (Duemilanove) and I got the idea to use it to control some FS X controls (autopilot).
Has anyone done this before or has pointers where to look?

Thanks!
Logged

Bangkok
Offline Offline
Full Member
***
Karma: 1
Posts: 173
freeduino.de Admin
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

you prob need some sort of usb HID emulating shield. i know there is one in preparation, but not ready afaik. not sure you can get away with other protocols, like midi.

for USB HID you can already use the CUIduino.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 97
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When I read the subject my first thought was hydraulic controlled cockpit.
Logged

London, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 46
Arduino. Great. All I need now is a project.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm looking at making instruments for FSX - my first project will be a 737 MCP based on Wilco/PIC/FeelThere's 737. Is this the sort of thing you're looking for? I'd be happy to share what I've learned so far.

Paul.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Paul,

What you're doing sounds really interesting.  What have you learned so far?

Matt
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

the fastests and simplest way is to use fsuipc (just google for it).
It's a library which interfaces to FSX in order to read and write nearly every value from airplane and environment: autopilot, heading, speed, etc etc etc...

I was thinking about doing some stuff on this way, and it looks to be really easy.

The hardest way is to think what do you want: a simple heading/speed/autopilot/lights module ? Or a full A380 cabine ?

Using fsuipc is very easy: just read any value you want and send it to arduino via serial interface (may be you use 7 segment or LCD), or read any button/switch change and send to FSX.

I hope this information help you!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bolanos Friend


Could you help me?
I wanted to learn how to read the information possso
in FSUIPC and sends it to Arduino via serial interface,
I'm looking on the internet, but so far nothing found.
It's a setup code? As I take the information
in FSUIPC?
And as I put the Arduino?

I am very grateful if you can help me
Logged

Devon, UK
Offline Offline
Full Member
***
Karma: 4
Posts: 234
Arduino rocks my socks, yes the socks are rocking!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the arduino can comunicate Via PS2 ports, so you can give it some buttons (add loads using something like an IO extender) and connect to a ps2 port on your PC, google is your friend.
Logged

Stockholm
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have done something similar but with Flightgear instead. The controls do not have force feedback, but I have rudder, aileron, trim, throttle and some more controls. Currently these are just potentiometers so quite unfriendly compared to a steering wheel (are they called that on an airoplane?).

How can you communicate with FSX?
I use an ascii-based protocol that talks over the serial. It both parses values and displays them on an LCD, and transmits the values read from the potentiometers. I gladly share the code if you are interested.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would love to get the code.  I assume it's possible to use the firmata firmware and the windows driver that sees the usb connection as a com port.  

I just finished building the "projbox" and I would love to be able to use the 4 switches, 4 pots, and 4 leds to replicate things such as throttle, mixture, flaps, lights, landing gear, etc.. and a few indicators.  

Any help would be much appreciated!!!
Logged

Stockholm
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a small project page at http://hasseman.com/arduino/AFGcockpit/ with code, (kind of) PCB, and some photos!
Logged

London, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 46
Arduino. Great. All I need now is a project.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After months of research (& the odd holiday) ...

My aim is to make realistic instruments that work with flight simulators. I looked at my project brief and realized I'd need to add USB HID functionality so my device can be plugged into a PC and be seen as a HID device. Windows natively provides drivers for HID devices.

I've spent ages researching and the best option at the moment looks like it'll include a PIC18f4550. The project is cheap to prototype and will be cheap in quantity.
Paul.
Logged

Pages: [1]   Go Up
Jump to: