I'm new to arduino so please forgive my stupidity if this is just a simple problem.(sorry for my poor English speaking)
i want to control two stepper motors (Nema 17) using pololu a4988 drivers.
In the setup There are
A push button [ 'Start button'-Start the process],
two stepper motors (Z axis , X axis),
two limit switches (Z axis home limit, X axis home limit)
One servo motor
Two led indicators ( Ready status((GREEN)), Processing status((RED)))
At start (when powered on the arduino) Ready Status(Green) indicator should be on so the process can be start by pushing 'Start button'. (This means that the two motors are already at the home position from last time its powered off)
If the two motors are not in the home position when powered on arduino (beacause of power failure or smt) the Processing status(Red) led should be on and both motors get to home position automatically.Then the red led turns off and Green led turns on.
The process is like this,(When pressed start button)
Servo at 0 position
Green led turns off Red led turns on
Z axis runs 500 steps (from home position) and stops
X axis runs 1000 steps (from home position) and stops
Servo turns 60 deg
Z axis goes back to home position and stops
X axis goes back to home position and stops
Red led turns off Green led turns on
After that program stops it runs again if start button is pressed.
im a beginner to arduino and dont have programming knowledge. tried lot of forums, codes and stuff but nothing was helpful. Please help me to solve this
can some one give me some idea, tutorial, a sample code or any guidance if you have already done something like this...
Thank you !!!!