This document proposes a system to generate electrical power from railway tracks. As trains move over tracks, the vertical displacement of the tracks can be captured using a vibration energy harvester connected to a rack and pinion gear system. This system drives a DC generator to produce electricity, which is stored in a battery. The key components are a railway track, rack and pinion gears, chain drive, flywheel, DC generator, and battery. As a train passes, the track vibrates and turns the gears which rotate the flywheel and generator, producing electrical power from the movement of the train without using fuel. This provides a renewable source of energy capture from existing railway infrastructure.