Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 2
  • *Guests: 50
  • *Total: 52

Our Discord

WORLDFLIGHT 2018 - TEAM USA SUPPORTERS (HERO'S)


We would like to thank our HERO'S for Donating to support WORLDFLIGHT Team USA - 2018

Fred Kurasiewicz, Ray Sotkiewicz,Warren Soeldner, Kyle Hathaway-

Thanks to all of you, so far this year we have raised

$670.00 USD


Author Topic: 737-800 Arduino X-Plane Build  (Read 80630 times)

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
737-800 Arduino X-Plane Build
« on: September 06, 2015, 05:39:47 AM »
Hi!

I thought i should start this thread so i can keep track of all my progress and my images.

My build is targeted to be "budget with no compromises" =)

Some things i can´t build myself or get the panels for, so i just have to buy them. I think now these items will be:

Used TQ throttle
Seats
Yokes

Function is will take care of later:
Yaw damper, Authothrottle auto disengage.
Startswitches 46% disengage.

But all the other items i plan to make from Simworld Panels.
I have seen lots of panels, but i think they are among the best i have seen.
And the support from that company is great, very nice people!


So first off:

I wanted to start with the hardest part, because if i could do this i think lots of other things will be easy.
My build is based on Lots of Arduino MEGA cards and X-Plane 10.
The communication is based on COM port with Serial communications and a small program that i made in C++ for talking to X-plane.
The architectural build is done, so i just have to continue refactoring and make more datarefs handeling in the program.


Part 1:

MCP Build

I ordered the Simworld MPC panel, looks great.
I have some CTS 288 rotary encoders (i had to drill in the backpanel to make them fit)
I have ordered some knobs from acvdesign (custom drilled to fit the CTS 288), havent recieved them yet, think i will hava a problem with the length of my encoders being to long. =( need to cut them or replace them.

For the Korry switches i did something cool. I used 2x2 black Lego bricks. Becuase of the ring in the middle it cuts the lights from the display text and the Led engage light.

I have ordered the switches aswell for the Flight Directors and the Autothrottle. I have also ordered lots of MAX7219 LED display to use for this MCP. Right now the display is RED bur i will try to find some White leds later.

Anyway sofar i have this:






« Last Edit: September 06, 2015, 05:46:10 AM by kurt-olsson »

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #1 on: September 06, 2015, 02:33:37 PM »
Just ordered the MCP knob set, should be EIPC. Just hope that i don´t have to cut the rotary encoder rods... =(

Offline 727737Nut

  • I spend way too much on this forum!
  • *
  • Posts: 916
  • 737-300 Using Real parts and X-Plane 10
  • First Name: Rob Archer
Re: 737-800 Arduino X-Plane Build
« Reply #2 on: September 06, 2015, 08:30:35 PM »
Awesome work!  I'll be watching your progress.

 Question, is there a reason you didn't go with Teensy line of products with native X-Plane support?  Way more powerful than the mega.  Just curious.

Rob
737 Junkie

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #3 on: September 07, 2015, 06:31:58 AM »
Awesome work!  I'll be watching your progress.

 Question, is there a reason you didn't go with Teensy line of products with native X-Plane support?  Way more powerful than the mega.  Just curious.



Rob

Hi and thank you.

Haha i just got the feeling that i missed something with the teensy board! ;)

But i like the idea of having total control of the code both on the arduino and my c++ program, my plan is to support both the 737-200 flyjsim, x737 and the upcoming ixeg 737.

With that in mind i like the controlled code. Arduino has lots of good libraries also for led and encoders.

But i will definently look at the teensy card, my impression was that the arduino mega was more powerful.

I havent started to solder yet so i can still switch cards, i will do more resource of the teensy.

Thanks for input.

By the way, love your 737-200 sim. I admire your electric skills to get all those gauges to work. Looks amazing! The -200 cockpit is amazing, i like it better than the -800 due to more "manual".
« Last Edit: September 07, 2015, 06:55:07 AM by kurt-olsson »

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #4 on: September 07, 2015, 06:47:14 AM »
New autothrottle and flightdirector switch plus the three microbuttons for intervenes just dropped in today. Tonight there will be some soldering i think.

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #5 on: September 07, 2015, 06:49:35 AM »
This is one fat switch. Just hope that my arduino card van read it? Where is the ground? Only two connectors!??? Why?

Offline 727737Nut

  • I spend way too much on this forum!
  • *
  • Posts: 916
  • 737-300 Using Real parts and X-Plane 10
  • First Name: Rob Archer
Re: 737-800 Arduino X-Plane Build
« Reply #6 on: September 07, 2015, 07:46:34 AM »
That switch is what they call a SPST or single throw single pole sw.  Just hook one side to the arduino gnd and the other to your input pin.  You can tie all the your switch grounds together to one point to make it easier.

Thanks for the kind words on my -200 sim  :)

