Pwm on a DC motor

Draw a schematic of your circuit with pen & paper and take a photo with cell phone and post it with your code.
Use the "#" CODE TAGS toolbutton to post your code.
Are you using the Map function ?