AcelStepper HELP
hi all, i tried find clue on how solve problem below seems stuck. appreciate help. i'll make story simpler. trying operate valve driven small stepper. @ closed position valve hits limit switch. using switch open or close valve. easydrive board used driving stepper. i implement following logic: in case open command received motor should turn 8000 steps 1 side. in case close command received motor should turn 8000 steps other side. then, in case limit switch not activated turn additional 1000 steps. use accelstepper library because plan operate more 1 valve in parallel. anyhow code without limit switch seems work fine, see below: code: [select] void loop ( ) { cmdvent = digitalread (cmdpinvent); //read vent valve command open (low) or close (high) if (ventvalve1.distancetogo ( ) == 0) { //check open command if ( cmdvent == low && cmdventold == high ) { ventvalve1.move (8000); ...