above simulation shows the principle of a simple DC motor.
current is applied to the coil, the direction of the current flowing in
the left and right parts of the coil is opposite to each other. Therefore,
the direction of the force which the coil receives is reversed and the
this time, the direction of the current is changed by the commutator every
half turn of the coil, so the coil continues to rotate in the same