Joined: Jan 2009
Posts: 44,180
Likes: 6,418
From: New York, NY, and High Falls, NY, USA
Bikes: 1962 Rudge Sports, 1971 Raleigh Super Course, 1971 Raleigh Pro Track, 1974 Raleigh International, 1975 Viscount Fixie, 1982 McLean, 1996 Lemond (Ti), 2002 Burley Zydeco tandem
There are lots of discussions about charging from a dynamo hub. It can be done but not cheaply, and it's worthwhile only if you are going to put a lot of miles on between power outlets, such as on a multi-day tour where you are camping. Little external batteries are cheap, and you can carry more than one.
The dynamo produces A/C rather than DC, and the voltage fluctuates widely. You need circuitry to compensate for that. Not only that, it doesn't produce much power, either.