Sunday, October 28, 2012

DIY Automatic Dog Ball Thrower

Sophie, our golden doodle has been even more hyper than usual since our young son has been taking more of our attention. Perhaps there is a way to burn off some of her energy when we are away at work. When we saw a recent issue of Make magazine, (awesome magazine by the way) we knew we had the answer. They had a detailed build of a DIY automatic ball thrower- the "Fetch-O-Matic." I had much of the materials lying around the house so we built an adapted version of the automatic dog toy.

The Make design is a very elegant design. It uses a freely rotating "striker" bar, which is spring loaded. The drive mechanism turns the striker about 180 degrees, loading up the spring. Once the striker rotates past center, the spring rapidly accelerates the striker and brings it back to home position. There is no electronics required, just a simple switch to energize the mechanism when the ball is in the proper location.

The Make version of the ball thrower used a windshield wiper motor. These seem to be rather expensive on E-bay, let alone the local auto parts thrower. We had an old Black & Decker battery powered screwdriver sitting in the junk pile that I thought would work great to drive the device. Tons of torque, works on about 5 volts, and most importantly, free.

I used 3/4" square basswood for both the drive bar and striker. After ten or so ball strikes, the drive bar failed- split along grain lines. I made a new drive bar out of 3/4" plywood and that seems to be quite durable. The drive bar is attached to the motor shaft using a screw threaded into a tapped hole I drilled into the lower shaft collar. I ordered the 7/16" ID shaft collars from Amazon.com, utilizing Amazon Prime free shipping. Without the free shipping I probably would have ordered these from mcmastercarr.com or grainger.com. I used another shaft collar to hold the striker in place.

For power, I used a UBEC from Hobbyking to convert 11.1V from a 3 cell LIPO battery to 5V and to provide low voltage protection for the battery. The lighted on/off switch and ball switch is from Radioshack.

Other than the drive mechanism, the build is very similar to the Make Magazine build. 

Drive mechanism (lower 3/4" square) and striker (upper 3/4" square) attached to motor shaft

Top view of mechanism, upper bar rotates freely about motor shaft, lower is affixed to motor shaft.

Motor Mounted on ball thrower floor

3/4 view of mechanism

I used three small shelf brackets and two hose clamps to mount the motor

Dry Fitting the sides and lower ball guide
Extension Spring- purchased from Lowe's

Spring is mounted- note ball guide and cutout for switch on right side of photo

New Plywood Drive and Switch mounted

Ball wasn't heavy enough to activate the switch, so I added an extension lever cut from 1/8" aluminum

Switch Detail

Switch Detail

Testing the switch- ball held in place with guides. Note there must be clearance for the striker!

Switch Visible

Final, cleaned up wiring on bottom of thrower

"Business End" of the thrower- note the extra ball guides to keep the ball in place

Lighted On/Off switch

Electronics compartment- On/Off switch, UBEC, and 2200 mAh 3s LIPO battery

Completed DIY Automatic Dog Ball Thrower!



Tuesday, October 23, 2012

FPV Camera - fixing connector

For the camera, I chose a 1/3 inch Sony CCD unit, also from Hobbyking. FPV_CCDN


Again, it's a bargain priced unit, but it should do the job at least for my first adventures in FPV. One funny thing about this camera is that the cable socket on the board comes installed incorrectly from the factory- it's reversed. If you plug it in as shipped you run the risk of immediately burning out the camera electronics. Another Q/C FAIL for Hobbyking. The way it's shipped the battery "+" wire is connected to the camera "V-out". Luckily the discussion boards on Hobbyking's website are full of descriptions of how to fix it. Some advocate re-wiring the wire harness, some just to flip the connector on the circuit board. I chose the simple route and just flipped the connector.

Luckily, it's an easy enough fix. Just pull the white cable connector right off the board- gently pry it up or pull straight up if you have strong fingers. It isn't glued to the board. 

Board after connector is pulled off



Then,straighten out the pins the best you can, turn the connector back around, and press it back on. Take extra care to align the pins with the holes in the back of the connector.

Zoomed view showing re-applied connector orientation

Connector re-applied, and cable attached

White = "V-Out", Black = "-", Red = "+"



Cheap OSD for the FPV Quad

I wanted some type of On Screen Display (OSD) for my first try at a FPV aircraft. Knowing your flight pack voltage and direction to home would be very helpful. I just didn't want to spend a ton of money on one.

So, I ordered the Hobbyking G-OSD II.



