top of page

wire colour

Actual aircraft wire is predominately white. Red and Blue are also used. 

I like to use different colours for different devices. 

Here, in these examples. I have used blue for switches, Black for ground.

Red for +5V, yellow for LED's and grey for Servo's etc.

wire colour

wire colour

Switch & Button Pin Layout
Wiring a ON/OFF Switch
Wiring a ON/OFF/ON Switch

Arduino Components

Switches & Buttons

Wiring And Basic Tutorial for Mobiflight & Prosim using Ardunio Mega

Connecting a switch in your simulator is one of the easiest things you can achieve. It provides a great starting point and proof of concept for any budding enthusiast.

 

Switch type really doesn’t matter. From large toggle switches to tiny tactile switches, they will all work with the Arduino, Mobiflight, and Prosim. The big toggle switches are used everywhere in a 737. From overhead to MIP. The tactile switches both 12mm and 6mm are used inside various panels and I have found the ones fitted with LEDs work really well to help illuminate the various buttons. Buying from eBay in bulk from china is very cheap. After-all, even if you are not after a replica Boeing, you can still have 50 switches on each Arduino to command as you like. 

Mobiflight Mini Toggle Switch (ON-OFF)
Mobiflight 12mm tactile switch
Mobiflight Tactile Switch 6mm x 7mm
Mobiflight 12mm LED tactile switch
Mobiflight Small Toggle Switch (ON-OFF-ON)

Switch & Button - Pin Layout

Toggle Switch Pin Description Layout.jpg

Each switch can have two more contacts/legs/terminals. One will always be ground or known as the common (pin). This pin will be connected to the Arduino ground. If more than one button/switch is used, the grounds can be daisy-chained.

The other pins (PIN1 & PIN2) in the diagram can be connected to any other pin on the Arduino Mega; pins 2 to 53.

Switch & Button - ON - OFF

Mobiflight ON-OFF Switch Wiring Diagram.jpg

A Simple ON - OFF switch, normally has two pins. The button type can be latching or momentary.

 

With this type of switch, it really doesn't matter which pin is assigned to ground. 

Once the wiring is completed, its straight over to programming Mobiflight and Prosim. If you need help on this, see the YouTube video; Helimech Episode 25 or visit the Button Programming page on this website.

Even though there are 52 availible pins on the arduino Mega, Mobiflight has a software restriction capped at 50 switches. The other two pins can be used for other devices such as LED's, Encoders or Servos.

MobiFlight Single Switch Wiring.jpg
MobiFlight Single Switch Wiring Diagram.jpg

Switch & Button - ON - OFF - ON

The ON-OFF-ON Switch, is like having two ON/OFF switches together, but being only able to select one of two states. There is usually a common pin in the middle used for ground. The two other pins are used to connect to the Ardunio Mega (Pins 2-53). 

MobiFlight ON-OFF-ON Switch Diagram.jpg
Mobiflight Switch Close Up Diagram.jpg
MobiFlight ON-OFF-ON Switch Wiring Diagram.jpg
MobiFlight On-OFF-On Wiring Diagram.JPG

GETTING STARTED

Have you read and downloaded the guide?

Check it out here:

led tactile sw.jpg

The diagram to the right shows how an LED tactile switch is wired.

Which Wire to use?

I was lucky a few years ago that we modified our fleet of helicopters. This meant I had hundreds of meters of discarded, reusable aircraft wire. This wire is by far superior to anything have found from china on eBay. The part number is:

55A0811-22-9

It's 22 AWG, but 24 AWG will also work the Arduino 5V items. 

Switch & Button - 2 OR MORE SWITCHES

Wiring Multiple Switches

Up to 50 switches can then be added. I have shown only two switches to help keep the diagrams simple. But the principle is the same. You can see how the ground is simply daisy chained. This is to keep the wiring back to the Arduino to a minimal amount. The looms already can get quite big in size with 52 wires.

Mobiflight wiring multiple switches.JPG
MobiFlight DUAL SWITCHES Image.jpg

Daisy Chained Grounds

There are only 3 or 4 grounds on the Arduino Mega to connect all your devices too.

Sometimes its easier to connect all the grounds in daisy chain configuration. Linking devices to one and another using a single ground back the Arduino Mega.

Another way would be to used a break out board with a common ground connected line.

But by daisy chaining grounds, the wiring loom can reduced drastically.

Mobiflight 2 or more switches wiring diagram.jpg
MobiFlight 2 switches wiring diagram.jpg

Rotary Switches - 1 to 12 pins 

Rotary Switches

There are two main types of rotary switches used on the 737 Sim.

A 12 Position (45 Degree) single pole switch

A 8 Position (30 Degree) single pole switch

All these switches look very similar, but look for the single throw with a single pin in the middle and NOT 2 o3 three!

F7392921-01.jpg

Wiring Rotary Switches are very similar to the above examples. These switches can have up to 13 pins​ on a switch. You may not need all these pins. Each rotary switch usually comes with a locking collar which you can insert into the front. There are 11 positions to fit it. The number relates to the amount of positions/Pins you want to use. The locking collar stops the knob rotating the to the full 12 positions if required. Below are the wiring diagrams for all 12 positions including a center ground/common pin. Using multiple rotary switches can soon fill an Ardunio Mega board.

MobiFlight Rotary switch.jpg
MobiFlight rotary switch close up.jpg
MobiFlight Rotary Switch Wiring Diagram.jpg
MobiFlight Rotary Switch Wiring Diagram.JPG
Seen an error?
Want something changed?
Need extra help?

Get In Touch>

Wiring Rotary Switches
bottom of page