Hi! I'd like to ask what is the difference between the PWM signal produced from a function generator and a PWM signal produced by a PIC microcontroller. I am trying to produce PWM signals to drive a DC motor. This PWM signal is fed to the motor driver through a octal transceiver 74LS245. But when I try to drive it using the PWM signal from the PIC, it does not move as opposed to when I use the PWM signal from the function generator (PWM signals have the same amplitude, frequency and duty cycle). Thank you very much for your help!
I expect the PIC does not provide enough current. The PIC output is generally 25mA. To drive a motor you need to use the PIC signal on the base of a transistor to control a source of power with more current. A 2N2222 will provide about 750mA. **broken link removed**
Okay, thank you very much. I will try this and update. Another question, when I try to connect the PIC directly to the driver without the transceiver(74LS245), the motor moves okay. It's just when I drive the motor through the 74LS245 that I encounter a problem. Is the current still the problem here if this is the case? Thank you very much for your help!