Not really sure where to post this... Anyway, would varying the duty cycle of a PWM output of a PIC16F877A change the speed of a high-torque DC motor? The flow of the signal would be lime this:
16F877A uC ---> L293D H-bridge ---> High Torque DC Motor
Could you help me on the programming stuff? I' not really good at it.
And another question. Could you give me advice on how a potentiometer could vary the duty cycle of the PWM? I am planning to connect the potentiometer to the one of the ADC pins of the uC, and have a toggle switch with 3 choices (forward, stop, reverse), then the uC would program the PWM signal depending on the input (My plan is 5V for forward and ground for reverse). Is it possible?
Thank you for your replies.