The dangerous nature and history of railroad grade crossings (especially unprotected crossings in remote areas lacking costly electrical infrastructure) motivates engineering efforts to reduce the number of fatalities and injuries. Several approaches and devices have been investigated and developed to harvest energy, mostly from vertical deflection of railroad track to power automated warning systems and track health monitoring sensors. While most of this previous work relied on harvesting energy from the vertical deflection of the railroad track, this paper proposes a mechanism for generating electricity from the passage of each train wheel. A cam-follower mechanism was designed initially to meet the requirements of low noise, shock and wear, and was subsequently used and improved to design a system capable of generating electricity efficiently from the motion of trains traveling in either direction. The development of the device as well as analysis of its predicted power production capability is presented in this paper.