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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ค. 2015
  • Let's see how to control a Stepper motor with an Analog Joystick using an UNO and the Easy Driver motor driver.
    Check out our tutorials page at : brainy-bits.com/tutorials/ to get the schematic and more information on this tutorial.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 299

  • @ivangutowski
    @ivangutowski 3 ปีที่แล้ว

    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

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

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

  • @SunnyWu
    @SunnyWu 7 ปีที่แล้ว +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  7 ปีที่แล้ว +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!

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

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

  • @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 4 ปีที่แล้ว

      Greetings from Auckland NZ - TOTALLY AGREE WITH YOU.

  • @amstudioprojects
    @amstudioprojects 7 ปีที่แล้ว +3

    Great project!

  • @FloodDickHPC
    @FloodDickHPC 3 ปีที่แล้ว +2

    Thanks for the video, it would be really helpful if you could do a similar one to configure a stepper motor to use it with a controller

  • @MrRenoman2011
    @MrRenoman2011 7 ปีที่แล้ว

    Thanks so much for the great video

  • @ScienceFunInnovations
    @ScienceFunInnovations 4 ปีที่แล้ว

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

    • @BrainybitsCanada
      @BrainybitsCanada  4 ปีที่แล้ว +1

      Funny you should ask, I've done one not too long ago :) You can check it out here: th-cam.com/video/WzrRIPhIiaU/w-d-xo.html Thanks for watching!

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

  • @12Keat12
    @12Keat12 7 ปีที่แล้ว +2

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

  • @eixpata502
    @eixpata502 8 ปีที่แล้ว +1

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

  • @redaalbedane5323
    @redaalbedane5323 8 ปีที่แล้ว +47

    #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 6 ปีที่แล้ว

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

  • @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 6 ปีที่แล้ว

      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.

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

  • @teslateam7631
    @teslateam7631 7 ปีที่แล้ว +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?

  • @hoagelectronicsproductdesi56
    @hoagelectronicsproductdesi56 8 ปีที่แล้ว

    Great demo video!

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +12th Man Airplane Thanks for the comment and for watching!

  • @derekcarter4530
    @derekcarter4530 7 ปีที่แล้ว

    awesome video! very informative

    • @BrainybitsCanada
      @BrainybitsCanada  7 ปีที่แล้ว +1

      Thanks for watching! We have more tutorials using stepper motors on our TH-cam channel, you can check them out here: th-cam.com/channels/H2m9XX8jSyVMkZUXwETPTw.html

  • @thomascziesla3768
    @thomascziesla3768 7 ปีที่แล้ว +1

    Thanks. Good tutourial.

  • @tramot4337
    @tramot4337 4 ปีที่แล้ว

    it is useful for me, thanks

  • @Bianchi77
    @Bianchi77 11 หลายเดือนก่อน

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

  • @andreb.8266
    @andreb.8266 4 ปีที่แล้ว +1

    Thank you for the video.

  • @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: th-cam.com/video/dQuTgngoFPQ/w-d-xo.html
      Thanks for watching btw :)

  • @erickweil4580
    @erickweil4580 7 ปีที่แล้ว +4

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

  • @wb_16
    @wb_16 ปีที่แล้ว

    Thank you for the help

  • @mra3709
    @mra3709 7 ปีที่แล้ว +2

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

  • @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

  • @BikerNic
    @BikerNic 6 ปีที่แล้ว

    Nice video.

  • @Seyfettin0
    @Seyfettin0 7 ปีที่แล้ว

    It's cool,thank you for sharing it

    • @BrainybitsCanada
      @BrainybitsCanada  7 ปีที่แล้ว

      Thanks for watching! Check out our TH-cam channel, we have many more tutorials using Stepper Motors:
      th-cam.com/channels/H2m9XX8jSyVMkZUXwETPTw.html Also you can find more information about all of our tutorial at our website: brainy-bits.com/tutorials/

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

  • @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

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

  • @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?

  • @digitalbrain7379
    @digitalbrain7379 5 ปีที่แล้ว

    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

  • @margaritissotiris5882
    @margaritissotiris5882 8 ปีที่แล้ว

    Nice video;) I just subscribed

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Tech Insider Thanks for the Sub and for watching! :)

  • @user-sh3xj1hn9f
    @user-sh3xj1hn9f 7 ปีที่แล้ว +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

  • @kiwyprojects3594
    @kiwyprojects3594 5 ปีที่แล้ว

    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.

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

  • @Stuckstede
    @Stuckstede 7 ปีที่แล้ว +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.

  • @hobby_dude_
    @hobby_dude_ 6 ปีที่แล้ว +8

    16:10 for action

  • @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

  • @markvk42
    @markvk42 3 ปีที่แล้ว

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

  • @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 ?

  • @rienwijnsma3410
    @rienwijnsma3410 8 ปีที่แล้ว +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  8 ปีที่แล้ว +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 :)

  • @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

  • @turbocarr7477
    @turbocarr7477 4 ปีที่แล้ว

    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.

  • @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 ?

  • @TechsScience
    @TechsScience ปีที่แล้ว +1

    Great
    So where will you use this mechanism?

  • @grahamtech
    @grahamtech 7 ปีที่แล้ว +1

    can you make a tutorial with l298n motor driver module?

  • @makerspace421
    @makerspace421 6 ปีที่แล้ว

    can you please tell me where you got thoughs moters

  • @maytuoicam3trong1
    @maytuoicam3trong1 5 ปีที่แล้ว +1

    👍 good job

  • @ElboxD
    @ElboxD 8 ปีที่แล้ว

    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!

  • @cuauhtemocviramontes7322
    @cuauhtemocviramontes7322 8 ปีที่แล้ว

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

  • @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 ?

  • @makersengineering530
    @makersengineering530 4 ปีที่แล้ว

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

  • @Haza3137
    @Haza3137 7 ปีที่แล้ว

    so cool man

  • @ddascott
    @ddascott 7 ปีที่แล้ว

    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  7 ปีที่แล้ว

      I've done something similar, you can check it out here:
      th-cam.com/video/b_bA5Ha_mec/w-d-xo.html
      Hope that helps and thank you for watching!

    • @ddascott
      @ddascott 7 ปีที่แล้ว +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 :)

  • @scienceengineeringandtechn3635
    @scienceengineeringandtechn3635 5 ปีที่แล้ว

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

  • @RailyardProductions
    @RailyardProductions 6 ปีที่แล้ว

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

  • @ernandofranco8448
    @ernandofranco8448 8 ปีที่แล้ว

    Very cool.thank you share this projet.

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Ernando Franco You are welcome! Thanks for watching!

  • @lac4forest
    @lac4forest 5 ปีที่แล้ว

    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

  • @sanketgangawane4930
    @sanketgangawane4930 4 ปีที่แล้ว

    Can it be used for horizontal position?

  • @valorantmostwatchedclipsan9150
    @valorantmostwatchedclipsan9150 7 ปีที่แล้ว

    what stepper motor you used ?

  • @C4pn.K1rk
    @C4pn.K1rk 6 ปีที่แล้ว

    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.

  • @venug2617
    @venug2617 6 ปีที่แล้ว

    very good...............

  • @BikerNic
    @BikerNic 6 ปีที่แล้ว

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

  • @gamingengineer4749
    @gamingengineer4749 6 ปีที่แล้ว

    Where is your store link do you ship to middle east?

  • @ronneilcamara5071
    @ronneilcamara5071 8 ปีที่แล้ว

    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  8 ปีที่แล้ว +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 8 ปีที่แล้ว

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

  • @PrathameshJakka
    @PrathameshJakka 6 ปีที่แล้ว +1

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

    • @BrainybitsCanada
      @BrainybitsCanada  6 ปีที่แล้ว

      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.

  • @mustafaakram9197
    @mustafaakram9197 6 ปีที่แล้ว +1

    thanks

  • @chaithanyaprasadch3474
    @chaithanyaprasadch3474 3 ปีที่แล้ว

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

  • @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

  • @fredmethot6116
    @fredmethot6116 6 ปีที่แล้ว

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

    • @BrainybitsCanada
      @BrainybitsCanada  6 ปีที่แล้ว

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

  • @coreyjames4137
    @coreyjames4137 5 ปีที่แล้ว

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

  • @benfalk4267
    @benfalk4267 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +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 8 ปีที่แล้ว

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

  • @thenapolitan
    @thenapolitan 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +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: th-cam.com/video/dQuTgngoFPQ/w-d-xo.html
      Thanks for watching!

  • @myildirim
    @myildirim 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

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

  • @s.u.6198
    @s.u.6198 3 ปีที่แล้ว

    a video WITH limit switches would be cool

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 8 ปีที่แล้ว

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

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

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

  • @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?

  • @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: th-cam.com/video/OR5cOzmLVuY/w-d-xo.html and here: th-cam.com/video/b_bA5Ha_mec/w-d-xo.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!

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

  • @LogicSpeaks
    @LogicSpeaks 4 ปีที่แล้ว

    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.

  • @FutureAIDev2015
    @FutureAIDev2015 8 ปีที่แล้ว

    How would I adapt this to use servos as drive wheels for a rover?

    • @MrDmadness
      @MrDmadness 4 ปีที่แล้ว

      Servo is a poor choice for a drive wheel, you need a DC motor ideally, servos are more for light duty functions I.e. rc car has a dc motor to run wheels and a servo to turn non drive wheels

  • @MegaClaudj
    @MegaClaudj 5 ปีที่แล้ว

    I need to do the same, but with drivers l293 or l298 ... who helps me?

  • @PLBL
    @PLBL 6 ปีที่แล้ว

    How would you do this using a DRV8825 driver?

  • @youpattube1
    @youpattube1 7 ปีที่แล้ว

    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  7 ปีที่แล้ว +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...

  • @sameerkharadkar7946
    @sameerkharadkar7946 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

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

  • @ppichicho
    @ppichicho 7 ปีที่แล้ว

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

  • @Wrenchmonkey1
    @Wrenchmonkey1 7 ปีที่แล้ว +10

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

    • @opcomment
      @opcomment 7 ปีที่แล้ว

      LOL!

    • @YankeeinSC1
      @YankeeinSC1 7 ปีที่แล้ว +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'

  • @LegitLeeVelez
    @LegitLeeVelez ปีที่แล้ว

    Can this work with the a4988 stepper motor driver?

  • @Livefreeman
    @Livefreeman 5 ปีที่แล้ว

    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

  • @calva141
    @calva141 9 ปีที่แล้ว

    thanks.

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +jean-pierre Duchemin You're welcome :) Thanks for watching!

  • @davydbar
    @davydbar 3 ปีที่แล้ว

    Can I replace the ease driver with a a4988?

  • @Jai_Lopez
    @Jai_Lopez 8 ปีที่แล้ว

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

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

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

  • @avishaikarat3982
    @avishaikarat3982 7 ปีที่แล้ว

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

  • @lizravenwood5317
    @lizravenwood5317 7 ปีที่แล้ว +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  7 ปีที่แล้ว

      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 7 ปีที่แล้ว

      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 7 ปีที่แล้ว

      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!