Control a Stepper Motor using an Arduino, a Joystick and the Easy Driver - Tutorial

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 299

  • @redaalbedane5323
    @redaalbedane5323 8 років тому +48

    #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)

    • @paul7195
      @paul7195 7 років тому

      that is a lot of code that only takes a couple of lines in g code

  • @drunkdonutboy
    @drunkdonutboy 6 років тому +1

    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

    • @BrainybitsCanada
      @BrainybitsCanada  6 років тому

      Thank you for the comment, always great to see that the videos are helping others with their projects!

  • @ivangutowski
    @ivangutowski 4 роки тому

    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

  • @selimshakur3189
    @selimshakur3189 7 років тому +3

    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.

  • @fuzzmew
    @fuzzmew 8 років тому

    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.

  • @donletter9299
    @donletter9299 6 років тому +58

    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.

    • @ThePxr01
      @ThePxr01 5 років тому

      Greetings from Auckland NZ - TOTALLY AGREE WITH YOU.

  • @TechsScience
    @TechsScience Рік тому +1

    Great
    So where will you use this mechanism?

  • @BrainybitsCanada
    @BrainybitsCanada  6 років тому +1

    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!

  • @jayc2469
    @jayc2469 8 років тому

    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(?)

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      +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 :)

  • @hobby_dude_
    @hobby_dude_ 7 років тому +8

    16:10 for action

  • @anthonycruz4435
    @anthonycruz4435 8 років тому +1

    So happy to find this the store and all the other sweet stuff on your page!!!! Subscribed!

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      Thanks for the Sub and for watching of course :)

  • @salmankhan24
    @salmankhan24 4 роки тому +2

    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

  • @georgedukic9955
    @georgedukic9955 9 років тому +1

    You could have used the Case loop instead of all those while loops. would have been nice and clean :)

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +Djordje Djukic That is correct :) A Case loop would have been cleaner! Thanks for watching!

  • @Stuckstede
    @Stuckstede 8 років тому +1

    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.

  • @MsRody2009
    @MsRody2009 5 років тому +1

    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

  • @mubasheer5584
    @mubasheer5584 4 роки тому

    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.

    • @mubasheer5584
      @mubasheer5584 4 роки тому

      But the problem is I have l293d motor shield not easy driver.

  • @erickweil4580
    @erickweil4580 8 років тому +4

    Nice demonstration of a stepper motor, but your code can be smaller, Don't repeat yourself, functions!

  • @eixpata502
    @eixpata502 8 років тому +1

    I wish you made a closer look to the driver. However, I appreciate your work. Thank you! :-)

  • @SunnyWu
    @SunnyWu 8 років тому +4

    That is cool! I had some trouble following the code but thanks for the tutorial. Probably have to take a closer look.

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому +2

      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!

  • @12Keat12
    @12Keat12 8 років тому +2

    Thanks so much! Is there an easy way to use a 6 wire stepper motor with this driver?

  • @Dancopymus
    @Dancopymus 8 років тому +1

    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

  • @simangundeep8770
    @simangundeep8770 5 років тому +2

    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,

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому

      Thanks for taking the time to comment Amir and thank you for watching!

  • @lac4forest
    @lac4forest 6 років тому

    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

  • @gtechninja
    @gtechninja 4 роки тому

    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.

  • @HarshaWijesooriya
    @HarshaWijesooriya 7 років тому

    Can we make a simple Linear Servo using this concept, but to read the signal from an RC receiver, instead of the joystick ?

  • @ScienceFunInnovations
    @ScienceFunInnovations 5 років тому

    Looks like a great way to build a camera slide for filming UA-cam videos. Hope to do that for a future project soon.

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому +1

      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!

  • @s.u.6198
    @s.u.6198 4 роки тому

    a video WITH limit switches would be cool

  • @jaikumaran2607
    @jaikumaran2607 4 роки тому +1

    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!!

    • @netaberger94
      @netaberger94 2 роки тому +1

      got a reply?
      trying to do the same

  • @ronneilcamara5071
    @ronneilcamara5071 9 років тому

    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!

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому +1

      +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!

    • @ronneilcamara5071
      @ronneilcamara5071 9 років тому

      Awesome! Now I know where to buy them. Thanks a lot! :)

  • @mra3709
    @mra3709 7 років тому +2

    thanks for your vid's , wondering how you would control 2 steppers with 1 joystick , X & Y
    tks

  • @abiiexerfpv1987
    @abiiexerfpv1987 6 років тому

    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

  • @teslateam7631
    @teslateam7631 8 років тому +1

    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?

  • @amstudioprojects
    @amstudioprojects 8 років тому +3

    Great project!

  • @thisispav
    @thisispav 8 років тому +5

    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

    • @Jokemeister1
      @Jokemeister1 7 років тому

      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.

  • @4STEVEJOY34
    @4STEVEJOY34 7 років тому +1

    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?

    • @BrainybitsCanada
      @BrainybitsCanada  7 років тому

      That's a good idea about the wings, will check that out. The code is Arduino language based on C/C++. Thanks for watching!

  • @sankyppp
    @sankyppp 4 роки тому

    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?

  • @LegitLeeVelez
    @LegitLeeVelez 2 роки тому

    Can this work with the a4988 stepper motor driver?

  • @makersengineering530
    @makersengineering530 4 роки тому

    Hi, what does Latch/Auto means on a stepper motor driver ? I couldn't notice any differences.

  • @rensole
    @rensole 7 років тому

    would this also be possible by using a press button, telling it to go to position X and then once released go back ?

  • @turbocarr7477
    @turbocarr7477 5 років тому

    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.

  • @SkippyDooDarr
    @SkippyDooDarr 9 років тому

    How did you calculate that 2050 steps were needed to cover the distance of the belt?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +Kev J Wasn't very precise, but did a 100 steps move and measured the distance traveled :) Thanks for watching!

  • @juandavidcorreahincapie9787
    @juandavidcorreahincapie9787 8 років тому +2

    An if i need to control two or more step motors, how can i do? Thanks

  • @myildirim
    @myildirim 9 років тому

    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 ?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @harounhajem7972
    @harounhajem7972 8 років тому

    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.

  • @massadi2210
    @massadi2210 8 років тому

    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 ?

  • @markvk42
    @markvk42 3 роки тому

    nice vid thanks, it would have been much simpler to fit limit switches!

  • @BikerNic
    @BikerNic 6 років тому

    Would this be possible using the Arduino Uno R3, GRBL CNC Shield and DRV8825 driver? How?

  • @Jai_Lopez
    @Jai_Lopez 9 років тому

    why did you not include the input pin from analog joystick? or use the map function ?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @Wrenchmonkey1
    @Wrenchmonkey1 8 років тому +10

    If I print out a treaty on my laser printer, does that make it a treaty printer?

    • @opcomment
      @opcomment 8 років тому

      LOL!

    • @YankeeinSC1
      @YankeeinSC1 8 років тому +5

      No...but the convention for all of this automation was hammered out in the "3D of Versailles"

    • @Mattipedersen
      @Mattipedersen 7 років тому +2

      Too bad the treaty is so one sided that in 20 years, those who imposed it will have to answer to the "3D Reich'

  • @kiwyprojects3594
    @kiwyprojects3594 6 років тому

    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.

  • @jeffflanagan2814
    @jeffflanagan2814 7 років тому

    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.

  • @chaithanyaprasadch3474
    @chaithanyaprasadch3474 4 роки тому

    Thanks so much, can you please do the same with rc controller

  • @JMayhemMusic
    @JMayhemMusic 3 роки тому

    In case any new comers are wondering, there are NO LIMIT SWITCHES in this project. Trust me on this.

  • @anthonycruz4435
    @anthonycruz4435 8 років тому

    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

  • @Livefreeman
    @Livefreeman 6 років тому

    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

  • @sameerkharadkar7946
    @sameerkharadkar7946 9 років тому

    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.

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @ДмитрийЛукьянов-м5о
    @ДмитрийЛукьянов-м5о 8 років тому +2

    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

  • @youpattube1
    @youpattube1 8 років тому

    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 ?

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому +1

      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...

  • @C4pn.K1rk
    @C4pn.K1rk 7 років тому

    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.

  • @coreyjames4137
    @coreyjames4137 6 років тому

    can you write into the code for the stepper motor to spin freely when it is not moving?

  • @RixtronixLAB
    @RixtronixLAB Рік тому

    Cool video shot, thanks for sharing, keep it up :)

  • @InventionTherapy
    @InventionTherapy 7 років тому

    What is the best Arduino to start learning on?

    • @MrDmadness
      @MrDmadness 4 роки тому

      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. :)

  • @benfalk4267
    @benfalk4267 9 років тому

    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.

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

    • @DeanGuilberry2
      @DeanGuilberry2 9 років тому

      +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.

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 9 років тому

    Do you have a link to the 3d printed parts and other parts like the belt and pulley sprocket?
    Thanks

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +zerocool60544 You can find those parts in our store at: brainy-bits.com/robotics/
      Thanks for Watching!

  • @pilluritari
    @pilluritari 7 років тому

    I am noob, please teach me. Is there way to assure that motor has actually completed last step before commanding to do another?

  • @grahamtech
    @grahamtech 7 років тому +1

    can you make a tutorial with l298n motor driver module?

  • @avishaikarat3982
    @avishaikarat3982 7 років тому

    it is seem that the joystick is control only the direction and no also the speed, am I right?

  • @rienwijnsma3410
    @rienwijnsma3410 9 років тому +1

    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

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому +1

      +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!

    • @horstdieblume2
      @horstdieblume2 8 років тому

      +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!! :)

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      +horstdieblume2 I should have that one coming in a week or two. Thanks for the Sub, and for watching of course :)

  • @scienceengineeringandtechn3635
    @scienceengineeringandtechn3635 6 років тому

    can you please tell me about stepper Logic Voltage? current per phase? continuous current per phase? and Operating voltage?

  • @ianturner2229
    @ianturner2229 7 років тому +1

    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.......

  • @RailyardProductions
    @RailyardProductions 7 років тому

    I have some Micro stepper motors, Could I use an Arduino without a driver to control it?

  • @cuauhtemocviramontes7322
    @cuauhtemocviramontes7322 8 років тому

    can use a touch lcd screen to move the motor?. not the analog joystick

  • @ddascott
    @ddascott 8 років тому

    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

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      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!

    • @ddascott
      @ddascott 8 років тому +1

      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 :)

  • @PrathameshJakka
    @PrathameshJakka 7 років тому +1

    How much millimeters is the acrylic? Which power laser do you use to cut acrylic?

    • @BrainybitsCanada
      @BrainybitsCanada  7 років тому

      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.

  • @thenapolitan
    @thenapolitan 9 років тому

    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?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @saadiarozgani2701
    @saadiarozgani2701 5 років тому +1

    Need help please
    Every thing work good but easy driver 3967 Heat so much

    • @mubasheer5584
      @mubasheer5584 4 роки тому

      Check what is current your motor consuming?

  • @ppichicho
    @ppichicho 7 років тому

    Hello what would be the code if I used an L298N driver?

  • @fredmethot6116
    @fredmethot6116 7 років тому

    What did you use to join the two belt end together? Any link to this "fastener" ??

    • @BrainybitsCanada
      @BrainybitsCanada  7 років тому

      Here it is: brainy-bits.com/products/gt2-belt-clip
      Thanks for watching!

  • @ElboxD
    @ElboxD 9 років тому

    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!

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      +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!

  • @williamhuang5329
    @williamhuang5329 2 роки тому

    Hanzhen harmonic drive gear , robot arm gear , automation joint gear , over 30 years experience

  • @sanketgangawane4930
    @sanketgangawane4930 4 роки тому

    Can it be used for horizontal position?

  • @muaathe78
    @muaathe78 8 років тому +1

    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

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому +2

      +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!

    • @panchaldhawal
      @panchaldhawal 8 років тому

      +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! :)

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому +1

      +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!

  • @chaithanyaprasadch3474
    @chaithanyaprasadch3474 4 роки тому

    Can you please help me doing the same with RC controller

  • @anthonycruz4435
    @anthonycruz4435 8 років тому

    So my nematode is a Kysan 1124090 and I can't seem to get it spinning(1400Ma) is this the cause?

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому +2

      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.

  • @freecode.ai-
    @freecode.ai- 7 років тому

    If you just want to see the thing move go to 16:22 your welcome

  • @maulikpatel1275
    @maulikpatel1275 8 років тому

    awesome bru mind blowing can i get in detales with schematic and program arduino

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      +Maulik Patel Hi, thanks for watching! You can find more info (Schematic, code...) on our website here: brainy-bits.com/tutorials/

    • @maulikpatel1275
      @maulikpatel1275 8 років тому

      +Brainy-Bits thanks

  • @Dan19842505
    @Dan19842505 9 років тому

    where did you get thoses motor and pulley bracket?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +SirDjDan They are available at: brainy-bits.com/robotics/
      Thanks for watching!

  • @PLBL
    @PLBL 6 років тому

    How would you do this using a DRV8825 driver?

  • @SkyelarHead
    @SkyelarHead 9 років тому

    Is there a way to use a stepper motor just with an Arduino?

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

    • @SkyelarHead
      @SkyelarHead 9 років тому +1

      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.

  • @davydbar
    @davydbar 4 роки тому

    Can I replace the ease driver with a a4988?

  • @Naddan49
    @Naddan49 9 років тому

    How would you increase the speed of the motor to say one round trip of the clip per second?

    • @JamesLuscher
      @JamesLuscher 9 років тому

      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 ;-)

    • @robertmartinu8803
      @robertmartinu8803 9 років тому

      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.

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @julioramirez4257
    @julioramirez4257 9 років тому

    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

    • @mortennrgaard8144
      @mortennrgaard8144 9 років тому

      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)

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +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!

  • @lizravenwood5317
    @lizravenwood5317 8 років тому +1

    Thanks. Good stuff. Hey do you have the code in its entirety for me and my study buddy to stare at in full?

    • @BrainybitsCanada
      @BrainybitsCanada  8 років тому

      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!

    • @lizravenwood5317
      @lizravenwood5317 8 років тому

      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/

    • @lizravenwood5317
      @lizravenwood5317 8 років тому

      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!

  • @daveklebt7732
    @daveklebt7732 8 років тому

    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?

  • @LogicSpeaks
    @LogicSpeaks 5 років тому

    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.

  • @wojciechpvb7132
    @wojciechpvb7132 9 років тому

    please put instruction how to use KY040 encoder to set up speed for Stepper Motor for constant speed.

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      +Wojciech PVB Thanks you for the suggestion, I will try to put it in one of our future tutorials! Thanks for watching!

    • @wojciechpvb7132
      @wojciechpvb7132 9 років тому

      Thanks . I was looking for that a and still did not find

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      Wojciech PVB Will try to get working on that one soon... Thx again!

    • @wojciechpvb7132
      @wojciechpvb7132 9 років тому

      It will help building me electric skateboard control er

    • @BrainybitsCanada
      @BrainybitsCanada  9 років тому

      Wojciech PVB That would be a great use for it for sure... :)

  • @Maher-
    @Maher- 7 років тому

    How to code the homing, if I want the belt clip to be at a certain position?
    Thanks

    • @BrainybitsCanada
      @BrainybitsCanada  7 років тому

      Did a quick video about Homing stepper motors here: ua-cam.com/video/3odRT6zdzqk/v-deo.html Hope it helps! Thanks for watching!

    • @Maher-
      @Maher- 7 років тому

      Thanks very much for your tutorials I learned allot from them

  • @mysticalsoulqc
    @mysticalsoulqc 4 роки тому

    tu es a Montreal? je suis a verdun.

  • @dugabomber5993
    @dugabomber5993 2 роки тому

    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.

  • @whosjero421
    @whosjero421 5 років тому

    Is it possible to connect 2 steppermotors to 1 arduino ?

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому

      Sure, you can check out this tutorial here: ua-cam.com/video/_dfgyuOC3OI/v-deo.html Hope that helps and thank you for watching!