hallo
hier is mijn sketch:
const int stepPin = 9;
const int dirPin = 8;
void setup() {
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
}
void loop() {
digitalWrite(dirPin, HIGH);
for (int x = 1000; x < 10000; x++) {
digitalWrite(stepPin, HIGH);
delayMicroseconds(100);
digitalWrite(stepPin, LOW);
delayMicroseconds(100);
}
delay(1000);
}
en hier mijn stappenmotor:
https://reprapworld.nl/products/motors_fans/nema17_stepper_motor_1_8_step_connector_flat_shaft_4_08_kg_cm/
en de datasheet:
de sturing:
ik stuur de stappenmotor aan met een 9V batterij want ik dacht dat iets rond de 10V goed was.
ik hoop dat je hiermee iets bent! ![]()