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.
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.
Learn more about the TinyDuino Platform
Learn more about the TinyLily Mini Platform
Technical DetailsPower Requirements
- Voltage: 5V
Pins Used: LED letters correspond to the illustration above.
- GND - Ground for servo connector and LEDs.
- VCC - +5V power from servo connector, and to red and green wingtip LEDs.
- Digital 0 - Positive connection for Landing Lights (C)
- Digital 1 - Positive connection for white Wingtip Strobe Lights (D)
- Digital 2 - Senses any change from the servo signal wire.
- Digital 3 - Positive connection for red pulsing beacons (B)
- Analog 0 - Positive connection for Tail Strobe Light (E)
Dimensions
- TinyDuino: 20mm x 20mm (0.79 inches x 0.79 inches)
- TinyLily Mini: 14mm (0.55 inches) diameter
- TinyDuino Total Weight: 2g (0.018oz.)
- TinyLily Mini Total Weight: 0.5g (0.07oz.
NOTE: Soldering is required for this tutorial
AssemblyIf 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.
Step 1Setup: If you haven't already, download the Arduino IDE from here, and download the RC Navigation Light Code below and unzip the folder. Connect your processor board to the USB TinyShield and connect them to your computer with a micro USB cable. Open the RC Navigation Code in the Arduino IDE and, under the "Tools" tab, select "Arduino Pro or Pro Mini" for Board, and "Atmega 328 (3.3, 8MHz)" for Processor. For Port, select whichever com port your board is plugged into. If you are unsure, you can check the Device Manager.
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.
Step 3Solder 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.
3AIf 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.
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.
4ATo 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 touching the solder joint.
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.
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.
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. The pins used are listed for reference.
Step 8Fly! 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!
Comments