The motors are included in the robot to create more feedback on programming in a fun and interactive way. To have a bigger accomplishment and satisfying feeling by changing the position of the car.
The Motor Controller is based on the L298, which is a dual full-bridge driver designed to drive inductive loads. It drives two DC motors, controlling the speed and direction of each one independently by PWM.
The term H-bridge is derived from the typical graphical representation of such a circuit. A H-bridge is built with four switches (solid-state or mechanical). When the switches S1 and S4 (according to the first figure) are closed, (and S2 and S3 are open) a positive voltage will be applied across the motor. By opening S1 and S4 switches and closing S2 and S3 switches, this voltage is reversed, allowing reverse operation of the motor.
The H-Bridge connects 2X2 DC 6-12V Motors. The motors have a maximum RPM(revolutions per minute) of 789 on 12V input. The H-bridge has a 7.2V input from the batteries that reduces the RPM of the motors. To have a more precise control of the speed of each motor. PWM is included from the H-Bridge.
H-Bridge- Wikipedia(5/06/19) [SOURCE]