Simulation of the BO Motor

Simulation

Now, click to stat simulation button to test the circuit and code.

So, first, the motor will move in the forward direction and then it will move in the backward direction. In the end, the motor will stop moving.