Arduino Motor Control with PWM and totem pole

Hello Mark,

Thank you for the reply. I understand that fast switching requires the ability to be able to charge and discharge the gate capacitance sufficiently all the way for operation and heat issues. I have some half bridges that I can probably drive this with if need be but I guess I am wondering if something like this really requires this? We are talking about 500 Hz that the PWM is capable of for the Arduino. You are talking about 5ms switching. If I use the setup that has a 50 ohm resistor on the gate with a 10K pull down, I will be having time constants at 110 microseconds. That is almost 50 time constants per cycle assuming max current. Now with that said, I won't be supplying the max current of 100 milliamps since the channel doesn't allow it. So assuming that you can only draw 40mA per channel that gives about 20 time constants per cycle which seems pretty reasonable to me. Anything wrong with my theory? If need be, I could just drive an H-bridge with the microcontroller to switch the FETs sufficently correct?

With that being said, my setup doesn't currently work with the 50 ohm on the gate and the 10K pull down. I am still probing my circuit for the issue. i am using a 24V battery for the main voltage source and a 12V battery for the controller. The 12V is regulated to 5V and provides the power to the arduino. I have an oscope and all the necessary tools. I observe the PWM is correct and at 5V to drive the TTL logic MOSFET.

Another question though on the same note. Any ideas on what may be causing the microcontroller to reset by switching a relay? I am driving a relay with a BJT that is driven by the arduino. It is current limited to 20mA by the base resistor. I am able to switch it fine but when the relay opens back up it resets the arduino. The relay has a diode in parallal with the coil to take care of any voltages so I don't think it is that surge that does it.