I think an old cordless drill could be adapted as a generator. It has the thrust bearing, gearing, and a permanent magnet DC motor. A switch between the battery and genny would be a good idea for when you stop pedalling.