Soft start DC motor

Well...

the PWM drive needs values 0..255, and you want that to happen over 3 seconds.

so start with 0, and every 3/255 seconds, increase it by one.

regards

Allan