bike_the_planet said:
Sorry - you'll need more than that. For a start, NiMh batteries have trickle and peak charge current limits. If you exceed those then you risk gassing the cells rendering them unuseable. At the very least you'll need a couple of resistors to limit that current.
However, a simple resistor plus diode is not very efficient, because at low wheel speeds you'll reduce the charging current and therefore the energy you're putting into the cells. You really need a regulator that maintains the max trickle current (normally C/20 for NiMh) regardless of dynamo output voltage to maximise the energy transfer to the batteries.
Also, to make a comprehensive charger you really need multiple output voltages: 5vdc for USB devices; 12 v for phones and cameras.
Cheers,
Tony
The circuit I used is 2 1/2 wave rectifiers charging a positive and separate negative set of NiMH cells. The mean current from the dynamo when running is 1/2 amp, 1/4 amp on each polarity cell set, and a bike dynamo is close to a constant current source.
The NiMH batteries used were RC spec, manufacturers figures were 3500 mAH capacity at 3.5A discharge, max continuous charge 400mA mean, 24A max peak current charge or discharge. (Roughly the size of C cells)
There is no need for any resistor in series. A hub dynamo can't produce an output exceeding these limits. Output being taken while charging needs to be deducted, and until the cells are fully charged they'll put up with almost anything (<24A)
I had silicon 'self resetting fuses' in series with the charging lead and both poles of the 12v output. NiMH batteries can discharge at very high currents, and both + and - of the 12v are live to the bike frame!
It's crude, but worked well for two 2 week tours, charging all of the party's mobile phones using a Nokia car charger (gives the 3.5v supply from a SMPS in the plug), and running several other bits of kit at the camp sites, keeping us self sufficient for power. In practice its unlikely that the batteries were ever fully charged, but we never ran out either.
(I still have the charger, somewhere in with the camping kit in the loft, and the batteries were last seen powering a boat.)