Schau mal wegen PWM hier:
https://www.roboternetz.de/wiki/pmwiki.php?n=Main.PWM