Re: motor speed control
PWM (Pulse Width Modulation), the advantages of this tecnique is that you can control the speed of motor digitally.
Usually we used to give the motor higher voltage right to make it spin faster, you can also using potentiometer to control the current. But with PWM, it's little different.
If you using 5 volt continously it will be the same with using 12V using about 10% duty cycle...
Duty cycle simply is the ratio time to turn-on the motor and time to turn -off the motor.
Example, the output of your output will be like this:
-______-_______-_______-_______
if you want to make you faster then just give output like this:
------___------___-------___-------___
Is it clear now? You can use L298 for better application.
Best regards