- Sun Dec 04, 2011 8:39 pm
#136621
A little thread necromancy but I'm back on the project after actaully raising my child for the last 9 months and want to finish this before Christmas for him. I'm having a tough time of the PWM and L298 motor driver though. I'm using the LPC17xx driver library with PWM1.1 out and it toggles an LED at the rate I'd expect, decreasing brightness based on my parameters. When I connect it to the L298 enable pin however, the driver does not seem to slow down at all. I am leaving it tied at forward only as that is all I require and pulsing the enable pin. I tried leaving enable high and pulsing the input but that did not change anything. PyroElectro has a tutorial where they made their own "PWM" and in the code are actually flipping which inputs are high and which are low. Throwing it in forward/reverse like that doesn't make sense to me but their video shows it working and that's more than I can say for me. Help please!