Soft start DC motor

Hi all,

I need some help for doing a small project.

Premises : I have a DC motor 12V / 50W and and a 12V/7A battery.

I want that when i push the button for start the motor, the arduino to pwm the motor from 0 to 100% in 3 seconds.

Can someone help me with that?

Thank you in advance

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