Electricity is generated by replacing the traditional speed breakers with some simple mechanism. As vehicles pass over the speed breakers, they spin the rollers which are connected to a generator which in turn generate electricity. This method is an effective way to produce electricity as the numbers of vehicles on the road are ever increasing. Also the cost of fabrication of the model is low. It can be effectively placed near traffic lights, at the entrance of parking lots and any other place where the traffic density is high. Rollers are fixed on a wooden ramp on which vehicle passes. As vehicle passes over it, it starts moving. A chain drive mechanism is provided which transfer the motion to a DC motor/generator for electricity generation. This method provides an efficient way to generate electricity from the kinetic energy of moving vehicles in roads, highways, parking lots etc.