Simple Modular Flight Mode Switch - Build it for $20

Simple Modular Flight Mode Switch - Build it for $20 

So... after reading Max Levine's Blog here about a simple 6-Way Flight Mode Switch, I decided to make my own; but I wasn't exactly satisfied with the lack of clear mode indicators.

I've also read about jDrones Arduino Flight Mode Switch based on Stefan & Roman's work; it REALLY is an awesome bit of fabrication. But after what appears to be stalled development for the last few months, I began to have second thoughts about their design.

IMHO, breaking the entire PPM chain, running it through plug-in connections to an add-on CPU, then injecting a modified PPM signal back into the TX JUST to be able to synthesize outputs to ONE channel... that is beyond tempting fate; it is BEGGING Murphy to make an example of you in a manner suitable for a Darwin Award.

[EDIT]

After some several conversations with Stefan, I find that I was mistaken about how his Arduino-based switch works; it doesn't "loop out" the PPM stream, it only adds a PPM stream for one channel which the TX is then expected to mix to the channel being used to control the APM Mode Selection.

While I still believe in the KISS principle, and like my design better for its simplicity, I think our major disagreement really revolves around which is more intuitive to use blind; a rotary knob or pushbutton switches. This is a debate which has plagued designers of electronics since the dawn of electronics; I don't think we're going to definitively resolve it for all time over this one little project. ;)

[/EDIT]

So I decided to employ the KISS principle; keep it Analog, keep it within the grasp of ordinary tinkerers, and make it the best I can with off-the-shelf components. I wanted to be able to take it off my TX with a minumum of fuss, so it needed to be self-contained. After much consideration, I formulated a design that was very simple and adaptable which anyone with basic hobbyist fabrication skills and tools should be able to duplicate.

This was the result.

THE CIRCUIT:

Alternate Circuit with TrimPots:

PARTS LIST:

Radio Shack

$3.49 (1) Radio Shack # 270-1801 3" x 2" x 1" plastic Project Enclosure

$2.99 (1) Radio Shack # 274-0433 1" Red Insert Control Knob

$3.49 (1) Radio Shack # 275-0034 2-Pole, 6-Position Rotary Switch

    OPTIONAL: $14.49 (1) Radio Shack # 271-312 Resistor Assortment (Jeez - I remember when this was $3.99, and STILL way overpriced)

Generic Parts

(1) 22Ω (Red, Red, Black) 1/8W or 1/4 W Resistor

(2) 1500Ω (Brown, Green, Red) 1/8W or 1/4 W Resistors

(3) 820Ω (Grey, Red, Brown) 1/8W or 1/4 W Resistors

These are available in the optional kit above if you don't have them in your parts bin; otherwise, there are several vendors on eBay who Sell small lots (50-100 pcs) of individual values for $1-4/lot.The pin spacing on the switch lends itself to substituting 1/4w SMD resistors, I just happened to be out of 820Ω at the moment, so used regular axial-lead resistors.

$3.29 (6) PLCC-6 5050 White 3-Chip White LEDs ( Be SURE to get 3-CHIP White LEDs to match the 22Ω ballast resistor; I bought these: www.ebay.com/itm/300939331755)

$2.00 (2) 6"-10" Servo Wire W/Female Plug

$1.00 (1) 3-Pin header or Male Servo Plug $2.00

(6) Lego Part # 362201 1x3 Brick in White (I snurched grey ones from my son's 20-ish pounds huge collection)

(1) 1" x 3" flat scrap of clear blister-pack plastic (From the top of a Cake Box or similar thickness)

(1) 1 sheet Glossy Photo Paper

Alternate Configuration:

(4) 10KΩ 1/2W 25-Turn Trimpots, Series 3296 (I bought mine here: )

Add a couple bucks for paper and incidentals and we're right around the $20 mark; plus cost of resistors if you don't have them in your parts bin. (Shame on you. ;-) )

Theory of Operation:

