A bicycle generator puts out AC current which will need a rectifier to convert it to DC. The diode also keeps the battery from discharging thru the generator and ruining it. Most bicycle generators I've run across are 6V-3W. 12V are out there also.
A rectifier of some sort is the key to having the bicycle generator provide DC current. Polarity of the rectifier also has to be set right.