Building a physical KMA20 panel🔗

Posted by Médéric Ribreux 🗓 In projects/ flightgear/

#flightgear #electronic

Introduction

KMA20 is an audio panel from Bendix King with which you can transfer audio signals to speaker or headphones. You can also configure which microphone will be used. There is also an ILS light controls for MM and OM signals.

There is no commercial equivalent product (nothing on Saitek side as far as I have searched).

What does it look like ?

The face looks like this:

KMA20 Panel
KMA20 Panel

Input/Outputs

Inputs

On the left, you can see a 3 position rotary switch. It is the microphone selection switch. First position is to select COM1 frequency to answer, second position, you will be talking to COM2. Ext means to use the microphone to speak to you copilot. To emulate this switch, we just need 1 three positions rotary switch.

Then you have the main group of 8 switches which is used to send the audio signal of the different systems to the speaker, to nothing (silence) or to headphones. Those 8 switches have 3 positions: up for speaker, middle for silence, bottom for headphones. To emulate this group of controls, we need 8 three positions toggle switches. Those positions will be ON-NONE-ON.

On the right, there is a three positions switch which is used to set the sensitivity of the beacon marker (HIgh or LOw). If the switch is toggled to the bottom, all of the bottom left LEDS are switched on (for test purpose). To emulate this control, we need 1 three positions toggle switches.

Outputs

There a few outputs for KMA20. There is just 3 LEDs on the bottom left. A LED means that you have crossed an Airway marker, O means you have reached an Outer beacon marker and M means you have reached a Middle beacon marker. Those markers are lighted on ILS procedures (as far as I know).

Supplemental inputs

We need more than the inputs shown previously. First, we need 1 ON/OFF switch to power the KMA20 console. Then, if you look closer at the KMA20 panel at the bottom right, just before the King logo, you will see a photo-diode. It is used to adjust the 3 lights dimming.

As far as I am concerned, I'd prefer to have a potentiometer to adjust LED brightness manually. So we need 1 rotary potentiometer. But we could combine those two controls by using only 1 switch rotary potentiometer.

Microcontroller dimensioning

Pins

We will use PDIP µcontrollers as it is easier to solder with hand.

We need at least 25 I/O pins (two analogs and 3 PWM). After a bit of search, there is no PDIP28 AVR that can be used on this project. We need to focus on 40 PDIP µcontrollers.

We could reduce the 18 pins of the toggle switches to one analog pin using an R-2R ladder. But we would have to use about 36 resistors which is not cost effective (the price difference between PDIP28 and PDIP40 AVRs are about 2,5€) ! Even with some molded R-2R ladder it is not cost effective. Definitively, we should use a PDIP40 µcontroller. In Atmel range, we should use ATMega !

RAM consumption

We need to track the following inputs

Minimum of 13 Bytes of RAM for KMA20 variables.

Communication with flightsim computer

We will use USB to power the KMA20 and to send/receive information to/from the flightsim computer. We can use V-USB library and a few discrete components or use an FTDI uart-USB converter.

We will use USB-B connectors as they are cheaper than mini-B ones and are much more easier to solder by hand. Furthermore, USB A-to-B cables are nearly as cheap as USB A-to-mini-B ones

Dimensions

Here is what I've found inside the installation manual (dimensions are in centimeters, as a european, I love metric system !):

schema of KMA20 Panel dimensions
schema of KMA20 Panel dimensions

You can download the SVG source to make your own adjustments. Beware, all of the sizes are deduced from the original size: I've taken the first panel bitmap, imported it in inkscape, adjust the size to what I'v found in installation manual and make manual measures inside inkscape: those figures are not really precise.

I've gone further and made an SVG replica of the panel of the KMA20:

KMA20 Panel replica
KMA20 Panel replica

The goal is to print this panel on a adhesive paper (with a black'n white laser printer), to cut the grey holes (for switches) and to stick it to a metal panel (with holes also) to have something that looks like a KMA20 panel.

You can download the SVG source to make your own modifications or to print with better quality.

For the moment it is just pure theoric work: I've not attempted yet to build the thing. It will surely need adjustments…

Cables

We need lots of cables to connect switches and LEDs to the Printed Circuit Board (PCB). But how much ?

Here is an estimation:

Here are the color codes for each connection:

Lengths by color codes:

Bill of materials

ComponentNumberManufacturerDatasheetPrice
3-positions rotary switch1Lorlin CK1032Datasheet1,94 €
3-positions toggle switches9E-Switches 100SP1T4B1M1QEHDatasheet2,12 €/by 10: 20,3 €
switch rotary potentiometer for powering up and LED dimming1Bi Technologies P170S-FC20BR10KDatasheet0,94 €/by 2: 1,88 €
current limiting resistors for LEDS (140 Ohms)3Yaego MFR-25FBF52-140RDatasheet0.101 €/by 6: 0,606 €
Microcontroller1Atmel ATMega 164ADatasheet4,84 €
DIP Socket 401FCI DILB40P-223TLFDatasheet0,54 €
20 Mhz Quartz oscillator1CTS Electronic Components ATS20B-EDatasheet0,362 €
20 pF capacitor2Xicon 140-100N2-200J-RCDatasheet0,086 €/by 2: 0,172 €
Cap for rotational switch1Eagle Plastic Devices 450-AE186Datasheet0.648 €
Cap for switch rotary potentiometer1Eagle Plastic Devices 450-4760Datasheet0,81 €
5mm Blue LED Bright1Cree C503B-BCS-CV0Z0461Datasheet0,211 €/by 3: 0,633 €
5mm Amber LED Bright1Cree C503B-ABS-CY0Z0341Datasheet0,201 €/by 3:0,603 €
5mm White LED Bright1Cree C513A-MSN-CW0Y0511Datasheet0,252 €/by 3:0,756 €
USB B connector1Molex 67068-9001Datasheet0,98 € or samples
USB A-to-B cable1Molex 88732-9002Datasheet2,25 €
White cable4 ftTe Connectivity 55A0111-24-9Datasheet0,29 €/ by 4: 1,16 €
PCB Headers 5 pins1Molex 22-28-4050Datasheet0,254 €
PCB Headers 12 pins2Molex 22-28-4120Datasheet0,399 €/by 2: 0,8 €
PCB Headers 16 pins1Molex 22-28-4160Datasheet0,531 €
Crimp Housing 2 pins1Molex 22-01-2021Datasheet0.102 €
Crimp Housing 3 pins10Molex 22-01-2031Datasheet0,174 €/by 10: 1,74 €
Crimp Housing 4 pins3Molex 22-01-2041Datasheet0,255 €/by 3: 0,68 €
Crimp Terminal100Molex 05-50-0113Datasheet0.036 €/by 100: 3,6 €
Wood for enclosure1Medium 3mm2,45 €
A4 Sheet of paper with KMA 20 console printing1