I wanted my design to be able to work with any TX; so I chose the simple black box, which is JUST big enough for the components we'll be using. I've designed my Mode Switch around a Left-hand side installation for certain reasons; I want to be able to use it without taking my hand off the cyclic (RH in my case) stick, and placing it on the side means I can operate it with fingers and still keep a thumb on the Yaw/Throttle stick. I chose the big red knob as an homage to Jean-Baptiste Emmanuel Zorg and his "little red button". ; -)

Due to the leverage of the large knob, one can easily operate it with fingertips; the pronounced pointer on the knob means that once one gets used to it, one can actually tell by FEEL what mode s/he's in without having to look at the display.

I've placed my STABILIZE and RTL modes at the top and bottom of the range on purpose; in time of panic, no thinking or taking your eyes off the craft is needed, all you need to know is to flip it all the way up or all the way down to be at whichever "Safety" mode you want. If the Mode Switch fails, either by shorting out or by going open/being unplugged, it will go directly to one of those two safety modes.

By choosing WHITE LEDs, I greatly simplify my design. When using colored LEDs, one must drive them at different current values to achieve similar PERCEIVED brightness; this would mean a separate ballast resistor for each indicator light. This design allows me to use a single current-limiting resistor for all indicators; color coding is done along with labeling at time of printing the Indicator Screen.

Max Levine's design used series-paired resistors to arrived at a value for R2-R5 of 850Ω; my design substitutes the closest standard resistor value, 820Ω. I've tested this array with both my Turnigy 9x and 9XR transmitters; results in MP are flawless. Obviously, if you are going to use this design on another model of radio, you may need to change these values to match your different hardware.

For Reference:

The Turnigy design uses a 5KΩ potentiometer, with +5V at the end of the scale and GND at the beginning. The +5V on the outer tab of the potentiometer is connected direct to the 7805 regulator with no ballast resistor, and the opposite outer tab is connected directly to GND. This means we can use the same +5V & GND applied to the outer tabs of the potentiometer to power our indicator LEDs; our entire setup can be operated through a single 3-wire servo cable!

If you are going to use this design on another TX, you need to make sure of the following:

1) That B+ voltage for the potentiometer has no resistor in circuit with the power source, whatever voltage it is. If there is one, you'll need to run a separate B+ to power the LED indicator circuit.

2) That GND for the potentiometer has no resistor in the circuit to main chassis GND; often if they use a ballast resistor in the B+ circuit, they often also use one in the GND circuit as well. If they do, you'll need to run a separate GND for the LED indicator circuit.

      The reason this is important is this: If there is/are ballast resistors in the source voltage to the potentiometer, the current draw from the LED indicator circuit will cause a voltage drop which will affect the signal output. NOT GOOD!

3) My LED indicator circuit is designed to operate from a 5V REGULATED power source; the 7805 Regulator which feeds B+ to the potentiometer. If your TX provides a different voltage, you'll need to substitute a different value for ballast resistor R1.

These particular LEDs require a max of 60ma (3 Chips x 20ma ea); the 22Ω ballast resistor drives them at approx 55-57ma from a +5V source for maximum brightness. This means there is VERY little wiggle room for varying voltage above 5V.

This site will give you assistance calculating the correct ballast resistor: http://ledcalc.com (They also have Series and Parallel calculators available)

Your configuration is:

Supply Voltage: YOUR Measured Supply Voltage

LED Forward Voltage/Voltage Drop: 3.2-3.4V

LED Current: 60 Milliamps

THE BUILD:

First, we need to build the Lightbox. I chose 1x3 Lego Bricks because they are readily available, and I know they will fit in the smallest project enclosure Radio Shack sells. You can buy them individually from the Lego Store if you have one in your local Shopping Maul™ otherwise, they're $0.20 each from the Lego Store online. For convenience, I've snapped them into a piece of Lego "base plate"; this gives me a bit of leverage when working with them, and keeps them from flying away. As much.

These 1x3 bricks are just the right size; unfortunately, they have these little pins that get in our way. Some variants have this webbing between the pins and the sidewalls as well; it needs to be cut through to separate it...

then we place narrow pliers so they bottom out inside like so...

