Wednesday, November 5, 2014

APM Octocopter Build First Test Flight


This is the first test flight of our 1020-mm Octocopter build. It flew for 21 minutes on a charge. The batteries (2 x 5200 mAh 6S) are brand new, so maybe flight time will increase a little after the batteries are broken in a little.

Total weight (including batteries, but no camera/gimbal payload yet) is 5.0 kg.

Frame: Tarot T15
Flight Control: APM 2.6 with ArduCopter V3.2-rc14

Monday, October 7, 2013

FPV Camera Wiring and Power Filtering

Here's a cable we made for our SecurityCamera2000 CMQ1993X FPV Camera (also works with the PZ0420). This cable powers the camera from a 3S LiPo battery, filters the power with a capacitor, diode, and ferrite choke, and sends signal and power to your OSD or Video Tx.

Make sure to get the wiring connections right: capacitors and diodes are polar devices. Also, they are heat sensitive, so make your solder joints quickly, before the devices have time to get super hot. Cover all solder joints and exposed wires with heat shrink to avoid a short that could shut down your whole aircraft and make it fall out of the sky, or even start a battery fire! Note also that power thru the diode in this circuit is only powering the camera; the diode should not be powering anything else besides the camera, as it may overheat and burn out.

1. Batt power (red) to positive (no white stripe) side of diode.
2. Negative (white stripe) side of diode to Positive (no white stripe) side of capacitor.
2. Negative (white stripe) side of capacitor to Batt GND.
3. Camera power (red) to Positive side of capacitor.
4. Camera GND (black) to Negative side of capacitor.
5. Camera signal (yellow) to OSD or Video Tx.
6. GND (black) from Negative side of capacitor to OSD or Video Tx GND reference (important: this wire runs straight to the OSD or Video Tx; don't use a ground reference coming via some other indirect connection that will result in a corrupted video image).

The resulting circuit is the same as the power filter for the camera in the project described here: http://www.rcmodelreviews.com/fpvbackpack02.shtml

And in the schematic at http://www.rcmodelreviews.com/filestore/Schematic.pdf, the upper left hand portion is this exact same circuit, with the capacitor and diode filtering the power for the camera.

Sunday, September 29, 2013

Longer Range FPV for Cheap

I've been experimenting with ways to improve FPV range inexpensively, and here's what I've come up with:

1. I replaced the 5.8 GHz clover leaf antenna on my FatShark goggles with a helical antenna (and learned to use my own head as an antenna tracker).

2. I boosted my 2.4 GHz radio control signal with a 2-Watt WiFi booster.

The Antenna


I used this 7-turn Right Hand Circular Polarized (RHCP) helical antenna from BEVRC. It's cheap (only about $16) and has a 10 dB gain. I found this works better than using a patch antenna because interference from reflected signal is less of a problem. Make sure the direction of polarization matches that of the cloverleaf antenna on your aircraft.
Cheap 5.8 GHz RHCP 7-turn helical antenna from BEVRC
This antenna gives excellent range as long as I point it directly at the aircraft and it has line-of-sight. Reception through trees is still quite poor. It takes some practice to get used to pointing your head at the aircraft while flying FPV, but soon it becomes second nature.

WiFi Signal Booster


This cheap 2-Watt WiFi signal booster works with any 2.4 GHz radio, just connect it between tx module and antenna with the included coax cable.

Cheap 2-Watt WiFi Signal Booster

The WiFi signal booster came with a wall adapter for power. I cut the output cord off the wall adapter and soldered it to the outputs of a SkyRC 10-Amp BEC, which in turn is powered from the 3S transmitter LiPo. I installed the signal booster and BEC to the back of my FlySky TH9X radio using zip ties:

WiFi signal booster and BEC installed on TH9X radio


Range Test


In order to test the FPV range, I took a flight up in the mountains. The quadcopter got 2.3 km away and 600 meters up from the launch point before its battery was half exhausted and I had to turn it back. But the video and RC control were still great at that distance, so I was unable to determine the absolute range of this setup. Enjoy the video recovered from the GoPro:




Other Hardware Used


Airframe: ArduPhantom (DJI Phantom case, stock ESC, props, and battery)
Motors: T-Motor MN2214 upgrade for DJI Phantom
Autopilot: 3DR APM 2.5 with ArduCopter 3.0.1 firmware
Gimbal: Hummer 2-axis brushless gimbal for DJI Phantom
Camera: GoPro Hero 3 Silver
GPS: 3DR ublox LEA-6H
Telemetry: 3DR 433 MHz
R/C: FlySky TH9X(ER9X FW) + 2.4GHz FrSky DJT module, V8R7-II rx
FPV: ImmersionRC 5.8GHz 600mA tx + CL antenna, FatShark Predator goggles
Ground station: Mavbot Finder

Tuesday, April 9, 2013

Build Log: "ArduPhantom" APM ArduCopter in a DJI Phantom Airframe

The DJI Phantom has some nice air frame features: A sturdy plastic injection molded polycarbonate enclosure that keeps out light rain and resists hard impacts very well; Nice motors with simple, easy to use prop-mounts that are very unlikely to come loose in flight or get bent or broken in a crash; and very light-weight ESCs that have super bright LEDs on them for easy visual orientation at great distance, and superb night flying (Figure 1).
Figure 1: DJI Phantom Night Flying


I also wanted a very small, lightweight, and extremely rugged FPV platform that I could carry in my backpack when I go hiking. The DJI Phantom air frame seems perfect for this, as the propellers are extremely easy and fast to remove, and once removed the rest of the aircraft can be stuffed in my backpack as is, and is sturdy enough to not worry about it being damaged during the trip.

But, since I'm a fan of ArduPilot, and like to be able to perform complex auto missions and make modifications to the code, I decided to build a DJI Phantom air frame with an APM flight controller. The result was very successful, and I encourage you to do the same, following the instructions below.

Materials

For this build, you will need the following parts. Fortunately, the DJI replacement parts needed can all be purchased quite cheaply. My budget for this entire project was about $600.

1x DJI Phantom replacement case kit
1x DJI Phantom replacement screw kit
1x DJI Phantom connectors kit
2x DJI Phantom ESCs (green)
2x DJI Phantom ESCs (red)
4x DJI Phantom motors
2x DJI Phantom props (set of 1 CCW and 1 CW)
1x DJI Phantom landing gear
1x APM 2.5
1x 3DR Power Module
1x 3DR GPS module

Power System Wiring

First you'll need to mount the ESCs and motors in the case, and wire up the ESCs to the output side of the power module. When mounting the ESCs, be sure the green ones are at the front end of the aircraft (the battery door end), and the red ESCs in back. If you put the red ESCs in front instead, then the signal leads won't reach, because they are of different lengths.

There is not much space inside the case for a lot of wiring and connectors, so I just cut off the XT60 connector from the output side of the APM power module, and soldered the connection directly, insulating with heat shrink of course. If you plan to use an internal battery, make sure the wiring doesn't cross over the central area where the battery goes, because it will snag on the battery when you take it in or out, and it's already a fairly tight fit for the battery as is.

Also, be sure to keep all the wiring as low in the bottom of the case as possible, so the magnetic fields from high-current wires will not interfere with the autopilot's magnetometer (Figure 2).
Figure 2: Power Module and Power System Wiring

Mounting APM, GPS, and RC Receiver

At first I velcro mounted the autopilot, GPS, and receiver to a thin wood plate which I screwed on to the four screw bosses protruding from the case bottom. This held it high enough above the power wiring below to avoid magnetic interference. However, I found that this piece of wood was basically a sounding board for vibration. Even adding foam between it and the autopilot wasn't enough to reduce the vibration to a reasonable level to get good accelerometer readings (Figure 3).
Figure 3: How NOT to mount your APM


Later I found that a soft plastic cottage cheese lid made of Low-Density Polyethylene (LDPE) is a great way to mount the APM, since the soft flexible material helps to dampen vibrations (Figure 4).
Figure 4: APM mounted on LDPE food lid greatly reduces vibration

Once you get the case on you won't want to remove those 16 screws every time you need to upload the latest version of ArduCopter, or download a flight log. So you should probably make a short USB cable that permanently connects to the APM, as shown connected in figures 3 and 4 above.

LED Connection

You won't be able to see the status of the armed and GPS lock LEDs once the APM is enclosed in the case, so you'll want to connect a couple external LEDs that you can view through the tail light port on the Phantom case. Connect one LED to A4 and one to A6 (you can also connect a buzzer to A5 if you want). Signal goes to the + side of the LED, and ground to the - side. Remember to include resistors in series with each LED to drop the voltage to the proper level for the LEDs you are using (Figure 5).
Figure 5: Armed and GPS fix LEDs visible through tailight port
 You'll also need to go into Mission Planner and change the LED_MODE to 11 (the default is 9 for some reason).

Final Assembly

You can now put the top of the case on (attached with the twelve M2.5x5 and four M2.0x8 screws from your screw pack). Once you calibrate and configure everything in Mission Planner then you should be ready to bolt on the props and go fly (Figure 6).
  
Figure 6: Ready to Fly

Flight Testing

I added a GoPro, a 5.8 GHz video transmitter, and a 3DR telemetry module for some FPV flying during a Sunday hike in the mountains. Here's the results of the first test:


It flies very nicely, even in auto modes. The main issue is shakiness and vibration of the recorded video. Hopefully I can reduce that with some tuning, better camera mounting, and perhaps stiffer props.

Saturday, December 1, 2012

Build Log: Upgrade your FlySky TH9X to the FrSky DJT module

The FlySky TH9X transmitter is a great value in a 2.4 GHz radio. As explained previously, it’s also sold rebranded as the Turnigy 9X, and the Imax 9X, and these radios have proven extremely popular and reliable over the years. The 9X radios do have some drawbacks, but most of them can be addressed with a few easy and cheap upgrades. In this build log we show you how to replace the 9X’s stock RF module with FrSky’s DJT FHSS system.

The stock module from FlySky is OK if you’re just controlling park fliers short-range (out to about 500 meters or so), but its Automatic Frequency Hopping Digital System (AFHDS) technology is fairly lacking if you want better range and robustness to interference. The AFHDS basically just searches for a free channel and uses that. Which usually works fine, but it could go disastrously wrong, for example if a new source of external interference arrives after the system has already started up and chosen its transmit channels.

The DJT module (Figure 1) by FrSky (pronounced “Free Sky”) is a true Frequency Hopping Spread Spectrum (FHSS) system that continuously jumps between channels so that it cannot be affected by interference on any particular set of channels. With this system and one of FrSky’s “full range” receivers you can expect to get about 1.5 km of range.
Figure 1: The FrSky DJT two-way telemetry FHSS module

The DJT is also a two-way telemetry system, which means it not only transmits an RC control signal to the aircraft, it also receives telemetry data back, as long as you are using one of FrSky’s telemetry receivers. The telemetry data would normally come from sensors connected through a sensor hub to your receiver, such as altitude, GPS position, compass, accelerometer, RPM, temperature, battery level, etc.

But if you get a FrSky receiver with Received Signal Strength Indication (RSSI), such the D8R-XP (Figure 2), you can make good use of the two-way telemetry feature even without any sensors attached: The DJT module on your Tx will start beeping to warn you when your radio signal is getting low. That way you’ll know when you’re starting to fly too far away, and it’s time to turn back!
Figure 2: FrSky D8R-XP telemetry receiver

Installation Steps

The FlySky Tx almost fits modules designed to be compatible with JR radios, but unfortunately not quite: in order to change to a non-stock module, you’ll first have to cut down the raised area of plastic that supports the five module pins. This supporting area will need to be cut back until it’s no more than 2.0 mm high (or just cut it away altogether, because once it’s cut back it won’t be doing anything to support the pins anyway).

1. Unplug and remove the battery, and remove the stock module. Once the stock module is out, you’ll see the five pins at the lower right of the module compartment, supported by the raised plastic area. This raised plastic is the only thing getting in the way of installing a new module.

2. Get the pins out of the way. When you’re cutting the raised area of plastic, you’ll want to move the pins themselves out of the way, so as not to damage them. First open the case of your Tx by removing the six screws at the back (Figure 3).
Figure 3: Remove 6 screws to open case of FlySky TH9X radio
Spread the two halves of the case apart carefully and not too far, so you don’t break any wires connecting them (Figure 4). At this point it may be a good idea to take some photos of the circuit boards inside, just in case you do break a wire and need to know where to solder it back again.
Figure 4: FlySky TH9X with case open
Now locate the back circuit board, and remove the four screws holding it in place (Figure 5).
Figure 5: Remove 4 screws from FlySky TH9X back circuit board
Pull the circuit board back gently, just enough so the five module pins are clear of the back of the radio. The wires that connect it to various switches will prevent you from moving it back very far (Figure 6).
Figure 6: Pull back circuit board to clear module pins away from area you'll be cutting.
3. Cut the plastic support to 2.0 mm high or less. With the module pins completely out of the way, use a very sharp knife, wire cutters, or a power tool like a Dremel to cut back the plastic support area until it is protruding no more than 2.0 mm into the module compartment (Figure 7).
Figure 7: Cut plastic support for module pins down to 2.0 mm high or less
4. Replace the back circuit board and tighten the screws (Figure 8). Only tighten the screws very loosely at first, so the circuit board has some wiggle room to allow you to get the precise alignment for fitting the modules.
Figure 8: Replace the back circuit board but don't tighten screws yet
Test insertion of both the stock module and the FrSky module (Figure 9) to make sure they seat easily and without any resistance. If either doesn’t fit, don’t force it, or you could bend or break the pins. The cause is either that the back circuit board is slightly out of alignment, or that you’ve slightly bent one of the pins.
Figure 9: FlySky Tx with FrSky DJT telemetry module installed
Make sure you repeatedly test the fit of both modules as you gradually tighten the four screws, because the board alignment will shift slightly as the screws tighten. If at any point you find that one or both modules won’t seat completely without resistance, then you’ll have to back the screws out again and start over to get the alignment perfectly correct.

5. Put the Tx case back together again, replacing the six screws. You’ll probably want to blow all the plastic dust you’ve generated out of the unit first though. Again, make sure both modules seat perfectly before putting the case back together.

Using the FrSky DJT System

We trust the FrSky DJT module and D8R-XP receiver will work great for you. You’ll get about 1.5 km range, telemetry, including RSSI, as well as a range check mode to make your pre-flight range check easier. I love the fact that the module beeps to tell you when the signal is getting weak, as it gives me great peace of mind to know I always have a strong signal while flying.

Using the DJT module and D8R-XP receiver is pretty straightforward. Binding, failsafe, range check, and setting for high-speed or regular servos is explained in the manual. But let us know if you have any questions.

Enjoy using your FlySky TH9X radio, now upgraded to the true FHSS system!

Wednesday, November 28, 2012

Build Log: Upgrading your FlySky TH9X Tx to a LiPo Battery


The FlySky TH9X transmitter (Figure 1) is a great value in a 2.4 GHz radio. It’s also sold rebranded as the Turnigy 9X, and the Imax 9X, and these radios have proven extremely popular and reliable over the years. For a fraction of the price of an 8-channel JR or Futaba product, you get a good quality, durable radio that should last you for many years.

Figure 1: The FlySky TH9X Tx and included 8-Ch Rx. This is a great radio for the price, and is very popular, also sold rebranded as the Turnigy 9X.
The 9X radios do have some drawbacks, but most of them can be addressed with a few easy and cheap upgrades. In this build log we show you how to replace the 9X’s stock AA battery holder with a 2700 mAh LiPo that will last hours between charges. If you’ve just purchased the 9X radio, this is one of the first things you’ll want to upgrade, otherwise you’ll be spending lots of money replacing AA batteries, and won’t be getting much flying time in between battery changes.

The LiPo we’ve chosen for this build is DualSky’s 2700 mAh transmitter LiPo (Figure 2). It’s specially designed to fit the tight space of a Tx battery compartment, and according to DualSky’s website you can even charge it using the the Tx’s existing charge port, as the cells are very carefully matched during production. However, in consideration of getting the maximum battery life cycles and due to the risk of fire if a cell is overcharged, we suggest using a balance charger designed for LiPos, and never exceeding 2.7A (1C) charge current.

Figure 2: DualSky’s 2700 mAh Tx LiPo battery is specially designed for JR transmitters, and also works well with the FlySky TH9X and the rebranded radios such as the Turnigy 9X.
If you do use your Tx’s built-in charge port instead of a balance charger, we’d recommend balancing the battery after every few charges. DualSky’s LiPoMate battery cell voltage meter and balancer (Figure 3) is great for this, and it’s keychain-sized, so you can carry it everywhere you fly.

Figure 3: DualSky’s LiPoMate Cell Volt Meter and Balancer. It tells you the voltage of each individual battery cell, and automatically balances them as you watch. Key chain sized, so it’s easy to carry with you to the field. Requires no battery or power source of its own, since it draws only minimal power and runs off the battery you’re balancing.

Installation Procedure:

1. Use the Existing Tx Power Connector, or Not
When you take the Tx LiPo battery out of its package, you will notice it has three connectors: The 4-pin white balance connector, the two-pin red charge connector, and the 2-pin white Tx power connector (Figure 4). The 2-pin white connector is the one that should be connected to power your transmitter. Unfortunately however, the power connector inside the TH9X’s battery compartment is 3-pinned. There are two solutions to this: The quick and easy way is to force the 2-pin connector on the battery into the 3-pin connector on the Tx. This works just fine, if you connect it with the correct polarity to the correct two pins. However it’s a messy solution, and if you ever have to take the battery out for some reason, you might forget which way to connect it back again (I would make a black mark with a Sharpie over the negative pin of both connectors, that way you’ll remember).

Figure 4: The DualSky Tx LiPo Battery comes with 3 Connectors: Tx power connector (white, two-pin), charge connector (red), and balance connector (white, four-pin).
Note that the red charge connector on the battery will fit the Tx just fine, but it sticks out too far into the battery compartment, and you risk puncturing the battery if you force it into the battery compartment with that connector in the way. Also, you’ll have to remove it again every time you want to charge the battery with your LiPo balance charger, and it can’t be removed with the battery in the way.

2. Replacing the Existing Connector with the one from the AA Battery Holder
Rather than force the 2-pin connector on the battery into the 3-pin connector in the battery compartment, we decided to replace it with the 3-pin connector from the original AA battery holder. This is a little more work, but the end result is more satisfactory, at least aesthetically, and the original 3-pin connector will only fit one way, so you won’t need to remember how to connect it.

To do this replacement, you’ll first need to cut the connector off the old AA battery holder, and also cut the white 2-pin connector off the Tx LiPo battery. You’ll need to observe extreme caution when working on the battery connector side, otherwise you will end up shorting the battery leads, which will damage the battery.
To avoid shorting the battery leads, always cut them one at a time, covering the first one securely with heat shrink before cutting the second lead (make sure the heat shrink shrinks to a small enough diameter that it stays tightly on the lead while you’re working, and won’t slide off; we used 1.5-mm heat shrink to tightly cover a single wire).

Secondly, you should always cut the red and black leads at different lengths, so that the exposed ends, and later the solder joins, can’t short out by touching each other. If you cut the black wire shorter on the battery side then cut the red wire shorter on the connector side, and vice versa. This way they will match up correctly for the solder join. After the join, the uninsulated areas will be staggered so they can’t touch each other, and the total wire length for red and black will be the same. Since the joins can’t touch each other, at the end you can use a single piece of heat shrink over both wires. But inspect the joins carefully to make sure they are far enough part, and that there is no insulation damage, to ensure there is no risk of a short.

Be sure to put the piece of heat shrink over both wires before making the solder joins, since the heat shrink won’t fit over the connector once they are made. It needs to be small enough to cover the joins tightly, so it won’t slide back and expose them; we used 2.5-mm heat shrink to cover both wires. But slide it as far as possible from where you are working so it won’t shrink prematurely from the heat of your soldering. If you’re fast at soldering this should be no problem, but you can also wrap a piece of thin bare copper wire around the wires between where you are soldering and the piece of heat shrink; that will absorb some of the heat.

You’ll probably want to clamp the wires in a solder helper as pictured (Figure 5) to hold them in place while you solder (in the picture notice the 1.5-mm heat shrink protecting the red wire that we’re not working with, and the 2.5-mm heat shrink ready to slide into place and then shrink once we’re finished with both joins). Make sure the teeth on the solder helper jaws aren’t going to squash or puncture the soft wire insulation. We added a couple extra layers of 5-mm heat shrink to the jaws on ours to prevent such damage from occurring.

Figure 5: Red wires in the solder helper ready to be tinned. Notice the black wire we’re not working on yet is protected from short with a temporary piece of 1.5-mm heat shrink, and a long piece of 2.5-mm heat shrink is positioned over both wires, ready to be slid over the joins and shrunk when we’re finished soldering. Also notice the 5-mm heat shrink over each side of each solder helper jaw, to protect the wire insulation from damage from the teeth. Multiple layers may be necessary, since silicone wire insulation is very soft.
To make a join, first tin the exposed end of each wire individually, then position the ends alongside each other with good contact between them, and add some heat until the solder on them fuses. When you’ve done the first join, wrap it with electrical tape before removing the temporary heat shrink from the second battery lead to work on that; again never leave both battery leads exposed at the same time.

Once both solder joins are made, slide the heat shrink over them, double checking that the joins on red and black are far enough apart that no short is possible, and shrink the heat shrink over both joins with your heat gun. It should now look like this: (Figure 6).
Figure 6: Heat shrink over both wires to protect the exposed areas. If you use a single piece of heat shrink for both wires like this, make sure the joins are staggered far enough apart that there is no possibility of contact.
3. Installing the Battery in the Transmitter
Now you can install the battery in the transmitter. First connect the battery, then ease it into the battery compartment with the label side facing outward. Then carefully arrange the charge and balance wires and connectors into the remaining space so that they can be pulled out again when you need to charge or balance, without removing the battery itself (Figure 7). Make sure nothing is protruding before replacing the battery compartment cover.
Figure 7: DualSky Tx LiPo installed into FlySky TH9X Tx. The charge connector (red), and balance connector (white, all but obscured by wiring) can be pulled out for charging/balancing without disconnecting or removing the battery itself.
Now go fly your aircraft, without having to worry about buying huge quantities of AA batteries all the time!