Hi,
I'm using the reprap infrastructure for other purposes so I want to explore using the Stepper and AccelStepper libraries available to Arduino to control my stepper motors.
I am confused about which pins do I input as the 4 pins needed in these libraries, seeing as the RAMPS1.4 wiki defines 5 pins, and which order do I place them?
I currently have it set up like this:
#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#define X_MIN_PIN 3
#define X_MAX_PIN 2
#include
AccelStepper stepper(AccelStepper::FULL4WIRE, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN);
This setup does work for basic setSpeed codes but does not seem to work properly for any other examples posted on the Arduino websites, so I think its the pin order/assignment I used.
Please let me know if you can clarify this for me.
I'm using the reprap infrastructure for other purposes so I want to explore using the Stepper and AccelStepper libraries available to Arduino to control my stepper motors.
I am confused about which pins do I input as the 4 pins needed in these libraries, seeing as the RAMPS1.4 wiki defines 5 pins, and which order do I place them?
I currently have it set up like this:
#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#define X_MIN_PIN 3
#define X_MAX_PIN 2
#include
AccelStepper stepper(AccelStepper::FULL4WIRE, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN);
This setup does work for basic setSpeed codes but does not seem to work properly for any other examples posted on the Arduino websites, so I think its the pin order/assignment I used.
Please let me know if you can clarify this for me.