Cockpitbuilders.com

Main => Builders Discussions => Topic started by: eisaacs on June 18, 2015, 03:54:40 AM

Title: help coding arduino for a 737 throttle quadrant for fsx
Post by: eisaacs on June 18, 2015, 03:54:40 AM
I have been researching for months and cannot come up with a solution. My problem is I built a throttle quadrant from scratch and have noticed that arduino can communicate with FSX with just having to use fsuipc. My problem is that I cannot figure out how to code the arduino at all. my build is for a 737ng I have Eng 1/2(analog), Flaps(analog), Air brakes(analog), rev thrust, parking brake w/ light, trim and eng 1/2 cutoff. if you can help me get started or point me in that direction I would greatly appreciate it. Im using a mega 2560.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: quid246 on June 18, 2015, 07:51:55 AM
As a suggestion, you should be a little more specific as to what you want to do... since your question is very generic.

Like if you simply want to read manual input from your TQ, you just need to write a small program that will read the pin and send those values back over USB to a program like Link2FS and setup the variable there.

If you want to talk auto-throttle commands, etc... then it's a whole other ballgame.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: Trevor Hale on June 18, 2015, 08:41:22 AM
Hey Quid, he is just looking to read POTS and Switches from the arduino and calibrate them through FSUIPC.

Trev
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: quid246 on June 18, 2015, 05:14:19 PM
Not much programming needed there then.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: navymustang on June 19, 2015, 10:49:11 AM
The other question is what aircraft model is running, e.g., Prosim?

If so, the Adruino card is such overkill.  Just by and install in a few hours a joystick card like the Leo Bodner series.  It will be done in a flash.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: Trevor Hale on June 19, 2015, 11:10:29 AM
Hi James, I understand why he is doing it.

Arduino = $30.00 and Bodnar card is $150.00


Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: Joe Lavery on June 19, 2015, 02:24:27 PM
Hey Trev, Leo does a suitable board for $38.53. It doesn't come with the push pin headers, but that shouldn't be a problem for someone attempting to interface a TQ.

http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=204 (http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=204)

In fact there's actually a cheaper board that comes without any connectors at all, and that only costs $30.82

http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=219 (http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=219)

Worth a look perhaps.
:2cw:

Joe.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: eisaacs on June 20, 2015, 07:07:42 AM
that is a good solution. and is cheaper than what I paid for the arduino board. see I built a 737 TQ and originally took apart the Ch yoke and integrated the Throttle board to work with it. My only problem was the ch throttle attached to the yoke would only allow for one throttle lever, not making it where I can separate engine one and two. So I did so research and found out that I could use the arduino board to do everything, such as auto pilot, lights and reverse thrust. But my biggest problem like I was saying is how to start the programming. but maybe I can just order the leobodnar board and see what happens. But if anyone has a sample code they can send my way I would be so appreciative.

Thanks guys,

Everton.
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: navymustang on June 22, 2015, 05:13:56 AM
Trevor, if all he is doing is monitoring analog signals and switches - the $25 card is all he needs.  No programming!
Jim
Title: Re: help coding arduino for a 737 throttle quadrant for fsx
Post by: Trevor Hale on June 22, 2015, 11:13:17 AM
Holy Crap, I didn't know he had the smaller card.... Interesting, thanks for the heads up!

Quote from: Joe Lavery on June 19, 2015, 02:24:27 PM
Hey Trev, Leo does a suitable board for $38.53. It doesn't come with the push pin headers, but that shouldn't be a problem for someone attempting to interface a TQ.

http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=204 (http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=204)

In fact there's actually a cheaper board that comes without any connectors at all, and that only costs $30.82

http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=219 (http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=94&products_id=219)

Worth a look perhaps.
:2cw:

Joe.