A derailler with a set of gears powered by bicycle chain to drive an AC
generator. A bridge rectifier to convert AC to DC to charge the battery
and to energize the head light and the tail light. A set of switches to
control the head light, tail light, and battery.