Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →The 3D printer driver — professional precision and movement.
Very important: place the capacitor next to the VMOT and GND pins of the driver, otherwise it will burn instantly when power is applied.
const int stepPin = 3; const int dirPin = 4;
void setup() {
pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT);
}
void loop() {
digitalWrite(dirPin,HIGH); // اتجاه
for(int x = 0; x < 200; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
delay(1000);
}Running the motor without adjusting the small screw (VREF) on the driver to limit the current, which causes the motor or driver to burn.