Compare commits
No commits in common. "dec96ec9be9d21f0d52324d4aa6b517a7bfc2c90" and "ee1e9c9feb75288c84d8afcd9b9b44d9e6b7d868" have entirely different histories.
dec96ec9be
...
ee1e9c9feb
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
volatile boolean debug_state = true;
|
volatile boolean debug_state = true;
|
||||||
volatile boolean cam_dir = true;
|
volatile boolean cam_dir = true;
|
||||||
volatile boolean running = true;
|
|
||||||
|
|
||||||
const int stepsPerRevolution = 200;
|
const int fullRotation = 600;
|
||||||
const int fullRotation = 3 * stepsPerRevolution;
|
|
||||||
const int openRotationForward = 300;
|
const int openRotationForward = 300;
|
||||||
const int openRotationBackward = 300;
|
const int openRotationBackward = 300;
|
||||||
|
|
||||||
|
@ -24,7 +22,7 @@ const int serialDelay = 5;
|
||||||
|
|
||||||
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
|
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
|
||||||
//Set up for a 200step motor (NEMA 17)
|
//Set up for a 200step motor (NEMA 17)
|
||||||
Adafruit_StepperMotor *stepper = AFMS.getStepper(stepsPerRevolution, 2);
|
Adafruit_StepperMotor *stepper = AFMS.getStepper(200, 1);
|
||||||
|
|
||||||
void setupMotor () {
|
void setupMotor () {
|
||||||
//TWBR = ((F_CPU /400000l) - 16) / 2; // Change the i2c clock to 400KHz
|
//TWBR = ((F_CPU /400000l) - 16) / 2; // Change the i2c clock to 400KHz
|
||||||
|
|
Loading…
Reference in New Issue