And squeeze, breaking one of the pins loose.

After that, we can grip the remaining pin like so, and rock back & forth until it breaks.

This gets us to a point where we can quickly remove the last bits of stubborm plastic with a burr on a Dremel...

And now the final form of our lightbox begins to emerge.

Next we have to drill holes for the LED wires to come through; I used a 1mm drill on my Dremel.

Drill one hole close to each side of the center peg as shown; do this for each of the 6 Lego bricks.

Now it's time to turn the bricks into one single assembly; if you haven't already, you really need to plug them into a piece of flat panel now to keep them flat and square. Be very careful with the Super Glue; more than a couple drops on each seam and you'll glue your lightbox to the flat panel.

Use the pickup tube from your CA Accelerant to place just a drop precisely on the seam...

Then, when the CA is cured, remove the assembly and repeat both steps on the seams on the opposite side.

Center the lightbox between the two screw stanchions as shown, then use a knife to precisely mark the location on the top edge of the sidewall...

Then use those marks to align the lightbox on the outside so you can scribe the cutout with your knife. I used modeler's clamps (Rubber-jawed plastic clothespin-looking things) to hold it in place so I could scribe the bottom edge.

Now it's time to cut. Use the thinnest cutoff wheel you have, and set the speed as slow as you can without stalling the motor. Cut slowly and carefully; patience here pays off in a nice-looking end product. If you go too fast, the cutting action turns to friction/heat/melting action, and you'll distort the plastic and get bits of melted plastic everywhere. If your hands are steady enough, they do make sawblades for the Dremel; I find that the sanding action of the cutoff wheels makes a much smoother edge with my not-so-steady hand.

Here's the rough cutout; you are going to cut through the sidewall and two of 4 standoffs made for a PC Board in the bottom of the enclosure. I know this looks like total bunk, but that waste will actually just snap off with a little finger pressure.

In order to make it fit, you'll need to cut the lid to match; not a lot, just through the lip and almost flush with the underside of the lid. This step and the next one are very fiddly; a lot of trial fit, sand, trial fit, sand, trial fit, sand etc. This pic is from later, after I'd already installed the switch and wired the lightbox; but it's the best view I have of this work. Here you can also see the selector brush on the switch contacting Position 1.

Now is where you'll need to do your smoothing and final finishing of the opening; I use medium and fine emery boards to make short work of it. I recommend the thick, wide foam-backed ones... if you don't know what I'm talking about, ask any female. Yes, she will know. If you're careful and patient, you'll get results like this.

This is what our LEDs look like up close; the corner with a notch in it marks the leads for the cathode (GND) side.

We're going to need to solder across all three pins on each side of the LED, to power all 3 chips inside. I form my leads like this to facilitate that. The GND side lead is made of a single strand of regular automotive-type hookup wire. I'd guess approx 28 ga or 0.2mm; pretty much as thin as you can handle without fear of breaking it. All the rest of my wires are salvaged from old VGA signal cables or the modder-style round IDE Hard Drive cables. Leads don't need to be more than 100mm long or so.

Here's the GND side of the LED...

and the finished LED. Only 5 more to go. When you're done building, you'll need to thread the wires through the holes in the lightbox; I found that molding imperfections in the LEDs meant a few of them needed a LITTLE sanding with an emery board on the sides WITHOUT WIRES to fit inside the cavity. Oh well; so much for calculations and MFR Specifications. ;)

When you're done, the LEDs should fit flat against the bottom of the cavity like so...

and wires should be routed like so. Notice how I have all the GND leads drawn together into a single bundle, then nipped off leaving approx 4mm or so; this is to solder a single insulated GND wire to.

Here you can see where I've tinned the wires and soldered the GND wire in place; now lace the wires between the Lego pegs like so...

Then apply hot glue like so to insulate and provide strain relief on the wires.

Here I've wired up the indicator LEDs to one half of the 6-Position switch; notice the 22Ω LED Ballast Resistor soldered to the COMMON tab in the inner ring of tabs.

