Hi there
The purpose of this schematic is to control a DC motor that runs at 8V max. That is why I chose 4 N-channel mosfets in the H bridge. P-channels would not fully activate at voltages above -10Vgs but the N-channels can handle 18V at the gate.
The 5v switches represent an Arduino’s digital output pins. One to turn forward, one for reverse. To prevent a failure scenario where both pins are HIGH I added a transistor that prevents current from flowing through the optocoupler on the second half bridge.
Does this circuit make sense? I’m not an electronics engineer, just a hobbyist and have doubts about how effective the gate driving circuit is of the mosfets.
Thanks!
I also worry about the LM7818. It drops about 6V, so at 330mA it burns 2W, which seems like the maximum for the package that I quickly pulled up. If you have a very efficient buck converter that gives you at most about 1A to drive the motor. Not a lot of overhead.
Also as I said already, you could just skip the whole thing and make everything work from the 24V using PWM. Since you want to drive it with an arduino that is not a difficult thing.