The cricket bowling machine is controlled by an electronic system that uses a buck-boost converter to control the DC motor's current supply and its rotational speed. The buck-boost converter allows for precise control over the speed at which the cricket ball is driven. To regulate the motor's current delivered by the buck-boost converter, the proposed control system uses current peak mode control to regulate the output of the converter. The PID algorithm is used for the calculation of the error signal that represents the difference between the actual reading from a sensor and the set-point current. The controller tracks the values of the actual current passing through the inductor with a reference current. To limit the voltage, an AND gate is added to the comparison's output that keeps the SR latch reset if the voltage exceeds a predetermined threshold.