The way you talk throught he code is so clear. I literally now understand it all. There ahs previously been so much I don't understand that it's all alin and I can't follow, but you talking through each bit made sense.. SOOOO good
Thanks for the video, you explain really well. I work on a project : an automated stockage cupboard. Basically, I have a similar X axis and a Y axis a little bit different built on the X one to allow 2D movements. These explanations may be really usefull for me since I learnt python but not arduino language. I may give you more info when I finish the project if you want to.
It is good that it has good 'hold current', my older controller did not have hold current and motor would be able to be pushed out of place when not moving.
It is incredibly rude to criticize someone's pronunciation of words when all they are doing is sharing information. Please stop it! No matter where you are or what language your native language is, there are going to be variations. I have a friend in England that claims he can drive 25 miles from his home and be unable to understand what anybody is saying. However, they would all claim to be speaking "English." If you are from the states, you should understand at least the notion of different dialects, although they are more spread out. Just watch television to understand what I mean. If the presenter is not speaking their native language, but in yours, then they are making an exceptional effort to share their knowledge. The least you could do is respect that. Done with rant. BTW, thank you, Brainy-Bits, for the video. Subscribed.
Don't forget that I make tutorial pages for most of my tutorials here: brainy-bits.com/tutorials This particular one can be found here: brainy-bits.com/blogs/tutorials/stepper-motor-easy-driver Thanks for watching!
Great little project. When you used an analogue joystick I was hoping that the motor speed would be proportional to joystick position but as it is, the motor appears to move at a fixed speed - and control could be achieved with 2 spst switches(?)
+jayc2469 Did another video using limit switches, you can check it out on our channel here: ua-cam.com/video/dQuTgngoFPQ/v-deo.html Thanks for watching btw :)
hey...awesome tutorial...i want to ask that how to control the stepper motor by joystick using tb6600 motor driver. please make a tutorial on that also
All the loops in this sketch assume that you are using full steps. If you change from full to half or a quarter steps these constants have to change and there in no provision to change them in the sketch.
Muy buen video, como se podría hacer para que al estar en el centro y un botón de la cerca se presione hacia un lado y vuelva solo a su posición y vuelva a presionar la misma cerca del botón hacia el otro lado y vuelva al centro pocicionar; Quiero decir que aga esa operación con solo presionar un botón gracias por todo
My question is identical to the Muaathe Aziz; I would like a program with 2 limit switches, end on the left side and end on the right side (without joystick / Potentiometer) Thanks
wow such a nice tutorial for me, it really helpful since I do not have any experience yet with that little guy (stepper motor), keep going to make a similar project,
Can you program the arduino so you don't have to hold the joystick in position - instead so that nudging the joystick in one direction causes it to displace, and releasing the joystick does not make it return to its original position. cheers
tnx. can I use this for lifting a small weight attaching to the belt in the vertical position? I faced an alignment problem while am using a lead screw. please help me.
Hi Brainy-Bits, this is a wonderful tutorial!! Thanks a lot. Let's say i would like to control 2 or 3 stepper motors simultaneously, each motor needs to reach different angle(preset). For an e.g. all motors are in home position, when the joystick is moved towards left/right, all three motors have to start move towards their preset position/angle. Is that possible? Will you do a tutorial related to it or have any links that will lead to my objective? Thank you!!
Very nice! How is the pulley on the left side(the one that is not connected to the stepper motor) mounted on the black plate? Is it a screw? Can you please take a close picture for me? Thanks!
+Ronneil Camara We print and sell those pulleys in our store here: brainy-bits.com/shop/new/gt2-idler-pulley/ We have 2 models, one with bearing and the other without. Both are mounted using a 4mm screw with nut to the mounting plate. Hope that helps and thanks for watching!
Thanks video awesome, but I have a big question, for control 16 servos we can use a pca9685, but the question is, how we can control 16 motor steppers individually? Exist a module for do this? Like a pca9685 for motor steppers? Thanks a a lot
hi brainy nice work...i use your tutorial to custom my video slide,work fine! but I will like controll full steps of the motor and not back to the center position when i release the joistik. If possible set the speed 'for moving from point A to point B to create time lapse using the joistik button. how can I change your sketch?
Hi there Brainy-Bits, how much weight could that motor pull? Im looking for a motor to add motion to my camera slider. I would attach the belt to the camera carriage. Do you have a video where you show the assembly? thanks
On their website they have a NEMA 17 motor which is rated for a Holding Torque: 2600g/cm (37 oz/in) so the absolute max for a pully of diameter 20mm (approx 3/4") would be 2.6kg but effectively it would not be able to lift it, just hold it. For a horizontal slider it's more than enough and up to say 45 degree incline it should still be plenty assuming you're not adding lots in the way of friction from the slider.
I like your belt clip idea. Have you thought of adding a wing with holes for attaching things to belt. The wing could be cut off if unneeded. What language is your code in?
Hi. I wish to use this on a car clutch, where the position of the potentiometer decides the position f the clutch pedal. Will it be able to hold the clutch weight in its position? Or does the programing needs any changes?
Can i run 12v directly to 12v motor though this joystick and skip the controller since DC motor control means varying the voltage? The potentiometers do just that.
Whats the alternative for Easy Driver for a laser cutter project ? I need to drive X and Y axis, a laser diode and two limit trigger (i guess). So any recommendations ?
+M. Yıldırım The stepper you will be using will indicate which controller to use. Voltage and specially current draw of the motors. Easy Driver is good for small stepper, there's also the Big Driver that can handle more current, if using very beefy motors that requires a lot of torque and draw a lot of current then you need to find a controller with specs that will match the steppers. Hope it helps! Thanks for watching!
Hello, I'm trying to build router table with automatic adjustment for router height and automatic fence position... I want to use 2 nema 23 stepper motor . my system needs is 1) auto-stand system (work without PC) 2) switch for choosing between x or y axis 3) switch for choosing resolution (1x,10x,100x) 4) MPG handwheel for fine adjustment (100 pulses per revolution) one handwheel for both axis, depending on the switch x or y . 5) 2 buttons for each motor for fast adjustment .. can I use arduino for this project ?
+jai Lopez They are many ways to do the same thing, I just chose to do it this way in this tutorial, but if I was to do it again it would probably be different! Using the map function would have been great also! thanks for the comment and for watching!
Hola Brainy-Bits soy de Colombia, me gustaría saber si se puede flashear este código al arduino junto con el "grbl" para que funcionen de manera paralela, me refiero a usarlos al tiempo, si es posible me enseñas a compliar ambos codigos en un solo archivo. de antemano gracias.
please please, I can not figure out how to change the length( i am missing info in vid?) I have tried looking it up to no avail. I also seem to need to change it going from 0 to full as it wont go up only down due to the weight on my cart, but its so lite
ur website is not working. it would be useful if you can name parts or link where to buy them in video description. I want to know where to buy motor driver
I have one 5-phase oriental Stepper motor (PK596BW-N25) which is attached to the drilling machine .Currently this motor speed is controlled by computer program but for some practical reasons I need to control its speed manually by knobs or button . Is it possible ? Do you have any circuit for that.
+sameer kharadkar Hard to say, but if it's a standard stepper motor, you could probably connect it to a motor controller (EasyDriver, BigDriver, etc...) and control it with buttons, rotary encoder all connected to an Arduino. Thanks for watching!
Hello. Can you help to write a sketch for Uno to control Nema17 (a4988) from ir remote. I need nema to do few step steps forward on 1 button, and same steps backward on another button. Please, i will really appreciate if you can
I would like to use a motor (DC or Stepper) to turn a platter display, so that I can rotate the object around. I can do this, but the motor jerks to a start, and I can't figure out how to make it a really really soft start. Any suggestions ?
I'm completing a new tutorial that will be using 2 stepper motors, the tutorial should be out this coming Monday. It will have acceleration and speed control. Stay tuned...
Uno, you can get knock off uno on amazon for about $10 do not buy an arduino brand uno ( $35 ) it is the same board exactly as its clones, but way more pricey. :)
Do you know how you would do this exact thing but pushing something with a lot more weight on the belt? I'm trying create a motorized slide-out bed for a van conversion so it has to push a fair amount of weight. Can you use a belt with notches or might you use a chain like a bike? I'm new to this and to Arduino so I have no idea how something like this is normally done. Thanks.
+Ben Falk Hi, in my opinion a Linear Actuator might be better suited for this application. Since you would probably need a lot of pushing force, no pun intended :). And a simple switch would make the linear actuator go in our out, but of course you could also control it using an Arduino and a relay if you wanted to. You can look here for an example of some actuators models: www.servocity.com/html/180_lbs__thrust_linear_actuato.html#.Vk3_89-rRE4 Hope this helps, thanks for watching!
+Ben Falk A linear screw would work for this but would probably be too expensive. A belt drive system will work and be more economical have less maintenance and will be easier to home engineer/design. Lead screws will eat them selves if not properly square and level. For a belt drive system you will have to have some rails/bearings for the load to ride on and let the belt do the in and out work. You wont have issues if your belt and rails are properly sized of course. I have designed and installed factory automation systems with thousands of pounds of machinery moving in and out on bent drive systems. There are limitations in everything so it is a bit hard to recommend a positioner w/o knowing more about speeds and acceleration deceleration curves but from what I can imagine from your description it probably will move pretty slow and will not have a problem with a belt drive system. Ebay is your friend as there are some extreme savings on automation components. I have seen $10,000 actuators go for $200 you need to keep an eye out for overstock automation goods. Search for something like linear rail or linear slide. Here is a 6.5 foot rail set for decent price. You load would ride on this and the belt would pull it along. www.ebay.com/itm/SBR16-2000mm-linear-slide-guide-16mm-shaft-2-rail-4SBR16UU-bearing-block-CNC-set-/181667687172?hash=item2a4c3ceb04:g:MLoAAMXQBkpSMex3 Good luck.
I love the video you made. What would the code and hardware setup be like for a second stepper motor to make a joystick controlled drawing machine/ cnc ...? Rien Amsterdam, The Netherlands
+Rien Wijnsma Got this question a couple of time :) We will make a tutorial video soon on using multiple stepper motors. Thanks for the suggestion and for watching!
Ithink you have a nasty that is effecting our re-centre operation. The code loop you showed intially had a condition of x > 1025, but the next loop had a condition of x < 1025. so you have totally missed the middle point, because the code says you will NEVER reach 1025, only 1024 - Ho hum.......
Hi there, Thanks for a great tutorial. I am brand new to Arduino but loving the things I have learnt so far. Huge potential for these little products. I have a project where I want to motorize a machine in the workshop which I use to cut finger joints. I will use a stepper motor, easydriver, arduino uno, LCD keypad shield and a button as my hardware. I want to set it up so each time I press the button the motor will move a certain amount (I want this to be adjustable through the keypad shield) and when I long hold the button it will return back to start. I know this is simple code for many people but I would love your help with this. It would save me much headache. Please assist. Thanks in advance
+Chris Villareale Hi Chris, you sure could do that! Check out our other video which uses limits switches to limit the travel of the steppers: ua-cam.com/video/dQuTgngoFPQ/v-deo.html Thanks for watching!
Great project. I have a question, is it possible to make this project without an arduino, that meaning that we could only use common electrical components such as resistor, ic (not an arduino tho), capacitors, and things like that. I'm just curious because of that is possible, it would really really hard to get, right? Hope your reply mate. Thanks again!
+Germán Diego Guisasola Plejo Well everything is possible :) Of course using a microcontroller like the Arduino makes things a LOT easier... it's possible to do this using discrete components, but couldn't help you on that one :) Thanks for watching!
+Muaathe Aziz That's funny because our next tutorial will be doing just that! Anyway you can check the prices for the parts on our tutorial page here: brainy-bits.com/tutorials/stepper-motor-easy-driver/ The tutorial should be available at the beginning of this week if you are interested :) Thanks for watching!
+Brainy-Bits even I also need something like this, but controlled for some specific distance, and after travelling specified distance, it stops right there; instead of coming back to the origin. Any tutorial? Would be happy to know about it! :)
+Dhawal Panchal You can check out these prior tutorials here: ua-cam.com/video/OR5cOzmLVuY/v-deo.html and here: ua-cam.com/video/b_bA5Ha_mec/v-deo.html one uses tact switches to set and move the stepper to a position, and the other uses a keypad and LCD to enter travel distance. Hope that helps and thaks for watching!
Might be! Since the Easy Driver module is rated at 750mA per phase and the stepper you are using is rated at 1.4A per phase. You might need to use the Big Easy Driver that has 2A per phase: brainy-bits.com/shop/modules/big-easy-driver-stepper-motor-driver-2/ or use a different stepper motor that requires less amps. Hope that helps, thanks for watching.
+Skyelar Head Hi, Most motors require much more energy than the Arduino is able to provide directly. Also a motor driver protects the Arduino from the motor, since motors, are inductors, they store electrical energy in magnetic fields. When current is no longer being sent to the motor, the magnetic energy turns back into electrical energy and can damage your Arduino if connected directly. Hope that helps and thanks for watching!
Burt Gummer to change the speed the delay between 'step' commands (1ms delay * 2) needs to be reduced - BUT - if it becomes TOO small the stepper won't be able to move before the next step command is issued ... i.e. stall. The speed can be slowly increased (acceleration/deceleration) which will allow higher (maximum) speed to be reached - but this gets complicated ;-)
I'd start with more teeth on the cogwheel and switch to microstep mode for low speed or precise movements. Increasing the step frequency works if you have a microsecond timer and preferable higher voltages then the motor was designed for - if done right the induction in the motors coils will limit the current to save levels. Beware of mechanical resonances though, they're just as likely a source of trouble as the increasing torque requirements met by power drop due to blind resistance. Esp when you work w/o sensors to confirm the belts position step loss will cause slowly drifting end- and centerpoints.
+Burt Gummer The stepper as a maximum speed at which it can rotate, if you needed more than using a larger diameter pulley would increase the speed. Thanks for watching!
Julio Ramirez If you don't need the motor to lock and hold torque you could do something like this for the middle position instead: while (analogRead(X_pin) > 401 && analogRead(X_pin)
+Julio Ramirez I've made another video here: ua-cam.com/video/dQuTgngoFPQ/v-deo.html that leaves the motor where it is when you release the joystick. Hope it helps! Thanks for watching!
Suggestion: some type of notification to show which parts you have in your store in stock so we can decide which set of parts to buy so we can begin work on a project. THANKS!
Does anyone know how one can wire an analog setup with real-time stepper motor control with easing? I. E. If the joystick is pressed a little bit it goes slow and then accelerates depending how much further you press it. Cool video Btw.
How would I do this and add live camera feed. For a remote control build? I'm wanting to make an air soft turret. Plan is to have it automated and learn image training. Shoot the dogs and cats digging in my trash haha Thank you for the video! Can't wait to try.
#define step_pin 3 // Pin 3 connected to Steps pin on EasyDriver
#define dir_pin 2 // Pin 2 connected to Direction pin
#define MS1 5 // Pin 5 connected to MS1 pin
#define MS2 4 // Pin 4 connected to MS2 pin
#define SLEEP 7 // Pin 7 connected to SLEEP pin
#define X_pin A0 // Pin A0 connected to joystick x axis
int direction;
int steps = 1025;
void setup() {
pinMode(MS1, OUTPUT);
pinMode(MS2, OUTPUT);
pinMode(dir_pin, OUTPUT);
pinMode(step_pin, OUTPUT);
pinMode(SLEEP, OUTPUT);
digitalWrite(SLEEP, HIGH); // Wake up EasyDriver
delay(5); // Wait for EasyDriver wake up
/* Configure type of Steps on EasyDriver:
// MS1 MS2
// LOW LOW = Full Step //
// HIGH LOW = Half Step //
// LOW HIGH = A quarter of Step //
// HIGH HIGH = An eighth of Step //
*/
digitalWrite(MS1, LOW); // Configures to Full Steps
digitalWrite(MS2, LOW); // Configures to Full Steps
}
void loop() {
while(analogRead(X_pin) >= 0 && analogRead(X_pin) 0){
digitalWrite(dir_pin, HIGH);
digitalWrite(step_pin, HIGH);
delay(1);
digitalWrite(step_pin, LOW);
delay(1);
steps--;
}
}
while(analogRead(X_pin) > 100 && analogRead(X_pin) 512){
digitalWrite(dir_pin, HIGH);
digitalWrite(step_pin, HIGH);
delay(1);
digitalWrite(step_pin, LOW);
delay(1);
steps--;
}
}
while(analogRead(X_pin) > 401 && analogRead(X_pin) 1025){
digitalWrite(dir_pin, HIGH);
digitalWrite(step_pin, HIGH);
delay(1);
digitalWrite(step_pin, LOW);
delay(1);
steps--;
}
}
while(analogRead(X_pin) > 601 && analogRead(X_pin) 1535){
digitalWrite(dir_pin, HIGH);
digitalWrite(step_pin, HIGH);
delay(1);
digitalWrite(step_pin, LOW);
delay(1);
steps--;
}
}
while(analogRead(X_pin) > 900 && analogRead(X_pin)
that is a lot of code that only takes a couple of lines in g code
I'm trying to format a code with a keyboard control for a six degree of freedom robot and this was invaluable to me so much clearer now thank you
Thank you for the comment, always great to see that the videos are helping others with their projects!
The way you talk throught he code is so clear. I literally now understand it all. There ahs previously been so much I don't understand that it's all alin and I can't follow, but you talking through each bit made sense.. SOOOO good
Thanks for the video, you explain really well. I work on a project : an automated stockage cupboard. Basically, I have a similar X axis and a Y axis a little bit different built on the X one to allow 2D movements. These explanations may be really usefull for me since I learnt python but not arduino language. I may give you more info when I finish the project if you want to.
It is good that it has good 'hold current', my older controller did not have hold current and motor would be able to be pushed out of place when not moving.
It is incredibly rude to criticize someone's pronunciation of words when all they are doing is sharing information. Please stop it! No matter where you are or what language your native language is, there are going to be variations. I have a friend in England that claims he can drive 25 miles from his home and be unable to understand what anybody is saying. However, they would all claim to be speaking "English." If you are from the states, you should understand at least the notion of different dialects, although they are more spread out. Just watch television to understand what I mean.
If the presenter is not speaking their native language, but in yours, then they are making an exceptional effort to share their knowledge. The least you could do is respect that. Done with rant.
BTW, thank you, Brainy-Bits, for the video. Subscribed.
Greetings from Auckland NZ - TOTALLY AGREE WITH YOU.
Great
So where will you use this mechanism?
Don't forget that I make tutorial pages for most of my tutorials here: brainy-bits.com/tutorials This particular one can be found here: brainy-bits.com/blogs/tutorials/stepper-motor-easy-driver
Thanks for watching!
Great little project. When you used an analogue joystick I was hoping that the motor speed would be proportional to joystick position but as it is, the motor appears to move at a fixed speed - and control could be achieved with 2 spst switches(?)
+jayc2469 Did another video using limit switches, you can check it out on our channel here: ua-cam.com/video/dQuTgngoFPQ/v-deo.html
Thanks for watching btw :)
16:10 for action
Thanks
So happy to find this the store and all the other sweet stuff on your page!!!! Subscribed!
Thanks for the Sub and for watching of course :)
hey...awesome tutorial...i want to ask that how to control the stepper motor by joystick using tb6600 motor driver. please make a tutorial on that also
You could have used the Case loop instead of all those while loops. would have been nice and clean :)
+Djordje Djukic That is correct :) A Case loop would have been cleaner! Thanks for watching!
All the loops in this sketch assume that you are using full steps. If you change from full to half or a quarter steps these constants have to change and there in no provision to change them in the sketch.
Muy buen video, como se podría hacer para que al estar en el centro y un botón de la cerca se presione hacia un lado y vuelva solo a su posición y vuelva a presionar la misma cerca del botón hacia el otro lado y vuelva al centro pocicionar; Quiero decir que aga esa operación con solo presionar un botón gracias por todo
I was looking something like this to control my front wheel of RC car to control with a joystick thanks a lot I will try to workout based on this.
But the problem is I have l293d motor shield not easy driver.
Nice demonstration of a stepper motor, but your code can be smaller, Don't repeat yourself, functions!
I wish you made a closer look to the driver. However, I appreciate your work. Thank you! :-)
That is cool! I had some trouble following the code but thanks for the tutorial. Probably have to take a closer look.
You can check out our tutorials page at : brainy-bits.com/tutorials/ to get the schematic and more information on this tutorial. Thanks for watching!
Thanks so much! Is there an easy way to use a 6 wire stepper motor with this driver?
My question is identical to the Muaathe Aziz; I would like a program with 2 limit switches, end on the left side and end on the right side (without joystick / Potentiometer) Thanks
wow such a nice tutorial for me, it really helpful since I do not have any experience yet with that little guy (stepper motor), keep going to make a similar project,
Thanks for taking the time to comment Amir and thank you for watching!
Can you program the arduino so you don't have to hold the joystick in position - instead so that nudging the joystick in one direction causes it to displace, and releasing the joystick does not make it return to its original position. cheers
tnx. can I use this for lifting a small weight attaching to the belt in the vertical position? I faced an alignment problem while am using a lead screw. please help me.
Can we make a simple Linear Servo using this concept, but to read the signal from an RC receiver, instead of the joystick ?
Looks like a great way to build a camera slide for filming UA-cam videos. Hope to do that for a future project soon.
Funny you should ask, I've done one not too long ago :) You can check it out here: ua-cam.com/video/WzrRIPhIiaU/v-deo.html Thanks for watching!
a video WITH limit switches would be cool
Hi Brainy-Bits, this is a wonderful tutorial!! Thanks a lot.
Let's say i would like to control 2 or 3 stepper motors simultaneously, each motor needs to reach different angle(preset).
For an e.g. all motors are in home position, when the joystick is moved towards left/right, all three motors have to start move towards their preset position/angle.
Is that possible?
Will you do a tutorial related to it or have any links that will lead to my objective?
Thank you!!
got a reply?
trying to do the same
Very nice! How is the pulley on the left side(the one that is not connected to the stepper motor) mounted on the black plate? Is it a screw? Can you please take a close picture for me? Thanks!
+Ronneil Camara We print and sell those pulleys in our store here: brainy-bits.com/shop/new/gt2-idler-pulley/
We have 2 models, one with bearing and the other without. Both are mounted using a 4mm screw with nut to the mounting plate. Hope that helps and thanks for watching!
Awesome! Now I know where to buy them. Thanks a lot! :)
thanks for your vid's , wondering how you would control 2 steppers with 1 joystick , X & Y
tks
Thanks video awesome, but I have a big question, for control 16 servos we can use a pca9685, but the question is, how we can control 16 motor steppers individually? Exist a module for do this? Like a pca9685 for motor steppers? Thanks a a lot
hi brainy nice work...i use your tutorial to custom my video slide,work fine! but I will like controll full steps of the motor and not back to the center position when i release the joistik.
If possible set the speed 'for moving from point A to point B to create time lapse using the joistik button.
how can I change your sketch?
Great project!
Hi there Brainy-Bits, how much weight could that motor pull? Im looking for a motor to add motion to my camera slider. I would attach the belt to the camera carriage. Do you have a video where you show the assembly? thanks
On their website they have a NEMA 17 motor which is rated for a Holding Torque: 2600g/cm (37 oz/in) so the absolute max for a pully of diameter 20mm (approx 3/4") would be 2.6kg but effectively it would not be able to lift it, just hold it. For a horizontal slider it's more than enough and up to say 45 degree incline it should still be plenty assuming you're not adding lots in the way of friction from the slider.
I like your belt clip idea. Have you thought of adding a wing with holes for attaching things to belt.
The wing could be cut off if unneeded. What language is your code in?
That's a good idea about the wings, will check that out. The code is Arduino language based on C/C++. Thanks for watching!
Hi. I wish to use this on a car clutch, where the position of the potentiometer decides the position f the clutch pedal. Will it be able to hold the clutch weight in its position? Or does the programing needs any changes?
Can this work with the a4988 stepper motor driver?
Hi, what does Latch/Auto means on a stepper motor driver ? I couldn't notice any differences.
would this also be possible by using a press button, telling it to go to position X and then once released go back ?
Can i run 12v directly to 12v motor though this joystick and skip the controller since DC motor control means varying the voltage? The potentiometers do just that.
How did you calculate that 2050 steps were needed to cover the distance of the belt?
+Kev J Wasn't very precise, but did a 100 steps move and measured the distance traveled :) Thanks for watching!
An if i need to control two or more step motors, how can i do? Thanks
Will be doing a tutorial video on that very soon! Thanks for the suggestion and for watching btw!
i'll be waiting for it. Thanks
Whats the alternative for Easy Driver for a laser cutter project ? I need to drive X and Y axis, a laser diode and two limit trigger (i guess). So any recommendations ?
+M. Yıldırım The stepper you will be using will indicate which controller to use. Voltage and specially current draw of the motors. Easy Driver is good for small stepper, there's also the Big Driver that can handle more current, if using very beefy motors that requires a lot of torque and draw a lot of current then you need to find a controller with specs that will match the steppers. Hope it helps! Thanks for watching!
Can you save the last position when turning of the Arduino? So you can use that position as a reference next time you boot up.
Hello,
I'm trying to build router table with automatic adjustment for router height and automatic fence position... I want to use 2 nema 23 stepper motor . my system needs is
1) auto-stand system (work without PC)
2) switch for choosing between x or y axis
3) switch for choosing resolution (1x,10x,100x)
4) MPG handwheel for fine adjustment (100 pulses per revolution) one handwheel for both axis, depending on the switch x or y .
5) 2 buttons for each motor for fast adjustment .. can I use arduino for this project ?
nice vid thanks, it would have been much simpler to fit limit switches!
Would this be possible using the Arduino Uno R3, GRBL CNC Shield and DRV8825 driver? How?
why did you not include the input pin from analog joystick? or use the map function ?
+jai Lopez They are many ways to do the same thing, I just chose to do it this way in this tutorial, but if I was to do it again it would probably be different! Using the map function would have been great also! thanks for the comment and for watching!
If I print out a treaty on my laser printer, does that make it a treaty printer?
LOL!
No...but the convention for all of this automation was hammered out in the "3D of Versailles"
Too bad the treaty is so one sided that in 20 years, those who imposed it will have to answer to the "3D Reich'
Hola Brainy-Bits soy de Colombia, me gustaría saber si se puede flashear este código al arduino junto con el "grbl" para que funcionen de manera paralela, me refiero a usarlos al tiempo, si es posible me enseñas a compliar ambos codigos en un solo archivo. de antemano gracias.
How would i write the code if I didn't have an endpoint? I just want to use a joystick to make the stepper go either direction without any stops.
Thanks so much, can you please do the same with rc controller
In case any new comers are wondering, there are NO LIMIT SWITCHES in this project. Trust me on this.
please please, I can not figure out how to change the length( i am missing info in vid?) I have tried looking it up to no avail. I also seem to need to change it going from 0 to full as it wont go up only down due to the weight on my cart, but its so lite
ur website is not working. it would be useful if you can name parts or link where to buy them in video description. I want to know where to buy motor driver
I have one 5-phase oriental Stepper motor (PK596BW-N25) which is attached to the drilling machine .Currently this motor speed is controlled by computer program but for some practical reasons I need to control its speed manually by knobs or button . Is it possible ? Do you have any circuit for that.
+sameer kharadkar Hard to say, but if it's a standard stepper motor, you could probably connect it to a motor controller (EasyDriver, BigDriver, etc...) and control it with buttons, rotary encoder all connected to an Arduino. Thanks for watching!
Hello. Can you help to write a sketch for Uno to control Nema17 (a4988) from ir remote. I need nema to do few step steps forward on 1 button, and same steps backward on another button.
Please, i will really appreciate if you can
I would like to use a motor (DC or Stepper) to turn a platter display, so that I can rotate the object around. I can do this, but the motor jerks to a start, and I can't figure out how to make it a really really soft start. Any suggestions ?
I'm completing a new tutorial that will be using 2 stepper motors, the tutorial should be out this coming Monday. It will have acceleration and speed control. Stay tuned...
Any way to do away with the 1025 thing and just leave the belt where it is when the joystick is let go? I just can't wrap my head around this code.
can you write into the code for the stepper motor to spin freely when it is not moving?
Cool video shot, thanks for sharing, keep it up :)
What is the best Arduino to start learning on?
Uno, you can get knock off uno on amazon for about $10 do not buy an arduino brand uno ( $35 ) it is the same board exactly as its clones, but way more pricey. :)
Do you know how you would do this exact thing but pushing something with a lot more weight on the belt? I'm trying create a motorized slide-out bed for a van conversion so it has to push a fair amount of weight. Can you use a belt with notches or might you use a chain like a bike? I'm new to this and to Arduino so I have no idea how something like this is normally done. Thanks.
+Ben Falk Hi, in my opinion a Linear Actuator might be better suited for this application. Since you would probably need a lot of pushing force, no pun intended :). And a simple switch would make the linear actuator go in our out, but of course you could also control it using an Arduino and a relay if you wanted to. You can look here for an example of some actuators models: www.servocity.com/html/180_lbs__thrust_linear_actuato.html#.Vk3_89-rRE4
Hope this helps, thanks for watching!
+Ben Falk
A linear screw would work for this but would probably be too expensive.
A belt drive system will work and be more economical have less maintenance and will be easier to home engineer/design.
Lead screws will eat them selves if not properly square and level.
For a belt drive system you will have to have some rails/bearings for the load to ride on and let the belt do the in and out work. You wont have issues if your belt and rails are properly sized of course.
I have designed and installed factory automation systems with thousands of pounds of machinery moving in and out on bent drive systems.
There are limitations in everything so it is a bit hard to recommend a positioner w/o knowing more about speeds and acceleration deceleration curves but from what I can imagine from your description it probably will move pretty slow and will not have a problem with a belt drive system.
Ebay is your friend as there are some extreme savings on automation components. I have seen $10,000 actuators go for $200 you need to keep an eye out for overstock automation goods.
Search for something like linear rail or linear slide.
Here is a 6.5 foot rail set for decent price. You load would ride on this and the belt would pull it along.
www.ebay.com/itm/SBR16-2000mm-linear-slide-guide-16mm-shaft-2-rail-4SBR16UU-bearing-block-CNC-set-/181667687172?hash=item2a4c3ceb04:g:MLoAAMXQBkpSMex3
Good luck.
Do you have a link to the 3d printed parts and other parts like the belt and pulley sprocket?
Thanks
+zerocool60544 You can find those parts in our store at: brainy-bits.com/robotics/
Thanks for Watching!
I am noob, please teach me. Is there way to assure that motor has actually completed last step before commanding to do another?
can you make a tutorial with l298n motor driver module?
it is seem that the joystick is control only the direction and no also the speed, am I right?
I love the video you made. What would the code and hardware setup be like for a second stepper motor to make a joystick controlled drawing machine/ cnc ...?
Rien
Amsterdam, The Netherlands
+Rien Wijnsma Got this question a couple of time :) We will make a tutorial video soon on using multiple stepper motors. Thanks for the suggestion and for watching!
+Brainy-Bits
Nice video, you have my subscription! Do you already know when you will upload the video using multiple steppers? I really need it!! :)
+horstdieblume2 I should have that one coming in a week or two. Thanks for the Sub, and for watching of course :)
can you please tell me about stepper Logic Voltage? current per phase? continuous current per phase? and Operating voltage?
Ithink you have a nasty that is effecting our re-centre operation. The code loop you showed intially had a condition of x > 1025, but the next loop had a condition of x < 1025. so you have totally missed the middle point, because the code says you will NEVER reach 1025, only 1024 - Ho hum.......
I have some Micro stepper motors, Could I use an Arduino without a driver to control it?
can use a touch lcd screen to move the motor?. not the analog joystick
Hi there,
Thanks for a great tutorial. I am brand new to Arduino but loving the things I have learnt so far. Huge potential for these little products.
I have a project where I want to motorize a machine in the workshop which I use to cut finger joints.
I will use a stepper motor, easydriver, arduino uno, LCD keypad shield and a button as my hardware.
I want to set it up so each time I press the button the motor will move a certain amount (I want this to be adjustable through the keypad shield) and when I long hold the button it will return back to start. I know this is simple code for many people but I would love your help with this. It would save me much headache.
Please assist.
Thanks in advance
I've done something similar, you can check it out here:
ua-cam.com/video/b_bA5Ha_mec/v-deo.html
Hope that helps and thank you for watching!
Brainy-Bits Hi
Many many thanks and sorry for the late response. I will study those details and get back to you.
Very exciting projects :)
How much millimeters is the acrylic? Which power laser do you use to cut acrylic?
The one showed in this video is 3mm thick. We use a 80W laser, but we can cut much thicker than that if we wanted. Thanks for watching btw.
not sure if this has been asked. I'd like to control an xy gantry setup with this type of control. could it be done with this setup?
+Chris Villareale Hi Chris, you sure could do that! Check out our other video which uses limits switches to limit the travel of the steppers: ua-cam.com/video/dQuTgngoFPQ/v-deo.html
Thanks for watching!
Need help please
Every thing work good but easy driver 3967 Heat so much
Check what is current your motor consuming?
Hello what would be the code if I used an L298N driver?
What did you use to join the two belt end together? Any link to this "fastener" ??
Here it is: brainy-bits.com/products/gt2-belt-clip
Thanks for watching!
Great project. I have a question, is it possible to make this project without an arduino, that meaning that we could only use common electrical components such as resistor, ic (not an arduino tho), capacitors, and things like that. I'm just curious because of that is possible, it would really really hard to get, right? Hope your reply mate. Thanks again!
+Germán Diego Guisasola Plejo Well everything is possible :) Of course using a microcontroller like the Arduino makes things a LOT easier... it's possible to do this using discrete components, but couldn't help you on that one :) Thanks for watching!
Hanzhen harmonic drive gear , robot arm gear , automation joint gear , over 30 years experience
Can it be used for horizontal position?
How much is the system cost? I need some think like that but to be controlled not by joystick but already programmed for specific distance
+Muaathe Aziz That's funny because our next tutorial will be doing just that! Anyway you can check the prices for the parts on our tutorial page here: brainy-bits.com/tutorials/stepper-motor-easy-driver/
The tutorial should be available at the beginning of this week if you are interested :) Thanks for watching!
+Brainy-Bits even I also need something like this, but controlled for some specific distance, and after travelling specified distance, it stops right there; instead of coming back to the origin. Any tutorial?
Would be happy to know about it! :)
+Dhawal Panchal You can check out these prior tutorials here: ua-cam.com/video/OR5cOzmLVuY/v-deo.html and here: ua-cam.com/video/b_bA5Ha_mec/v-deo.html one uses tact switches to set and move the stepper to a position, and the other uses a keypad and LCD to enter travel distance. Hope that helps and thaks for watching!
Can you please help me doing the same with RC controller
So my nematode is a Kysan 1124090 and I can't seem to get it spinning(1400Ma) is this the cause?
Might be! Since the Easy Driver module is rated at 750mA per phase and the stepper you are using is rated at 1.4A per phase. You might need to use the Big Easy Driver that has 2A per phase: brainy-bits.com/shop/modules/big-easy-driver-stepper-motor-driver-2/ or use a different stepper motor that requires less amps. Hope that helps, thanks for watching.
If you just want to see the thing move go to 16:22 your welcome
awesome bru mind blowing can i get in detales with schematic and program arduino
+Maulik Patel Hi, thanks for watching! You can find more info (Schematic, code...) on our website here: brainy-bits.com/tutorials/
+Brainy-Bits thanks
where did you get thoses motor and pulley bracket?
+SirDjDan They are available at: brainy-bits.com/robotics/
Thanks for watching!
How would you do this using a DRV8825 driver?
Is there a way to use a stepper motor just with an Arduino?
+Skyelar Head Hi, Most motors require much more energy than the Arduino is able to provide directly. Also a motor driver protects the Arduino from the motor, since motors, are inductors, they store electrical energy in magnetic fields. When current is no longer being sent to the motor, the magnetic energy turns back into electrical energy and can damage your Arduino if connected directly. Hope that helps and thanks for watching!
Brainy-Bits Thank you so much for a quick response! That makes complete sense, I'll make sure to buy some motor drivers so i don't break my arduino.
Can I replace the ease driver with a a4988?
How would you increase the speed of the motor to say one round trip of the clip per second?
Burt Gummer to change the speed the delay between 'step' commands (1ms delay * 2) needs to be reduced - BUT - if it becomes TOO small the stepper won't be able to move before the next step command is issued ... i.e. stall. The speed can be slowly increased (acceleration/deceleration) which will allow higher (maximum) speed to be reached - but this gets complicated ;-)
I'd start with more teeth on the cogwheel and switch to microstep mode for low speed or precise movements. Increasing the step frequency works if you have a microsecond timer and preferable higher voltages then the motor was designed for - if done right the induction in the motors coils will limit the current to save levels. Beware of mechanical resonances though, they're just as likely a source of trouble as the increasing torque requirements met by power drop due to blind resistance. Esp when you work w/o sensors to confirm the belts position step loss will cause slowly drifting end- and centerpoints.
+Burt Gummer The stepper as a maximum speed at which it can rotate, if you needed more than using a larger diameter pulley would increase the speed. Thanks for watching!
what if you want to make the stepper to stop when you let go of the joystick without it going back to the start position
Julio Ramirez
If you don't need the motor to lock and hold torque you could do something like this for the middle position instead:
while (analogRead(X_pin) > 401 && analogRead(X_pin)
+Julio Ramirez I've made another video here: ua-cam.com/video/dQuTgngoFPQ/v-deo.html that leaves the motor where it is when you release the joystick. Hope it helps! Thanks for watching!
Thanks. Good stuff. Hey do you have the code in its entirety for me and my study buddy to stare at in full?
Check out our tutorials page at : brainy-bits.com/tutorials/ to get the schematic and more information on most of our tutorials. Thanks for watching!
Thanks. I did, and we found actually another project we're going to work on. brainy-bits.com/tutorials/stepper-motor-with-joystick-and-limit-switches/
Suggestion: some type of notification to show which parts you have in your store in stock so we can decide which set of parts to buy so we can begin work on a project. THANKS!
what if you wanted to control multiple stepper motors? could someone be able to control 8 or 12 with a single Arduino? perhaps with Mega?
Does anyone know how one can wire an analog setup with real-time stepper motor control with easing? I. E. If the joystick is pressed a little bit it goes slow and then accelerates depending how much further you press it. Cool video Btw.
please put instruction how to use KY040 encoder to set up speed for Stepper Motor for constant speed.
+Wojciech PVB Thanks you for the suggestion, I will try to put it in one of our future tutorials! Thanks for watching!
Thanks . I was looking for that a and still did not find
Wojciech PVB Will try to get working on that one soon... Thx again!
It will help building me electric skateboard control er
Wojciech PVB That would be a great use for it for sure... :)
How to code the homing, if I want the belt clip to be at a certain position?
Thanks
Did a quick video about Homing stepper motors here: ua-cam.com/video/3odRT6zdzqk/v-deo.html Hope it helps! Thanks for watching!
Thanks very much for your tutorials I learned allot from them
tu es a Montreal? je suis a verdun.
How would I do this and add live camera feed. For a remote control build? I'm wanting to make an air soft turret. Plan is to have it automated and learn image training. Shoot the dogs and cats digging in my trash haha
Thank you for the video! Can't wait to try.
Is it possible to connect 2 steppermotors to 1 arduino ?
Sure, you can check out this tutorial here: ua-cam.com/video/_dfgyuOC3OI/v-deo.html Hope that helps and thank you for watching!