Also note that I've soldered a GND wire to the metal frame of the switch for noise rejection. This wire will be included with the other GND connections once the MODE selection half of the switch is done.

Ignore the fact that the lightbox is glued down in this photo; the next morning I made a major revision and had to tear it all apart again.

Here is the start of the major revision; making a lens out of the flat blister-pack plastic. Lay it up against the opening to scribe marks to get the width EXACTLY right...

then cut against a straightedge to get the perfect fit.

Here I'm laying out to get the length of the lens just right. You can also see where I've undercut the body of the sidewall with my Dremel and cutoff wheels and burr to thin it out around the lens; this is a VERY painstaking process, and unless you already know how to do it and feel confident in doing it, I'm not going to recommend you try it.

I'm not even sure how to explain the process; it is just SO fiddly. Bottom line is it's PURELY cosmetic; without this, the lightbox will just be inset a few mm deeper.

Here I'm test fitting the lightbox with my lens in preparation for hot-gluing the lightbox in place. You can easily see how the undercut I made works. It should also be evident how things would look if you don't make the undercut; not REALLY a lot of difference. Make sure to include a slip of paper between the lightbox and the lens; believe it or not, that little bit of difference can make the lens bow out noticeably and look bad.

Here we have the lightbox glued in place; in retrospect, it probably would have been better to flip it over so the wires point down. They tend to bunch up between the light box and the switch unless routed exactly right.

Here I've got the switch installed in the lid; I located it dead center in the middle of the box by making an X with a ruler laid across the screw holes. I later found that with the lightbox in this location it hits against the switch ever so slightly, so I'd recommend moving it about 3-5mm further down (away from the side with the lightbox) for clearance.

You can see now I've wired up the Servo wire and resistors; the 22Ω LED ballast resistor now connects to Pin 1 of the Mode Select side of the switch for +5V, then 1500Ω, 820Ω, 820Ω, 820Ω, 1500Ω resistors.

I lay out the resistors with bent legs pointing down alternating against legs pointing up just for clearance. Note also that I've changed the pinout of the servo wire plug to match the normal layout of a potentiometer; this serves to remind me NOT to plug it into a servo port.

Now it's time to do the modding inside the radio; here I have everything plugged into the original Potentiometer to test that the action goes in the correct direction. On this pot in the Turnigy 9XR, GND is the yellow wire. My male connector is just a 3-pin section of flat 0.100" header with heat shrink tubing; use clear heat shrink so you can still see the color coding of the wires.

Here I've moved the connection out of the way so you can see the wiring of the pigtail to the potentiometer. As long as you put the SIGNAL wire in the center, it doesn't matter which way it gets plugged in; all that will happen is that the action will be backwards; you can't harm anything.

If you get the Mode Switch backwards, it'll work backwards too, but the LEDs will be reverse-biased diodes, so they just won't light up. If you get it so the Mode Switch action works opposite of the LED indicators, you can either swap everything between the B+ and GND pins of the Mode select side of the switch, or alternately, you can just program in a Servo Reverse on that channel on your Transmitter.

And here is the last piece of the puzzle; the Indicator Screen. As you can see, I've printed this up using an ordinary BubbleJet printer; I found that on plain paper like this, it's useable but grainy looking.

I made it much better by using Glossy Photo Paper; after MUCH trial and error, I made one which looks quite good both lit up and against ambient light.

Here are some pointers:

First, use the CHEAPEST glossy photo paper you can find; the stuff from the Dollar store is good. You WANT the cheap stuff because it is thinner and allows more light to pass through; in photography, this is a bad thing; here it works in your favor.

Glossy Photo paper is VERY delicate and easy to scratch; I put a layer of 2" wide clear packing tape over the printed screen before cutting it out to protect it from scratches. Leave a little plain white paper on each end as in the photo to help it all lie flat, and to make it easier to get it centered perfectly.

Set your printer to Glossy paper, highest quality mode, and VIVID color. This produces the best contrast and clearest text and the blacks are blacker.

An alternative would be to use a color laser printer; I'm certain one could get very fine, clear text with that even on plain paper. My color laser is down due to expensive cartridges or I'd have tested that as well.

