This is a DC motor controller circuit, built using transistor TIP31 based on H-Bridge concept. The switch S1 and S2…