A large amount of energy is wasted by the vehicles on the speed breakers through friction, every time it passes over it. Energy can be produced by using the vehicle weight and speed. So here we propose a smart speed breaker that generates power. The reciprocating motion of the speed breaker is converted into rotary motion using the rack and pinion arrangement. We design a smart speed breaker that can pass vehicles coming from both sides and yet generate energy from it. The system makes use of mechanical assembly with metal sheets with linkages that press down with spring arrangement. The system makes use of the speed breaker press and then uses a rack and pinion arrangement to press down and run generator motor thus generating energy. The spring mechanism is the used to drive the speed breaker back into original position. It converts rotary motion into linear motion, but sometimes we use them to change linear motion into rotary motion. This mechanism is very economical and easy to install. By doing proper arrangements we may generate high power electricity from road traffic.