Steppers on MINI

Stuck? We'll be happy to help!
Post Reply
PaulsM
Posts: 4
Joined: Wed Jun 10, 2020 7:59 pm

Steppers on MINI

Post by PaulsM » Thu Jun 11, 2020 5:43 pm

Hello. I have 4 wire stepper (nema 17). I connected to MINI @ D4, D5, D6, D7. Or second option - 2 wires from both coils to GND and 2 wires to 2 outputs. I cannot get that motor to spin, I tried lot of ways, it just randomly vibrates, tries to spin somewhere, nothing`s clear here. Tried 4 different power supplies. I tried to use the same code I saw on controllino youtube (stepper example for one revolution). I just want it to spin. Can someone help me?
For example
"Stepper myStepper(stepsPerRevolution, 6, 7, 8, 9);" this leaves D2 and D4 leds active all the time and D3/D5 blinks together. Spent 2 days trying. Thanks in advance! Stay safe!

PaulsM
Posts: 4
Joined: Wed Jun 10, 2020 7:59 pm

Re: Steppers on MINI

Post by PaulsM » Fri Jun 12, 2020 12:09 pm

I just trid this simple:
digitalWrite(pin1, HIGH);
digitalWrite(pin2, LOW);

UNO does give LOW, but controllino does not, is that a malfunction or that is how it works?

User avatar
Mr. CONTROLLINO
Posts: 26
Joined: Thu Dec 13, 2018 3:07 pm

Re: Steppers on MINI

Post by Mr. CONTROLLINO » Fri Jun 12, 2020 6:42 pm

Hello PaulsM,


It is working properly. The "problem" is that the CONTROLLINO MINI, MAXI, MAXI-A and also 12 outputs of the MEGA are High-Side Switches.
Imagine a switch ... that is ON and OFF. A switch does not force the output to GND. It simply disconnects.
So you can only drive a unipolar stepper motor with it. So no 4 wire stepper will work. It only works with the 12 half bridge outputs of the MEGA.
And if you use a stepper motor directly with CONTROLLINO ... please make sure it has a high internal resistance. Because CONTROLLINO only has voltage outputs ... there is no special current limitation.


regards
Marco

PaulsM
Posts: 4
Joined: Wed Jun 10, 2020 7:59 pm

Re: Steppers on MINI

Post by PaulsM » Sat Jun 13, 2020 5:54 am

Thank You, Marco :)

Post Reply