Arduino Task with step motor

Job ID: 36330164

Budget: €8 – €30 EUR

Need to write arduino code for our project to work.

What equipment including
1 relay [starting heating lamp]
1 step motor
1 button
2 limit switch
1 MAX 6675 temperatures measure [not yet connected]

//What need to make
1. When click main button:
Switch on relay
Step motor starting to move in "X" speed for "X' steps [80 cm around]

2. When motor reach "X" steps it stops
3. Temperature sensor check temperature, if temperature is lower 200 degree, its just waiting
4. When temperature reach 200 degree, starting cooldown timer for "x" time (1 min for beginning)
5. After timer ended, switch off relay, and move back to start position.
6. If any of limiter hit, stop everything.

Pushing button again, starting whole project from beginning.
If push and hold button for 3 seconds, stoping relay and moving back to initial position.
Short push of button, stoping moving but not doing anything more, click again and step motor moving.

//information where is connected and what
const int RELAY_PIN = 6;
pinMode(RELAY_PIN, OUTPUT);

ezButton limitSwitch_1(8);
ezButton limitSwitch_2(9);

const int stepPin = 2;
const int directionPin = 3;
AccelStepper stepper(AccelStepper::DRIVER, stepPin, directionPin);
Also on all limit switch and buttons we have capacitor installed, so no need pullup.