I’m fairly new to the arduino stuff but tried to do the biggest part before coming here.
First let me describe my situation:
I’m building a flexible mould for my master thesis, at this point I’m trying to let this mould set itself with data collected from my CAD model. Its not real time (not yet). I’m feeding the distance it should move manually. These 25 motors should run simultaneously but all with a different distance. Once in the right position it should rest there for 5 minutes and go back to the zero position, once there it should wait another 5 minutes before moving to the position given.
I managed to do the script, but once a motor is at its position it moves directly back to the zero position.
Where should I put the delay function to maintain the position for 5 minutes before going back to the zero position.
Flexible_mould2.ino (16.2 KB)