
IRF530N MOSFET is used to switch the positive supply to the motor for forwarding direction (high-side switching) while the N-channel MOSFET is used to switch the negative supply to the motor for the reverse direction (low-side switching)