void loop()
{
analogWrite(3, 25);
analogWrite(9, 0);
delay(1000); // run the motor at 10% speed for 1 sec for one direction (255*0.1≈25)
analogWrite(3, 0);
analogWrite(9, 0);
delay(1500); // Stop the motor allow to decelerate and settle for 1.5 sec
analogWrite(3, 0);
analogWrite(9, 25);
}
You appear to have nothing to prevent BOTH FETs on either side of the bridge from being briefly turned on at the same time. Odds are, you will blow up the FETs within a VERY short time. You really need to provide some means of providing "dead time" when switching the FETs, so one FET in each pair is positively turned off BEFORE the other side is turned on.
With so many very inexpensive, and well-proven H-bridge boards available, with current ratings up to at least 100A, I cannot fathom why you are attempting to "roll your own". An off-the-shelf one will literally cost less than the parts cost to build your own.
This design won’t be physically made, it is part of a small project required to design a DC motor being controlled using an H bridge circuit. I just need to get it running on TinkerCAD but I’ve little experience in this subject so at a dead end