The motor runs at half the speed

Hi, you can post your sketch as an attachment.
Have to checked that 255 written directly to the PWM pin will produce full speed.
Let make sure its not hardware thats the problem, a simple code change will check it.

Have you written all this program at once or did you create it section by section testing it as you build?
Just write a program that controls the motor and see if that works, then build from there.

Tom.... :slight_smile: