The document describes a system and method for generating electric power from the movement of rails. It uses a variable capacitor system comprising two capacitor plates that are driven together and apart by the passing of vehicles on the rail. This changes the capacitance between the plates and allows energy to be extracted from the power source and converted to electrical energy. The system is intended to power remote railway equipment without needing to run power lines to those locations.