Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 1
  • *Guests: 42
  • *Total: 43

Our Discord

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

Offline kurt-olsson

  • I spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 915
  • Karma: +2/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 915
  • Karma: +2/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 747
  • Karma: +0/-0
  • 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: 915
  • Karma: +2/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 468
  • Karma: +1/-0
  • 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: 747
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 747
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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 spend way too much on this forum!
  • *
  • Posts: 912
  • Karma: +0/-0
  • 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: 747
  • Karma: +0/-0
  • 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: 747
  • Karma: +0/-0
  • 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

For Sale : Prosim 737 license, old price
by mbunjes
[Today at 01:01:10 AM]
Memphis 727 Build
by skyline223
[August 18, 2018, 11:02:50 PM]
P3D v4 Multichannel, still an expert request for an optimal setting
by FredK
[August 18, 2018, 09:49:29 PM]
737 seat
by jackpilot
[August 18, 2018, 09:33:31 PM]
Beechcraft 1900 Yoke Angle
by RayS
[August 18, 2018, 06:14:09 PM]
mycockpit.org Gone?
by navymustang
[August 18, 2018, 03:37:09 PM]
NO HAN ENVIADO LA SERIAL KEY
by a320kH
[August 17, 2018, 06:15:56 PM]
Opencockpit IO cards
by Sampick
[August 17, 2018, 11:43:47 AM]
What have you done for your simulator today?
by blueskydriver
[August 17, 2018, 01:19:46 AM]
My project, 737 in the basement.
by Goteborg
[August 13, 2018, 06:01:37 AM]
My 737 Desktop Cockpit
by Nolatron
[August 11, 2018, 11:32:17 PM]
Monitor setup - mixing screen sizes
by mdavenport
[August 11, 2018, 06:37:18 PM]
Wanted! Real Boeing 737 TQ
by Philip
[August 11, 2018, 01:23:21 PM]
Mickey's Flightdeck - A Boeing 737-800 Cockpit on Youtube
by Extraterra
[August 10, 2018, 06:27:19 PM]
Boeing light gray paint color
by bernard S
[August 10, 2018, 12:05:45 PM]
727 Builder Intro
by skyline223
[August 10, 2018, 10:52:43 AM]
737-800 Arduino X-Plane Build
by kurt-olsson
[August 09, 2018, 04:45:16 PM]
Move Project Magenta From FSX to P3D Full cockpit
by ScottThePilot
[August 09, 2018, 12:54:14 AM]
The eagle has landed
by simlady/ Karen
[August 08, 2018, 09:08:18 PM]
Need Information on World Flight 2018
by simlady/ Karen
[August 08, 2018, 09:05:36 PM]
Honeywell OEM Overhead Toggle Switch Caps - Replacement Instructions & Part Nos.
by mickc
[August 08, 2018, 03:25:09 AM]
Wanted Pair of Headrests of this type!
by mgovernali
[August 06, 2018, 03:58:03 PM]
FOR SALE - Precision Flight Controls Cirrus II and Remote Instrument Console USB
by XOrionFE
[August 06, 2018, 12:17:59 PM]
737 Overhead and Flaps Gauges For Sale
by navymustang
[August 06, 2018, 10:11:05 AM]
Ozsim International Airlines Goes 4K
by tennyson
[August 05, 2018, 05:31:18 AM]
X-Plane 737-800 Build
by Steenos
[August 03, 2018, 08:23:11 PM]
Teensy joystick quits after calibrated in X-Plane
by kurt-olsson
[August 02, 2018, 06:46:48 PM]
Zibo Flaps dataref
by RayS
[August 02, 2018, 03:57:09 PM]
737NG Simulator DOWN!
by B737NG
[August 01, 2018, 11:39:45 AM]