Archive for the ‘GPS’ category

DIY hub dynamo usb charger

June 10th, 2010

This is a step by step guide on creating your own USB compatible charger using your bicycle’s hub-dynamo as the power source.
It’s a work in progress and I will update this post along the way.
All images link to full resolution originals.

Requirements:

Tools:

  • Soldering iron + tin
  • (optional) Multimeter
  • (optional) Soldering clamp
  • (optional) wire stripper

Parts:

Note that these prices are ex FAT and I ordered them in larger volumes, ymmv.

components overview

Poor man’s (ms-paint) diagram

Step 1: saw a piece out of the veroboard, approximately 17 x 40 mm (the board below is too long, approx 65 in length)
Veroboard

Step 2: Solder the two tantalum bead capacitors on the voltage regulator. Be careful to not overheat the components, polarity is essential. Long leg is positive.
Place the 22uF Capacitor on the right,  the .47 uF on the left. Negative polarity combined in the middle.

Step 3: prepare capacitor C1 with the heat-shrink tubing, bend the pins (long leg = positive) as seen in the photo. Keep the legs as long as possible for flexible placement of this component inside the ABS case.
capacitor
Step 4: place the components on the veroboard:
Looking at the first picture below; the middle three parallel stripes on the board serve as the main electrical paths for the components. The stripe on the left corresponds with the positive side on the diagram.
- C1: the long leg (+) should be placed on the left of the three middle stripes. The short leg should go in the middle. (in reference to picture 1)
Picture 1:
step 4 picture 1

The bridge rectifier output legs should be placed as follows: The + (as indicated on the component) should go on the left of the three middle strips.
The – (negative) output should go in the middle. The AC input legs can be placed on the outer stripes of the board. (left and right in reference to picture 1)

step 4 picture 2

step 4 picture 3

And finally solder the voltage regulator as well.

step 4 picture 4

Before going any further, check to see if it’s working properly.
Prepare the cable that runs to the dynamo, and connect it on the input legs of the bridge rectifier. Polarity is of course of no concern as we are dealing with an alternating current. Connect the dynamo to this kit, swing the wheel and measure the output voltage on the + (Vout) and – leg of the output regulator.

test output 2

We should measure around 5 Volts

Test output

If it doesn’t work, carefully check the polarity of the capacitors and other components.

We can now safely cut the remaining component legs form the veroboard, and bend C1 to fit inside the ABS case.

I connected the heat-sink using a blind rivet this is ideal as it does not need any additional space (especially height).

Before connecting the cables, drill a small hole for the Cable Gland Locknut, connect the Cable Gland Locknut and route the wires through it.

Next, connect the USB A receptacle or if you like a mini or micro USB cable directly to the voltage regulator output legs. Connect the dynamo cable to the bridge rectifier.

In order for this whole package to fit inside the box, I had to saw one of the corners from the veroboard.

When using the same ABS case as listed in the requirements section, be sure to cut the two screw holes at the bottom of the case for more room.

That’s pretty much it. I will seal the case of with a polymer resin, to make it water proof. Be sure to only do this after you are absolutely sure everything works.

Revision 2 with grommets

That’s it! Let me know if you take on the challenge to build one yourself, or if I need to explain anything in more detail.

PDA / GPS bike mounted USB charger

December 27th, 2008

An update on this post is found here and a step by step guide is posted here: (still a work in progress)

I love to go on holiday by bike. And as a tech nerd I can’t be bothered by plain paper-maps!
Having a GPS-mapping application like OziExplorer on your bike makes navigation very easy.

The problem however is with the rapid draining of the battery-powered GPS / PDA.
Especially mobile phones / PDA’s have a very short (battery) lifespan, often no more then a couple of hours when the display is always on and a GPS-application running. Normally I just dragged a lot of AA aka penlite batteries with me and powered the phone with a simple battery holder like this one:
4_aa_battery_holder1

Of course this isn’t the best solution and I was looking for better alternatives.
Then I stumbled upon this genius, hub-dynamo driven “Bike mounted USB Charger” on an English bicycle forum.
The idea is quite simple. You take a HUB-Dynamo (Shimano DH-3R30) (I ordered one from ebay for less then 40 euro).
The hub-dynamo generates an alternating current that needs to be rectified and the voltage output should be regulated to 5 volts for USB powered devices.

The hub-dynamo:
dscf2834

These are the parts you need, available at any electronic (parts) store.
D1 – D4     1N5818
C1             2200uF   16v
C2, C3       470uF     63v   Low ESR
C4             .47uF      Tantalum bead
C5             22uF       Tantalum bead
R1             47K         .25W

Solder the parts according to this schematic:
dynamo1sbp

And there you go, you have the best energy- efficient charger, all done with green energy!

This is my effort. It still needs some good housing and connectors but it works perfectly:
dscf28291

For more detailed information visit the bike forum at http://yacf.co.uk/forum/index.php
Many thanks go to Simon Galgut for providing the electronic schematic.

Google maps API for Flash

December 27th, 2008

The nice folks at google have made a Flash library-api for google maps.
I have made a sample application which displays my “current” position on the map.

How it works:

Mobile phone
On the Mobile Phone,  a Windows Mobile 6.1 ( HTC Touch Diamond) runs a .NET CF 3.5 application that sends the current GPS-location to the server. This is done every second, or on a chosen interval.

Live tracking application

Live tracking application

The server
On the server there is a simple php script that stores the GPS-location and device-id, send by the phone, in a database.

The web-application
The web-application is build in Adobe Flex Builder 3  and fetches the last known GPS-location from the server.
It then  draws a marker on the map and starts updating again.

To get an idea of how it works without me being on the run (and running the gps mobile application) use the simulation mode.
I have recorded two sample tracks, a walking track and a track by car.

Things to do:
Smooth map movement
Select mobile device(s) to show, and zoom map to show all selected mobile devices.
Show (last known) direction, speed, distance, top speed..

(this is partly implemented in the html/javascript version on http://www.arenddeboer.com/liveTracking/)