Roughly $40, so not too expensive, and it seemed to have the basic capabilities I was looking for. Plus, there exists a community out there that has some aftermarket software to improve the capabilities. Stock it doesn't have a "return to home" arrow- but the free CL-OSD software does. The trick is that the re-flashing process takes a bit of hacking to do. The G-OSD unit from Hobbyking doesn't come with a pre-installed header to attach your AVR programmer. To get around this, you have to cut off the head shrink and solder your own header in place to a set of small solder pads on the circuit board. I'll find out shortly if my soldering skills are up to the task! 

See SubSonicHobby's post here

And the full CL-OSD page here

Solder Pad labels from CL-OSD wiki
So, I eagerly cut open the package for the G-OSD, and guess what? The actual G-OSD unit is missing! Great Q/C, Hobbyking. The cables, manual, and GPS unit were all there but that's it. Hopefully Hobbyking's customer service will move faster than their usual glacial pace.

Sunday, October 21, 2012

Q450 Quadcopter Flight Videos

The Q450 flies great.... Nice and smooth. I need to tweak the PID settings a bit. It still has a bit of a wobble occasionally, and the auto-level doesn't seem to work, but other than that, great. I think it (and my piloting skills) are ready to start installing the FPV gear.



Friday, October 19, 2012

Q450 Quadcopter Build

The Talon V2 just had too many fussy aspects to it- constant re-alignment of the rotors. So, I decided to sell it to someone who could better appreciate all of its cool carbon fiber and move on to the Turnigy Q450 glass fiber quad frame. It's cheaper, simplier, and doesn't require (or allow!) any sort of alignment. The link below is to the version with the integrated PCB power distribution. For my initial build I used my existing power distribution board instead of the built-in power distribution. I'm also re-using the 18A ESC's and motors from the Turnigy Talon V2 Build, as shown here. Since the Q450 arms were shorter than the Talon's, I was able to cut out quite a bit of extra motor lead length- saving some weight.

I also upgraded to the new KK2.0 flight controller (FC). The FC I used for the Talon had some sort of electrical failure followed by smoke, so it was no longer usable. Luckily I had a new KK2.0 FC on hand waiting to go. I immediately upgraded the KK2.0 to the new v1.2 firmware from the v1.0 it came shipped from Hong Kong with. Find upgrade instructions here.  I never flew it with the v1.0, so I can't comment on if the v1.2 is any better. The new KK2.0 FC is hands down better than the old FC used on the Talon. Much more stability, nearly hands-off hovering, and all around easier to fly- not to mention much, much easier to set up using the built-in LCD display. Definitely worth the extra $15.

Component Qty
Turnigy Q450 glass fiber quad frame 1
Hobbyking KK2.0 LCD Flight Controller 1
Quad-rotor power distribution board 1
Turnigy L2215J-900 Brushless Motor (200w) 4
Hobbyking SS series 18-20A ESC 4

I chose to set up the Quad in "X" mode. Strangely, the pre-drilled holes in the Q450 only support mounting the flight controller in "+" mode orientation, even though the arms are 1/2 white and 1/2 red suggesting that the user fly it in "X" mode. To remedy the situation and allow the flight controller to be properly mounted, I made an adapter plate. Since I didn't have any fiberglass or carbon sheet to make one out of, I used a piece of ABS commonly found at any home improvement store for $0.79 or so- a plastic box cover.

Plastic circular electrical box cover

First, I placed the flight controller over a piece of paper and transferred the four mounting hole locations.  Next, I used a straightedge to trace a line between diagonal holes to find the center. Then I used a compass to construct perpendicular lines to the diagonals I just created. Finally, I rotated the flight controller 45 degrees, lined the new perp. lines up with the mounting holes, then transferred the hole locations. Once the hole locations were set, I used a compass to create an inner and outer circle.

Template taped on box cover

Using this template I drilled each of the mounting screw holes, cut the outside with a bandsaw, and finally cut the center hole with a hole saw. 

Completed adapter plate

Adapter plate attached to Q450 frame with 4/40 SHCSs and 1/2" spacers

KK2.0 FC in place, top view

Note the rubber grommets for vibration absorption above and below the FC board

Since I'm a horrible quad pilot and tend to run into trees, buildings and the ground often, I made a crude roll cage from a piece of 1" wide aluminum and bolted it to the Q450 frame. Crude but effective. It also makes a very nice carrying handle. 

Roll Cage / Carrying Handle  in place

Next steps- lights for night flight and FPV wiring!