void initialize_motor_driver(){
	pinMode(MICROSTEP, OUTPUT);
	digitalWrite(MICROSTEP,LOW);
	pinMode(ENABLE_PIN_0, OUTPUT);
	pinMode(ENABLE_PIN_1, OUTPUT);
	pinMode(STEP_PIN_0, OUTPUT);
	pinMode(STEP_PIN_1, OUTPUT);
	digitalWrite(MICROSTEP,HIGH);

	//motors_release();
	laser.setMaxSpeed(2000.0);
	laser.setSpeed(700.0);

	turntable.setMaxSpeed(2000.0);
	turntable.setSpeed(700.0);

	turntable_motor_release();
	laser_motor_release();
}
Esempio n. 2
0
void init_motor_driver(){
    pinMode(MICROSTEP,OUTPUT);
    

    
    pinMode(Z_ENABLE_PIN, OUTPUT);
    pinMode(Y_ENABLE_PIN, OUTPUT);
    
    motors_release();
    z.setMaxSpeed(200000.0);
    z.setSpeed(10000.0); 
    y.setMaxSpeed( 100000.0);
    y.setSpeed(1000.0); 
    
    // Endstops
    pinMode(Y_ENDSTOP, INPUT);
    digitalWrite(Y_ENDSTOP, HIGH); 
    motors_enable();

}
Esempio n. 3
0
void setMaxSpeed(int desiredMaxSpeed)
{
    leftStepper.setMaxSpeed(desiredMaxSpeed);
    rightStepper.setMaxSpeed(desiredMaxSpeed);
}