Cockpitbuilders.com

sign up .

November 25, 2020, 10:53:31 am

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
31 Guests, 2 Users
Members
Stats
  • Total Posts: 56374
  • Total Topics: 7506
  • Online Today: 32
  • Online Ever: 582
  • (January 22, 2020, 08:44:01 am)
Users Online
Users: 2
Guests: 31
Total: 33

COUNTDOWN TO WF2021


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

737-800 Arduino X-Plane Build

Started by kurt-olsson, September 06, 2015, 01:39:47 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kurt-olsson

September 06, 2015, 01:39:47 am Last Edit: September 06, 2015, 01:46:10 am by kurt-olsson
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:







kurt-olsson

Just ordered the MCP knob set, should be EIPC. Just hope that i don´t have to cut the rotary encoder rods... =(

727737Nut

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

kurt-olsson

September 07, 2015, 02:31:58 am #3 Last Edit: September 07, 2015, 02:55:07 am by kurt-olsson
Quote from: 727737Nut on September 06, 2015, 04: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


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".

kurt-olsson

New autothrottle and flightdirector switch plus the three microbuttons for intervenes just dropped in today. Tonight there will be some soldering i think.

kurt-olsson

This is one fat switch. Just hope that my arduino card van read it? Where is the ground? Only two connectors!??? Why?

727737Nut

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

kurt-olsson

September 07, 2015, 05:32:53 am #7 Last Edit: September 07, 2015, 05:34:45 am by kurt-olsson
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. =)




kurt-olsson

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!

RayS

I'm also switching to the Teensy board for X-Plane... Seems to be the way to go over Arduino.
Ray Sotkiewicz

727737Nut

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

kurt-olsson

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!

kurt-olsson

September 09, 2015, 02:39:19 am #12 Last Edit: September 09, 2015, 02:40:04 am by kurt-olsson
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. =)

mickc

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.




RayS

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

kurt-olsson

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! =)


kurt-olsson

That looks really nice RayS!


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

kurt-olsson


RayS

September 09, 2015, 09:50:46 am #18 Last Edit: September 09, 2015, 09:56:48 am by RayS
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.
Ray Sotkiewicz

kurt-olsson

September 09, 2015, 11:12:57 am #19 Last Edit: September 09, 2015, 11:41:38 pm by kurt-olsson
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!

kurt-olsson


kurt-olsson

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...

kurt-olsson

September 15, 2015, 01:03:23 pm #22 Last Edit: September 16, 2015, 12:21:18 am by kurt-olsson
Current status

RayS

Quote from: kurt-olsson on September 15, 2015, 12:58:59 pm
Will have to sand the buttonholes...



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

RayS

September 16, 2015, 09:29:30 am #24 Last Edit: September 16, 2015, 09:36:03 am by RayS
Quote from: kurt-olsson on September 15, 2015, 12:58:59 pmThe 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



Ray Sotkiewicz

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate