I am having a terrible time getting efficient motor control using my 18f2585. I have my h-bridge built using 4424's and IRF9Z30 (p-channel) and IRFZ40 (n-channel) mosfets. Now I understand I have four inputs to the h-bridge circuit , but I have only 1 channel of PWM. How do you all recommend driving the circuit? Is there a way to build an "intelligent" h-bridge using smaller transistors or logic chips? I have a lot of spare output pins I can use to adjust the circuit.
Until now I have been using anti-phase locked PWM using a couple of 2n3904's to invert the PWM and feed it into the opposite side of the h-bridge, but when I do this the transistors get HOT. There has to be a better way.
Edit: I've been reading about the 16f684, and it seemed to support for h-bridge control using the P1M1 bit in the CCP1CON register. In the 18f chips I have looked at this functionality seems to have been removed. Is there a good reason this feature was removed?
Until now I have been using anti-phase locked PWM using a couple of 2n3904's to invert the PWM and feed it into the opposite side of the h-bridge, but when I do this the transistors get HOT. There has to be a better way.
Edit: I've been reading about the 16f684, and it seemed to support for h-bridge control using the P1M1 bit in the CCP1CON register. In the 18f chips I have looked at this functionality seems to have been removed. Is there a good reason this feature was removed?
Attachments
Last edited: