I've to control 2 motors using PWM. I used an h-bridge to switch the directions of the motor. Thus, 2 pwm outputs are needed for one motor, thereby needing 4 pwms for 2 motors.. but i'm restricted to 2 pwms on my board (the MuC on the board used is the ATMEGA32)
Thus, i've used a single input H-bridge circuit, where one pwm output is sufficient for controllin both forward and reverse directions of the motor..
My prof said ive to control the changing of directions using software.
Any ideas on how to do that using just one PWM per motor?