kivelo
January 15, 2018, 4:25pm
#1
Hi,
I saw on youtube that controllino can run 2 steppers, i tried but i dont understand pins.
I have one stepper on pins 4-7 with digital out d0-d3, and i have pins 8-9 with digital out d4 and d5. I need two more pins and digital outs.
How do i get d6 and d7 to run together with d4 and d5 like on video for second stepper?
Robin2
January 15, 2018, 4:59pm
#2
What is "controllino" ?
Post a link to its datasheet or user manual.
What stepper motors are you using - post a link to their datasheet.
...R
Stepper Motor Basics
Simple Stepper Code
kivelo
January 15, 2018, 7:20pm
#3
Controllino - https://controllino.biz/controllino/mini/
Stepper - in attachment is datasheet
Link where controllino runs 2 steppers
Code
Stepper myStepper1(stepsPerRevolution, 4, 5, 6, 7)
Stepper myStepper2(stepsPerRevolution, 8, 9, ?, ?).
I canot find output no in upper code
ST5818L3008.pdf (62.6 KB)
Robin2
January 15, 2018, 10:33pm
#4
The Controllino page says its outputs can provide 2 amps.at 12v
Your motor datasheet says it has a coil resistance of 2 ohms in bipolar serial mode. If you provide 12 volts to that motor it will try to draw 6 amps and either the Controllino will be fried or the motor will be fried.
That sort of stepper motor needs a specialized stepper motor driver that can comfortably supply 2.12 amps - I suggest a driver that can at least provide 3 amps.
Have a look at Stepper Motor Basics
...R
kivelo
January 16, 2018, 7:41am
#5
I understand risk and thanks for effort. I m checking possibility, but i dont know how to run stepper on d4-d7. On video it works.
I need to find out is it posible and how?
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html
Can you please tell us your electronics, programming, Arduino, hardware experience?
Thanks.. Tom..
kivelo
January 16, 2018, 8:37am
#7
Hi Tom,
I m agronomist who is trying to drive camera on slider with stepper motors, i drive now one stepper on x, now i need y.
I m wondering can i do it like in video and how?
My expirience is basic, and i use Controllino mini and stepper at this stage.
Robin2
January 16, 2018, 9:35am
#8
If you insist on controlling your stepper motor directly from your Controllino then you need to get a motor that won't take more than 2 amps at 12v. Something like this would meet that requirement but I have no idea whether it would have enough torque for your project.
For the motor in the PDF in Reply #2 an external stepper motor driver is essential.
...R
kivelo
January 16, 2018, 4:24pm
#9
Thanks Robin2,
I will go in future with driver for stepper.
Untill i buy it i m wondering does someone knows how to control it like on video.
I know pinning for stepper 1, but for stepper 2 is a question?
Stepper myStepper2(stepsPerRevolution, 8, 9, ?, ?).
From what I see in the video, it looks like
Stepper myStepper2(stepsPerRevolution, 0, 1, 2, 3).
Jacques
kivelo
January 16, 2018, 6:30pm
#11
Digital 0 - 4
Digital 1 - 5
Digital 2 - 6
Digital 3 - 7
Digital 4 - 8
Digital 5 - 9
Digital 6 - A4
Digital 7 - A5
I used pins 4-7 for stepper1, for stepper2 i have 8+9 - how to use A4 and A5?
Thats why i say:
Stepper myStepper2(stepsPerRevolution, 8, 9, ?, ?).
If you look at the video:here
you will see where the second servo is connected (in black).
kivelo
January 16, 2018, 7:38pm
#13
I understand but which pins i should set a question marks:
Stepper myStepper2(stepsPerRevolution, 8, 9, ?, ?).
I understand but which pins i should set a question marks:
Stepper myStepper2(stepsPerRevolution, 0, 1, 2, 3).
8 should be replaced by 0
9 should be replaced by 1
first ? should be replaced by 2
second ? should be replaced by 3
If you have the same servos as in the video:
Green wire goes in plug 0
Black wire goes in plug 1
Blue wire goes in plug 2
Orange wire goes in plug 3
Jacques
kivelo
January 16, 2018, 8:19pm
#15
Digital 0 - 4
Digital 1 - 5
Digital 2 - 6
Digital 3 - 7
Digital 4 - 8
Digital 5 - 9
Digital 6 - A4
Digital 7 - A5
Here is pair for digital output and pin in arduino. So it is not from 0-7 but 4-9+a4-a5
If you insist on this pinout, then I believe I am not able to help you further.
Good luck in your project.
Jacques
kivelo
January 16, 2018, 8:58pm
#17
Jacques, i tried what you suggest but i dont get signals like i need. What ever i tried i couldnt use d6+d7 like you say.
Can you explain to me;
I have one stepper on pins 4-7 with digital out d0-d3
what pins 4-7 refers to, and what digital out d0-d3 refers to?
kivelo
January 16, 2018, 9:34pm
#19
Digital output. In arduino code
Digital 0 - 4
Digital 1 - 5
Digital 2 - 6
Digital 3 - 7
Digital 4 - 8
Digital 5 - 9
Digital 6 - ?
Digital 7 - ?
Digital output of what? Controllino? Arduino? Stepper?
Arduino code, or Arduino pins? in this case, which Arduino model?