This is an arduino library that allows the power given to motors increase/decrease gradually (and not instantaneously as with analogWrite() function which this library is meant to replace).
- Lower and upper power limits (e.g. for motors that are able spin only when PWM duty cycle is above some threshold, (i.e. when the value is big enough in analogWrite(pin,value)))
- Adjustable rate of power change (by changing step size and/or update delay)
- Any number of motors (currently two are supported, modify header to allow for more)
Timer timer;
Motor myMotor(0, 2, 3, 0, 255, 1, 30, &timer);
myMotor.set(255)
(see example code for details)
(NB: It is necessary for Timer library to be added to arduino)