I'm attempting to drive an H-Bridge that I made with 2 P-Channel and 2 N-Channel MOSFETs directly from an AVR microcontroller.
During my original testing, I applied the full 5V to the gates and it worked like a charm.
As I added PWM functionality, I'm now realizing that I possibly have a design flaw. I'm driving the motors by a potentiometer to control the PWM duty cycle.
I'm finding that if I increase the voltage that the H-Bridge is switching from 12V to 24V and decrease the duty cycle, the motor behavior is erratic as I move the potentiometer up and down and the N-Channel MOSFETS get very hot with no load.
Fully on and Fully off (5V or 0V at the gates) works great (cool MOSFETS).
Will changing the PWM frequency help? Should I go faster or slower? I'm able to hear a faint whine in the motors so it's within audible range.
Any other suggestions?
During my original testing, I applied the full 5V to the gates and it worked like a charm.
As I added PWM functionality, I'm now realizing that I possibly have a design flaw. I'm driving the motors by a potentiometer to control the PWM duty cycle.
I'm finding that if I increase the voltage that the H-Bridge is switching from 12V to 24V and decrease the duty cycle, the motor behavior is erratic as I move the potentiometer up and down and the N-Channel MOSFETS get very hot with no load.
Fully on and Fully off (5V or 0V at the gates) works great (cool MOSFETS).
Will changing the PWM frequency help? Should I go faster or slower? I'm able to hear a faint whine in the motors so it's within audible range.
Any other suggestions?