Peristaltic pump _ using accelStepper not working at desired speed

Hi There,
I am trying to use a Nema23 to actuate a peristaltic pump. The program should be triggered by an external I/O signal coming from pin2.
The routine should :

  • start by default at slow speed
  • when pin is HIGH then reach a desired max speed with a ramp
  • when pin 2 is LOW go back to initial speed

Somehow the scale of values i am using doesn't produce any change in speed, and when the pin 2 goes back to LOW is is ignoring the command.
Any help?

sketch_may27.ino (998 Bytes)

What makes you think this is a bootloader issue?

Please remember to use code tags when posting code.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.