As for the Teensy, it uses Arduino code so you full control over them as well.  ;)  Just no need to write the interface between it and x-plane as that part is done. Is is an I7 compared to a PentiumI when you put it next to a Mega ;)

Rob
737 Junkie

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #7 on: September 07, 2015, 09:32:53 AM »
Ah. Thanks for the switch info, that saved me lots of google-time. =)

I have looked at the Teensy X-Plane API and it looks that i have written 99% same library! haha =)

The teensy card look really good, but i also like the connectors on the arduino that dont require the soldering, i saw that you can add adapters for it to make it the same, but i will continue with the arduino cards i have right now and see what the future has to bring. =)



« Last Edit: September 07, 2015, 09:34:45 AM by kurt-olsson »

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #8 on: September 08, 2015, 12:53:08 AM »
Ok, i am switching to the teensy board! More power same sketches and libs as the arduino and a complete api to talk and read x-plane!

Offline RayS

  • I spend way too much on this forum!
  • *
  • Posts: 761
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: 737-800 Arduino X-Plane Build
« Reply #9 on: September 08, 2015, 01:38:39 AM »
I'm also switching to the Teensy board for X-Plane... Seems to be the way to go over Arduino.
Ray Sotkiewicz

Offline 727737Nut

  • I spend way too much on this forum!
  • *
  • Posts: 916
  • 737-300 Using Real parts and X-Plane 10
  • First Name: Rob Archer
Re: 737-800 Arduino X-Plane Build
« Reply #10 on: September 08, 2015, 10:30:46 AM »
The really cool thing about the Teensy is that you can disconnect it during a flight, re flash, plug it in and it works immediately! Very handy when fine tuning code as no need to reboot the sim.
737 Junkie

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #11 on: September 08, 2015, 12:06:48 PM »
Ah your kidding me! No restart of the simulation!!!  ;D ;D
My project time was just cut by 70%!

Just ordered two teensy 3.1, one with pins and one without!

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #12 on: September 09, 2015, 06:39:19 AM »
My Project took a a real hit yesterday.

My soldering skills.... oh my god are they bad or are they bad? I doubt i will be able to solder all things together...  :(

should i use Heatsink for the resistors + Led. And how do i summon all the ground wires easily.

I would like to have some "ground-metal-rail" on my cardboard that i can connect all my cables to...

I would like to post my soldering, but you would laugh so hard that i wont post anything. =)
« Last Edit: September 09, 2015, 06:40:04 AM by kurt-olsson »

Offline mickc

  • Forum GURU
  • *
  • Posts: 486
  • Aviation Enthusiast
  • First Name: Mick
  • Home Location: VIC, AU
Re: 737-800 Arduino X-Plane Build
« Reply #13 on: September 09, 2015, 08:28:01 AM »
We all have to start somewhere Peter!

Just get some cheap components and practice.  There a lots of good Youtube videos out there that teach you how to solder.
After a while you will get the hang of it!

My first attempt at soldering looked like a bird had taken a metallic shit on the board :(

A common method for ground wires it to connect them from one component to the next in a daisy-chain fashion, so you have one wire that goes from switch to switch instead of individual ground wires to each of them.




Offline RayS

  • I spend way too much on this forum!
  • *
  • Posts: 761
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: 737-800 Arduino X-Plane Build
« Reply #14 on: September 09, 2015, 01:20:22 PM »
Soldering skills.... It does take practice....

http://www.amazon.com/Elenco-SP3B-Practical-Soldering-Project/dp/B0002LUALG

As you build you'll notice an exponential accumulation of wires that need to be grounded or otherwise connected to a power source.

I have about 12 of these in my sim:


They work beautifully.
Ray Sotkiewicz

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #15 on: September 09, 2015, 01:24:12 PM »
Thanks for your kind words!

-"My first attempt at soldering looked like a bird had taken a metallic shit on the board" HAHAHAHA I laught so hard i almost wet my pants! Metallic shit! heheh

Ah smart! connecting all the ground component by component seems easier than my "rale-thing".

By the way. My Teensy 3.1 is now installed and all the libs in place. Got the sample sketch up and running in 5 minutes!
Grade sofar 5/5.

Looks like the FlightControls is running async on its own core, that was my next step in my API that i was coding. Luckily i was told to try this instead! =)


Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #16 on: September 09, 2015, 01:26:00 PM »
That looks really nice RayS!


