This project uses the TinyLily Mini or TinyDuino platform to add functional navigation lights to your flying radio control model.
The red and green LEDs (A) on the left and right wingtips respectively remain constantly on. The white LEDS (D) at the backs of the wingtips blink quickly, while the white LED (E) at the tail blinks at a slower rate. The red LEDS (B) on the top rear and bottom front of the fuselage pulse slowly to mimic a rotating beacon. Finally, the two white LEDs (C) at the front center of each wing can be controlled by an RC channel from your receiver, or set to be constantly on or off in the Arduino code.
(Photo Credit: http://pages.suddenlink.net/billwhite/RCNavLights.htm)
The board will be powered by your RC receiver through a servo connector. The switchable Landing Lights will also be controlled through the same connector.
In this tutorial I am using a TinyLily Mini Processor and USB adapter, however you could alternatively use a TinyDuino Processor, USB Board, and Proto Board.
To learn more about the TinyDuino Platform, click here
To learn more about the TinyLily Mini Platform, click here
Pins Used: LED letters correspond to illustration above.
If you're using a servo wire that is yellow, red and brown, yellow is signal, red is +5V, and brown is ground. If your servo wire is white, red and black, white is signal, red is +5V, and black is ground.
2. Program: Once everything is connected as outlined in the above step, press the upload button near the top left of the Arduino window. The code should compile and program onto your processor board. This may take a few seconds.
3. Solder Servo Connector: Once the processor is programmed, it is time to start soldering! First, solder the servo connector wires. If you're using a TinyLily Mini, you will be soldering on the processor board itself. If you are using a TinyDuino, you will be soldering to the proto shield. In either case, the power wire will be soldered to VCC, the ground wire will be soldered to GND, and the signal wire will be soldered to Digital pin 2.
3A. If you're using a servo wire that is yellow, red, and brown: yellow is signal, red is +5V, and brown is ground. If your servo wire is white, red, and black: white is signal, red is +5V, and black is ground.
5. Solder Resistors to LEDs: LEDs require a resistor soldered to them in series to prevent damage to the LED (i.e. current limiting resistor). You can buy LEDs that are pre-wired with a current limiting resistor already added, but if you have normal LEDs, you will need to add resistors yourself.
5A. To Add Resistors Yourself: Trim one lead on the resistor to be about 5mm long, and trim the long leg on the LED to be about the same length. The long LED leg is the positive lead. Solder the trimmed leads together. Do this to all of the LEDs and put heat shrink tubing over the other lead to prevent it from toughing the solder joint.
6. Attach Wires to LEDs: Trim the leads on the LEDs and resistors so that there is about 5mm exposed, and solder some thin wire to each lead. It would be best to use two different colors of wire, one for the positive wire, and one for ground. Measure the wire against the aircraft wings and fuselage and give yourself a little extra to work with. you can trim excess wire later. Use the illustration above to plan out where all of the LEDs should be mounted on the aircraft. cover all solder joints and exposed leads with heat shrink tubing.
7. Route Wires and Mount LEDs: Once all LEDs have resistors, and wires that are roughly the correct length for their position, you can begin to mount them and route the wires through the wing and fuselage. It helps to use a stick or a stiff rod to fish the wires through tight spaces. You may need to poke holes for LEDs to stick out of. Fasten them with hot glue. Route all of the wires to the location where you want to mount your processor board. This should be close to your RC receiver so that it can be connected by the servo cable.
8. Solder LED Connections: Now, solder the wires to the processor board. Group all of the ground wires together and solder them to the GND terminals on the processor (TinyLily Mini) or Proto Board (TinyDuino). Next, solder both positive wires for the red and green wingtip LEDs to the VCC terminal. Solder both positive wires for the white wingtip LEDs to digital pin 1, the positive wire for the white tail LED to analog pin 0, both positive wires for the red LEDs on the top and bottom of the fuselage to digital pin 3, and both positive LEDs for the white LEDs in the middle of the wing can be attached to digital Pin 0. Pins used are listed about for reference.
9. Fly! Once everything is soldered and the servo connector is plugged into a spare channel on your receiver, you're done! When power is supplied to the receiver, the lights will begin to operate. Flipping the switch on your transmitter that corresponds to the receiver channel that the processor is plugged into will turn the Landing Lights on and off.
Want to know more? You know you do, so click the pic above and it'll send you on your way to the shop link!