Either way, you need to make sure you print in SCALED PRINTING at 100% scale to get them to print out actual size; if you can't get that to work with your usual photo viewer, try opening the image in MS Paint, then go to Print / Page Setup and select SCALED Printing, 100% scale, then APPLY.

I've attached templates with MY setup, MY Setup with no color, just the plain block outline with colors, and the plain block outline with no colors, as well as a "colors only" background so you can attempt printing text with a B/W laser printer and make the colors with a color Bubble-Jet.

With all these options it should be easy to select a starting point that will give you the results you like; you can use the Text Tool in MS Paint to create different text for different modes, or you can refill the blocks with different colors if you prefer. I DID, however, spend a fair amount of time testing and selecting these specific colors to be as clearly different from each other as possible both illuminated and in ambient light.

I used ARIAL NARROW Font, BOLDED, in 10 pt for the short words and 8 pt for the longer words.

Closing Notes:

As you can see making different flight modes is easy; just print up a new screen and slip it in under the lens.

The Radio Shack case comes with Cad-plated (silver color) Philips flat-heat screws; I've replaced them with 3mm x 10mm Socket Head Cap Screws (DuBro Part # 2123 or available from RTL Fasteners here: ) for a more Industrial look.

I'm not going to get into mounting the thing; that is something that will vary greatly with a user's preference. My test setup is just held in place with a little servo tape until I decide on final exact placement. I find this is MORE than stable enough for everyday use; I may or may not fabricate a bracket for easy removal.

All right; time to get your parts and snurch some Legos from the little ones!

Cheers, and Happy Modding,

mnem

I survived ANOTHER Build Blog.

Simple%20Flight%20Mode%20Switch%20Schematic.jpg

Simple%20Flight%20Mode%20Switch%20Schematic%20Rev%200.1.jpg

Mode%20Switch%20Screen%20Rev%2010.bmp

Mode%20Switch%20Screen%20Rev%2011.bmp

Mode%20Switch%20Screen%20Rev%2012.bmp

Mode%20Switch%20Screen%20Rev%2015.bmp

Mode%20Switch%20Screen%20Rev%2016.bmp

Views: 5840

Comment by Eli Cohen on May 8, 2014 at 4:50pm

gaahhhhhh, this is awesome :)

Comment by Skippy on May 8, 2014 at 5:01pm

Thanks for the post.  Good work.

Comment by Gary McCray on May 8, 2014 at 5:02pm

Wow, Really Great Job Paul,

This should get the best construction article of the year award.

A truly excellent design and a very thorough and easy to follow construction article.

For a very useful to us enhancement.

I will definitely build one for myself.

Should be able to get it to work with any transmitter that has an analog potentiometer knob channel you can bypass.

If I could, I would put this in the DIYDrones wiki for you, but since that isn't an option (for me anyway) I would be happy to put it on my dronesarefun informational website if you would like.

At least there it will be easily accessible long after this Blog has faded from the bottom of the page.

Super design and super article, thank you,

Gary


Developer
Comment by Randy on May 8, 2014 at 6:38pm

That's really great.  It somehow reminds me of the '60s Star Trek computer.

Comment by Ben Boughton on May 8, 2014 at 6:57pm
Id pay $50 for one of those finished and ready to bolt onto my 9x.

Developer
Comment by Max Levine on May 8, 2014 at 7:13pm

NICE !!! True 100% DIY, missing it here.

Comment by mP1 on May 8, 2014 at 7:28pm

The dx8 switch is not divided into 6 sections, so its difficult to count any clicks and move to another flight mode. I think a board with 6 buttons might be nicer.

Comment by Pedals2Paddles on May 8, 2014 at 7:44pm

You sir, are brilliant. 

Comment by Will Snodgrass on May 8, 2014 at 7:45pm

Could you send me a msg? I tried but forgot I had to add you as a friend first, so you got a blank friend request. 


Moderator
Comment by Michael Pursifull on May 8, 2014 at 8:26pm
Nicely done, bravo.

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2017   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service