I have made a line follower and the issue I'm facing right now is its speed adjustment. The motors run too fast and make my robot go off track. Luckily my motor driver supports speed control through PWM signals, so I was just wondering if it's possible to generate 4 separate PWM signals using a single PIC16F84A IC.
Concerning my project, it is centered around the PIC16F84A microcontroller and a miniature chinese clone of L298A. For controlling the motor speed, two in my case, the motor driver requires 2 signals for each motor, therefore 4 in total. Hence I somehow need to be able to generate 4 PWM signals from my PIC16F84A to implement speed control for my motors. Is it possible to do so with my microcontroller?
It would be great if the provided solution were more code-oriented or just a minimal circuit.