Customer:
I purchased 5 NEMA17 stepper motors and a Dasduino Connect Plus. The driver was sourced separately - a DRV8825. I connected everything in a basic configuration following the setup described at Pololu - DRV8825 Stepper Motor Driver Carrier, High Current (Using the driver).
I used this basic example:
#define stepPin 2
void setup() {
pinMode(stepPin,OUTPUT);
}
void loop() {
for(int x = 0; x < 800; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(100000);
digitalWrite(stepPin,LOW);
delayMicroseconds(100000);
}
}
The step pin of the DRV8825 is connected to PIN IO2 of the Dasduino. The stepper motor has its own separate power supply (12V), with a 100 uF capacitor between the power and ground. The Dasduino is powered via USB. The GND of the stepper motor and Dasduino are connected together. The wiring follows the standard recommendations for getting started with stepper motors.
Unfortunately, instead of rotating in one direction, the motor behaves like a metronome - one pulse left, one pulse right.
I configured VREF to 175mV to limit the maximum current to 350mA according to your documentation. Do you have any ideas where the problem might be?
Original message (Croatian)
Nabavio sam kod vas 5 komada NEMA17 stepper motora te Dasduino Connect Plus. Driver za taj motor niste imali pa sam ga nabavio iz drugog izvora. U pitanju je DRV8825.
Sve skupa sam spojio u nekoj osnovnoj konfiguraciji kako je to opisano npr. na Pololu - DRV8825 Stepper Motor Driver Carrier, High Current (Using the driver).
Koristio sam osnovni primjer:
#define stepPin 2
void setup() {
pinMode(stepPin,OUTPUT);
}
void loop() {
for(int x = 0; x < 800; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(100000);
digitalWrite(stepPin,LOW);
delayMicroseconds(100000);
}
}
Step pin od DRV8825 spojen je na PIN IO2 Dasduina
Stepper motor ima svoje posebno napajanje (12V), stavio sam 100 uF izmedju njegova napajnja. Dasduino se napaja iz racunala (USB kabelom). GND stepper motora i Dasduina je takodjer spojeno.
Pojednostavljeno receno spojeno je kako to predlazu i opisuju svi portali za pocetak rada sa stepper motorima.
Nazalost umjesto da se okrece u jednom te istom smjeru motor radi kao “metronom” – jedan impuls lijevo, drugi desno.
Prema naputku za DRV8825 sam podesio VREF (da bude 175mV) da se maksimalna struja ogranici na 350mA (prema specifikaciji na vasoj stranici).
Imate li vi neku ideju gdje bi mogao biti problem?
Originally submitted via email support on 27 January 2025. Migrated to the forum for community visibility.