TB6600 Stepper Driver + Arduino + NEMA Motor Wiring and Control (Uno Mega Nano)

Поділитися
Вставка
  • Опубліковано 7 чер 2024
  • This tutorial will talk you through how to wire a TB6600 stepper driver into a stepper motor, an arduino and a power supply. Then will teach you how to control using the Arduino IDE.
    If you have any questions then please leave a comment :)
    Link for Arduino IDE
    www.arduino.cc/en/software
  • Наука та технологія

КОМЕНТАРІ • 54

  • @jonathanwright1507
    @jonathanwright1507 3 місяці тому +3

    I have tried so many wire configs from the internet & this is the only one that worked, because, I found a 3018 controller board which has digital out just before the "on-board" stepper drivers & shorting the ENA+ to ground got it working, thanks...saves me using mach3 on my larger home made cnc, which is a headache to setup,Thanks...

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

    Thanks for this Henry. I'm ready to go from PWM to steppers. 🙂

  • @analogwave2
    @analogwave2 2 місяці тому

    Great video, got me up and running in a few minutes. Thank you!

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

    This is a very well done video. Simple and clear. Thank you!

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

    Thank you for this video. Very clear and informative.

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

      Thank you, I really appreciate the comment 😊

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

    Brilliant concise video. Thanks.

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

    Creative video,thanks :)

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

    Very useful. Thank you

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

    hello, what is the difference between a common anode assembly and a common cathode? Will the engine run differently?

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

    can you make a video on how you can wire the tb6600 to a ramps1.4 or mks gen l v.0 mother board for a 3d printer?

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

    Thanks for the tutotial Henry, I'd been struggling with this and yours is very clear. However, mine only works if instead of connecting ENA-, ENA+, DIR+ and PUL+ to ground as you say, I instead connect them to 5V. Until then I got no movement, but with 5v it works as per the rest of your description. Do you know what the reason for this might be? I only swapped it as I'd seen on another tutorial that they used 5V, but I found the rest of their description complicated. I'd be interested in your view so I can learn more. Thanks again

    • @KW-ei3pi
      @KW-ei3pi 10 місяців тому

      I don't believe that the wiring diagram shows what you describe. It shows all negative pins on the driver connected to ground, DIR+ and PUL+ connected to digital pins on the Arduino, and they are set to HIGH (5v) in the code.
      I also had questions, but the poster did not reply.

  • @KW-ei3pi
    @KW-ei3pi 11 місяців тому

    Very good tutorial. Could you tell me why the ENA+ and ENA- pins are jumpered together?
    I see most tutorials leave both unconnected, which I think defaults to Enabled.
    Also, I didn't catch what the "While" statement does, as you went over that pretty fast. Thanks!

    • @KrisztianVarga1993
      @KrisztianVarga1993 5 місяців тому

      Hey! I don't know about the ENA pins, but the while at the end of the code basically never exits and since there is nothing in it it basically stops the loop. It would be the same effect if he wrote everything in the setup.

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

    A really useful video thank you, I have a question regarding a project I am about to try and build, and that is how do you know what size stepper motor to buy for the project you are proposing to build? I want to build a unit that operates as a lift in what is commonly known as z axis so it is lifting and holding a load and lowering and still controlling that same load.

    • @KW-ei3pi
      @KW-ei3pi 10 місяців тому

      I'm doing the same thing, I think. I'm trying to build a Z-axis power feed for a Bridgeport milling machine. I'm not finished yet, but I'm trying a NEMA 34 with a 4:1 timing pulley arrangement.

  • @olanordmann7836
    @olanordmann7836 24 дні тому

    I am currently using arduino+cnc shield, this drives 3 stepper motors in my cnc.
    Do I need 3 of these TB6600 to drive 3 stepper motors?

  • @pham3383
    @pham3383 Місяць тому

    i know i a quite old vid,but is it ok if i do 24v-1A current as input from the driver for this motor?
    will it affect the perf alot(will it destroy my motor?)
    is 24v-.5A mandatory?

  • @Ziplock9000
    @Ziplock9000 5 місяців тому

    why not use PWN pin insted of manually setting the pins value>?

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

    Excellent.

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

    can you please explain how the code achieved a full step?

  • @karkashashankkumar253
    @karkashashankkumar253 21 день тому

    What's the code for rotating the motor up to the desired angle

  • @gabdan1000
    @gabdan1000 9 місяців тому

    How come on some cnc show the signal on some cnc circuits positive 5 common and on others negative is com😢

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

    Thanks a lot. Very helpful for beginners like me. But how I will connect to power supply. I have one adaptor to use in Arduino board. Do I need to buy another adapter for controller power supply?

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

      You can get a 24v to 5v converter which you can wire in-between the 24v power supply and the Ardunio so everything will be supplied by one power supply, rather than having multiple power supplies. Have a look for a 24v dc to 5v dc step down converter 😊

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

      ​@@henrycawley2 thanks a lot. I followed your system but my motor is vibrating not spinning. Cant solve the problem need your help.

  • @Stefan_Boerjesson
    @Stefan_Boerjesson Рік тому +2

    I've been buying steppers and drivers for a few years. Every item was checked ok at delivery. Now some year later a NEMA 23 and a modern TB6600 produces 15% to 30% more steps than commanded. This happens both using the test code You showed but also when using AccelStepper library. I've never faced this before. Any ideas?

    • @KW-ei3pi
      @KW-ei3pi 10 місяців тому

      Could it be the Microstep setting on the Driver?

    • @Stefan_Boerjesson
      @Stefan_Boerjesson 10 місяців тому

      @@KW-ei3pi It's possible but I need it. The stepper is turning a rotating table and resolution is often important. The solution was dismissing the 24 volt 17 Amp and using a 12 volt 20 Amp supply.

  • @mariomattiadimuro5185
    @mariomattiadimuro5185 Місяць тому

    for some reasons mi Nema17 vibrate instead of rotate. I don't know how to figure out

  • @rodrigoa.velascojr.739
    @rodrigoa.velascojr.739 2 роки тому

    If I only have a power supply rated 0.2A, 21V, will tb6600 be able to output at least 2 amps?

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

      Hello, I don't believe so, I think it will cap the current to 0.2A

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

      power need be curret important near motor max current 1,5-2A then working, power supply have very cheap buy. or search salvage yard have lot old computer power etc,

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

    Hey dude, my cnc machine has 2 stepper motor on X axis.How to wire the second driver into the arduino uno ???

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

      Hey, just wire the stepper motors cables into the same points on the stepper driver. (Into tha A-, A+, B-, B+ terminals) you may need to adjust the amps to power both steppers

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

    you have ENA+(5v) hooked up to ground in your diagram. Is that right?

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

      i was woundering them same. very new to this and was just curious

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

      Hey, yes I have the ENA pins wired up to ground. If you want to you can have one of the ENA pins connected to one of the Arduino I/O pins to turn the power going to the stepper motor off and on. This is useful to stop the stepper motors from drawing current when they are not being used :)

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

    Hi why I cannot turn the hand crank on a lathe after I install the stepper motor thanks Eli

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

      Has the stepper motor got power going to it? If so the motor will be applying a "holding torque" which will make it very difficult to turn. If you want to use the hand cranks you could use the enable pins of the tb6600 to turn the power on and off going to the stepper motor. Hence you could turn the power off to turn them manually then turn then on when you want to use the steppers

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

      need lot lot biggest motor, retro fit need big motor and driver. i used my old hand mill nema 34 6A motor and DM860 driver, all same iring. nema 17 used only toy,laser,3D printers no need lot torque. minimum cnc need 3Nm torque, 426 oz about.

  • @interestingWorld3.0
    @interestingWorld3.0 Рік тому

    Sir if we want to stop stepper,,which command is use?

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

      If you want to stop the script from running over and over again then put the following statement at the bottom of your void loop() section
      while(1) {
      }

  • @dspencer1966
    @dspencer1966 Місяць тому

    Hi Henry, I need some help, I'm a Civil Engineer and electronics is not my thing. I'm building a 40w CO2 laser and need some help with the electronics. First on the configuration of the driver: how do you determine the steps per revolution on the motor you're connecting to the driver, in your example, you set yours to 6400 steps per revolution. is that so the motor will perform at its maximum when asked by the controller/computer, or is this peramiter set according to the size of the motor? I watched another video on this subject and the guy totally lost me, any help would be greatly appreciated.

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

    I am going to use 3 nema17 7.2kg torque motor is 1 lrs75 24v power enough for it?

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

      Do you know what the amp the power supply is? Just make sure that the amp of the power supply is great than the total of the amps requited for the 3 stepper motors

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

      @@henrycawley2
      Ok!

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

      1.7A×3=5.1!
      Lrs 75-3.2A if I use 2 of them 6.4A!
      So can I use 2xlrs ?

  • @ishakmerchant1582
    @ishakmerchant1582 2 місяці тому

    Is TB 6600 compatible with all NEMA 23 motor?

    • @henrycawley2
      @henrycawley2  2 місяці тому

      Hi, the TB6600 is compatible with the NEMA 23. Just adjust the amp settings to suite the motor

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

    code please

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

    The TB6600 Stepper Driver is garbage! Don't waste you time with this junk.

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

    I got f2100b control and that driver with nema 17 motor