Cockpitbuilders.com

Main => General Discussion Board. => Topic started by: FSAddon_boss on October 06, 2021, 01:03:38 AM

Title: Great Arduino video
Post by: FSAddon_boss on October 06, 2021, 01:03:38 AM
Great to me, that is, as a total novice on all of this stuff.

It appears that I have the WRONG Arduino board though, as it is not one that can relay keyboard commands ???

The man who made the video is many steps ahead of me, and has a 15 year reserve ga pin age, but things like these are helping me a lot!

I now plan to dismantle my Flightlink switches and use them to connect to an Arduino (bread)board to toggle the switches in X-Plane. The EPIC board is just too old and too much of a black-box.

https://youtu.be/A5s_9UNFDck
Title: Re: Great Arduino video
Post by: Joe Lavery on October 06, 2021, 04:43:04 AM
Francois,

Before you get too involved with the arduino coding, have a look at Mobiflight.

There are lots of tutorials and it does work with X-Plane by using a plugin that works like FSUIPC.

Worth a look

https://www.mobiflight.com

Joe.
Title: Re: Great Arduino video
Post by: Jason L on October 06, 2021, 05:20:06 AM
A big second behind mobiflight.  Very easy to use and continuously updated.  Supports 3 different arduino boards if I remember correctly.
Title: Re: Great Arduino video
Post by: _alioth_ on October 06, 2021, 06:37:21 AM
Although mobiflight is quite good I have to say you should try with arduino code. Mobiflight has its limits.
If xplane, then teensy board with Teensyduino plugin.  https://www.pjrc.com/teensy/td_flightsim.html
If p3d, arduino + fsuipc LUA script.

If you can learn it, the only limit will be your imagination.
If you think the learn curve is too much, then mobiflight can do the job.
Title: Re: Great Arduino video
Post by: RayS on October 06, 2021, 10:04:11 AM
Another vote for Arduino/Teensy.

Mobiflight is good, but there are several limitations still, especially when using Stepper motors..

I prefer using Teensy 3.2 devices connected directly to X-Plane. No middleware involved.

The only drawback to using the PJRC Teensy 3.2 plugin is it only works with the Teensy 3.2 devices.

With that said, my sim has about 15 of them installed without issue.
Title: Re: Great Arduino video
Post by: _alioth_ on October 06, 2021, 11:50:15 PM
Quote from: RayS on October 06, 2021, 10:04:11 AMThe only drawback to using the PJRC Teensy 3.2 plugin is it only works with the Teensy 3.2 devices.

I only use p3d. But some time ago I tested teensy 3.5 with xplane and worked great. Is there any problem with 3.5?
https://www.youtube.com/watch?v=1TnGI2Vj_S4

In p3d, with a lua script in fsuipc for serial data transfer, you can use whatever you want.
I use arduino mega, arduino due, arduino micro, and teensy 3.5 in my cockpit...



Title: Re: Great Arduino video
Post by: FSAddon_boss on October 07, 2021, 04:27:14 AM
Thanks for all the comments. I looked at SimVim and MobiFlight too....... they both are interesting in terms of ' ease of use'..... but being an ancient programmer AND hoping to use my simpit for more than one sim, I am still leaning towards Arduino and doing it myself..... My main hurdle is electronics, of which I know next to nothing.... not programming.  :D
Title: Re: Great Arduino video
Post by: RayS on October 07, 2021, 02:52:33 PM
Quote from: _alioth_ on October 06, 2021, 11:50:15 PMI only use p3d. But some time ago I tested teensy 3.5 with xplane and worked great. Is there any problem with 3.5?

It depends on how it's implemented. If you are using the 3.5 in conjunction with LUA scripts then it should be fine.

In my case I'm using the TeensyDuino plugin which only works with Teensy 3.2. https://www.pjrc.com/teensy/td_flightsim.html

However, you could use a Teensy 3.2 as the master device and it could be set up to drive other controllers via the serial interface.
Title: Re: Great Arduino video
Post by: _alioth_ on October 08, 2021, 01:18:05 AM
Quote from: RayS on October 07, 2021, 02:52:33 PM
Quote from: _alioth_ on October 06, 2021, 11:50:15 PMI only use p3d. But some time ago I tested teensy 3.5 with xplane and worked great. Is there any problem with 3.5?

It depends on how it's implemented. If you are using the 3.5 in conjunction with LUA scripts then it should be fine.

In my case I'm using the TeensyDuino plugin which only works with Teensy 3.2. https://www.pjrc.com/teensy/td_flightsim.html

However, you could use a Teensy 3.2 as the master device and it could be set up to drive other controllers via the serial interface.

I asked beacause I tested teensy 3.5 with teensyDuino and x-plane plugin and worked great.

I have read there was a problem with tensy 3.5 and float variables in the xplane plugin. But It was fixed and now you can use teensy 3.5 fine.

Title: Re: Great Arduino video
Post by: RayS on October 08, 2021, 12:16:27 PM
Quote from: _alioth_ on October 08, 2021, 01:18:05 AMI have read there was a problem with tensy 3.5 and float variables in the xplane plugin. But It was fixed and now you can use teensy 3.5 fine.

I'll have to give it a shot this weekend. I've a few spares collecting dust. Thanks for the Info!