Arduino Task with step motor -- 3
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
When first launch or after restart. The platform moves to limitSwitch_2, pressing it and release, after stopping. That will means start position each time.
1. When click main button Pin7:
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 timer for "x" time (1 min for beginning)
5. After timer ended, switch off relay, and move back to start position.
6. If after launch any of limiter hit, stop everything.
Additional:
[start] Short main button push - start
[pause] Pushing main button again, pausing whole project, without switching off relay, after pushing again, keep going.
[cancelation] Hold button for 3 seconds , stopping relay and moving back to initial position.
Temperature sensor MAX 6675 should show temperature using Serial.Begin.
//information where is connected and what
#include <AccelStepper.h>
#include <ezButton.h>
#include <max6675.h>
const int RELAY_PIN = 6;
pinMode(RELAY_PIN, OUTPUT);
ezButton button(7);
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.
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
When first launch or after restart. The platform moves to limitSwitch_2, pressing it and release, after stopping. That will means start position each time.
1. When click main button Pin7:
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 timer for "x" time (1 min for beginning)
5. After timer ended, switch off relay, and move back to start position.
6. If after launch any of limiter hit, stop everything.
Additional:
[start] Short main button push - start
[pause] Pushing main button again, pausing whole project, without switching off relay, after pushing again, keep going.
[cancelation] Hold button for 3 seconds , stopping relay and moving back to initial position.
Temperature sensor MAX 6675 should show temperature using Serial.Begin.
//information where is connected and what
#include <AccelStepper.h>
#include <ezButton.h>
#include <max6675.h>
const int RELAY_PIN = 6;
pinMode(RELAY_PIN, OUTPUT);
ezButton button(7);
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.