Even if its not so "nice" soldering i want to be sure nothing breaks after a while.

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #17 on: September 09, 2015, 01:27:47 PM »
Disaster hehe

Offline RayS

  • I spend way too much on this forum!
  • *
  • Posts: 761
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: 737-800 Arduino X-Plane Build
« Reply #18 on: September 09, 2015, 01:50:46 PM »
You can see here in the bottom center the power distribution. After it is all said and done I am still in a bit of shock at how many terminations there are to power!


It has:

2 Ground rails
1 5vdc "Always On" rail
1 12vdc "Always On" rail
2 12VDC "Switched" power rails (Only 'on' after I turn on the BATT switch)
1 5VDC   "Switched" power rails (Only 'on' after I turn on the BATT switch)

The switched rails are controlled by a relay card that uses TTL logic inputs.

The workflow for the BATT switch:

BATT switched connected via joystick card directly to X-Plane (Leo Bodnar's BUX card) --> XPUIPC connected to X-Plane --> RUSCOOL's 64-Output card --> Turns on Relay channel on Relay driver card --> connects 12vdc power to Rail(s)

Seems convoluted. Why not just use the switch itself to provide power to the 12VDC rails? I tried that but I also wanted the systems logic that turns on other related systems within the aircraft (Like flaps won't work unless BATT power is on)

Another thing to keep in mind is current draw. Make sure those primary power cables are thick enough to handle the load. Also make sure your power supplies are beefy enough. I've blown up more power supplies than I care to admit because I underestimated power requirements.
« Last Edit: September 09, 2015, 01:56:48 PM by RayS »
Ray Sotkiewicz

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #19 on: September 09, 2015, 03:12:57 PM »
Looks like a very clean setup! Great work! I think i am getting some progress, cutting the length of resistors and going component by component with the ground!
« Last Edit: September 10, 2015, 03:41:38 AM by kurt-olsson »

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #20 on: September 09, 2015, 05:02:20 PM »
Two hours later...

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #21 on: September 15, 2015, 04:58:59 PM »
Some new stuff came in the mail today. Lots of max7219 drivers and also my mcp buttons from lima,Peru!
Will have to sand the buttonholes abit then they will be perfect. One bad thing was that the vs wheel was to big! It will not show so much and will be hard to scroll... :(

The last hurdle now is the leds... It will be a pain-in-the-beeeep to extend 12x6 cables... And i also have to mount the leds somehow...

Offline kurt-olsson

  • I am chained to this website!
  • *
  • Posts: 1,046
  • 737 -mixed year OEM panel builder.
  • First Name: Peter
  • Home Location: Gothenburg
Re: 737-800 Arduino X-Plane Build
« Reply #22 on: September 15, 2015, 05:03:23 PM »
Current status
« Last Edit: September 16, 2015, 04:21:18 AM by kurt-olsson »

Offline RayS

  • I spend way too much on this forum!
  • *
  • Posts: 761
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: 737-800 Arduino X-Plane Build
« Reply #23 on: September 16, 2015, 01:21:22 PM »
Will have to sand the buttonholes...


...for some reason I read that a little different. Need more coffee :-)
Ray Sotkiewicz

Offline RayS

  • I spend way too much on this forum!
  • *
  • Posts: 761
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: 737-800 Arduino X-Plane Build
« Reply #24 on: September 16, 2015, 01:29:30 PM »
The last hurdle now is the leds... It will be a pain-in-the-beeeep to extend 12x6 cables... And i also have to mount the leds somehow...

Have you entertained using a stock Printed Circuit board? That might make for a better MCP backer and allow you to mount LEDs the way they need to be.

Maybe something like this...
http://www.ebay.co.uk/itm/like/121447132127?clk_rvr_id=897557081744&item=121447132127&lgeo=1&vectorid=229508&rmvSB=true

Then you could terminate all connections on your MCP with an IDC male plug, then simply attach a ribbon cable that also connects to your controller card.

http://www.protostack.com/connectors/idc/idc-male-connector-shrouded-header-10-pin-right-angle-leads

I also use wire-wrap wire for interconnecting components on a board such as the MCP. You could use thin-gauge wire such as 22AWG stranded, but in the end, wire-wrap wire makes for a much cleaner layout and fewer solder blobs.

https://www.sparkfun.com/products/retired/8031



« Last Edit: September 16, 2015, 01:36:03 PM by RayS »
Ray Sotkiewicz

 

COUNTDOWN TO WF2018


WORLDFLIGHT TEAM USA

Will Depart in...

Recent Posts

More Throttle Quadrant nightmares.
by Trevor Hale
[Today at 06:04:23 PM]
Join me on Vatsim Tonight
by Trevor Hale
[Today at 05:21:30 PM]
737-800 Arduino X-Plane Build
by Steenos
[Today at 05:18:55 PM]
Korry 318 push to test logic
by kurt-olsson
[Today at 01:02:43 PM]
Had to Post (True Story) Funny as Hell though (glad noone was hurt)
by Trevor Hale
[Today at 12:01:36 PM]
#Worldflight2018 Less than 20 Days to go!
by Trevor Hale
[Today at 10:39:46 AM]
Active Sky 16 Networked to P3D V4 ?
by brianwilliamson
[October 14, 2018, 07:52:08 PM]
B737 Desktop sim project
by archen
[October 14, 2018, 02:42:41 PM]
Computer Power supply strange 5V and strange behaviour Teensy is connected
by iwik
[October 14, 2018, 01:39:14 PM]
FOR SALE - Pair of IPECO Seats and J-Rails
by fsaviator
[October 14, 2018, 09:14:26 AM]
Teensy LC Hydralic Panel
by archen
[October 14, 2018, 05:17:53 AM]
For Sale: Jetmax JetMax-737SKTQ
by Trevor Hale
[October 13, 2018, 08:56:35 PM]
Laser CNC cutting/etching using a 3D printer?
by Joe Lavery
[October 12, 2018, 11:28:59 AM]
For Sale GoFlight Jet Console, 2 Private Pilot Racks all with GoFlight Modules.
by Joe Lavery
[October 12, 2018, 10:57:35 AM]
Project Magenta with Xplane 11
by kevinsayre
[October 12, 2018, 08:14:25 AM]
13.8V ok for 12V use?
by kurt-olsson
[October 11, 2018, 12:40:48 PM]
INTRODUCTION
by twkster
[October 10, 2018, 11:31:27 PM]
For sale New FlightsimPM B737 Throttle Quadrant v2.1
by fairchild
[October 10, 2018, 04:13:13 PM]
For sale,Commercial Packege Saitek Modules
by fairchild
[October 10, 2018, 03:05:47 PM]
CR-10, CR-10S, CR-10S4 and CR-10S5 3d Printer Info and Links...
by Trevor Hale
[October 10, 2018, 01:02:44 PM]
Mickey's Flightdeck - A Boeing 737-800 Cockpit on Youtube
by Joe Lavery
[October 10, 2018, 12:28:18 PM]
For Sale: CPFlight MCP 737 EL $400 USD Shipped Lower 48
by Giovan
[October 10, 2018, 05:18:11 AM]
Can you guyse please check this link
by fsaviator
[October 09, 2018, 09:30:46 PM]
Printing the Fuel Panel
by blueskydriver
[October 09, 2018, 01:12:39 PM]
New ACE Yokes Pro Version CT/FO for sale
by fairchild
[October 09, 2018, 12:43:08 PM]
What have you done for your simulator today?
by blueskydriver
[October 09, 2018, 03:03:28 AM]
Boeing 737-800 Next Generation Simulator
by fsaviator
[October 09, 2018, 12:15:11 AM]
Ground loop gremlins
by Trevor Hale
[October 08, 2018, 04:49:40 PM]
What can a 3D printer do?
by blueskydriver
[October 08, 2018, 12:53:30 PM]