Hello!
I have been using accelstepper library to control stepper motors in a non-blocking way (doing other operations while the motor is accelerating, moving, etc)
Before I develop my own library, does somebody know a library/way to accelerate a DC motor with the L298n controller in a non-blocking way?
Thanks!
Use the parameter sent by analog.write(, pin, parameter) and use millis() to increase the parameter every decided number of millis until it reaches 255. When decelerating decrease parameter until it reaches 0.
Look at the example code in "Blink without delay".