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

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 72

  • @anonony9081
    @anonony9081 Месяц назад +1

    Finally a stepper motor tutorial that just explains what to do and doesn't treat you like you're an engineer. I need a hands on example to understand this kind of thing and this is the first tutorial after watching a dozen that actually helped me. Thanks.

  • @jonathanwright1507
    @jonathanwright1507 11 месяцев назад +4

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

  • @emiliano.saucedo
    @emiliano.saucedo 24 дня назад

    After so many tutorials, yours was the best explained, thank you very much!

  • @hex1101
    @hex1101 6 дней назад

    No fluff ,straight to it thanks.

  • @MoltoMorendo
    @MoltoMorendo 10 месяцев назад

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

  • @markmorris6357
    @markmorris6357 2 года назад +1

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

  • @CleanPhilWanted
    @CleanPhilWanted 2 года назад +1

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

  • @thomcarr7021
    @thomcarr7021 2 года назад +1

    Thank you for this video. Very clear and informative.

    • @henrycawley2
      @henrycawley2  2 года назад

      Thank you, I really appreciate the comment 😊

  • @Stefan_Boerjesson
    @Stefan_Boerjesson 2 года назад +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 Год назад

      Could it be the Microstep setting on the Driver?

    • @Stefan_Boerjesson
      @Stefan_Boerjesson Год назад

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

  • @KW-ei3pi
    @KW-ei3pi Год назад

    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 Год назад

      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.

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

  • @siete8932
    @siete8932 2 года назад +1

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

    • @BariumCobaltNitrog3n
      @BariumCobaltNitrog3n 4 месяца назад

      a common cathode is negative and a common anode is positive.

  • @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 Год назад

      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.

  • @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 Год назад

      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.

  • @olanordmann7836
    @olanordmann7836 3 месяца назад

    The part where you connect 4 pins to the GND, is that cause you want the stepper to only spin in one direction?

    • @MagicMan-z2g
      @MagicMan-z2g Месяц назад

      No, this is because the ground is shared between all of them and the arduino (GND means Ground) by changing how you are powering the positives is what allows for direction control specifically the direction signal by powering it it goes one way and by unpowering it the motor spins the other way.

    • @MagicMan-z2g
      @MagicMan-z2g Месяц назад

      The Direction Chanel is the one that says DIR.

  • @FelixSamulevich
    @FelixSamulevich 6 месяцев назад

    it can be very nice of you if you can explain how you can run yours CNC with one motor ?

  • @pham3383
    @pham3383 9 месяцев назад +1

    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?

    • @BariumCobaltNitrog3n
      @BariumCobaltNitrog3n 4 месяца назад

      Did you find the data plate on your motor? It will tell you what it can take in volts and amps. Volts are pushed into a device, it has no choice, but amps are pulled by the device (motor) so will only take what they need, but can be greedy and get hot but not suicidal. Usually. lol

  • @LegitLeeVelez
    @LegitLeeVelez 2 года назад

    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?

  • @tt3233
    @tt3233 2 года назад +1

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

    • @kennyrichardson411
      @kennyrichardson411 2 года назад

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

    • @henrycawley2
      @henrycawley2  2 года назад

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

  • @Ziplock9000
    @Ziplock9000 Год назад

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

  • @alonewolf205
    @alonewolf205 3 месяца назад

    Hi Henry! After programming if i want to control the motor from display. How can I do it?

  • @olanordmann7836
    @olanordmann7836 8 месяцев назад

    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?

    • @christianmontagx8461
      @christianmontagx8461 7 месяцев назад +1

      Yes. One TB per Motor.

    • @olanordmann7836
      @olanordmann7836 6 месяцев назад

      @@christianmontagx8461 Can we make 4-axis mashines with a basic arduino like you're using?

  • @sergiofernandes0365
    @sergiofernandes0365 7 месяцев назад

    Dear Henry, can this procedure be used on the DM556 drive? My Arduino is giving me an error when I order the data to be compiled. I can't send the error, but could you help me? Thanks

  • @paul.alarner6410
    @paul.alarner6410 3 месяца назад

    how can we run accelstepper bounce example with the tb6600?.

  • @ReallyMendin
    @ReallyMendin Год назад

    Very useful. Thank you

  • @gabdan1000
    @gabdan1000 Год назад

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

  • @Jking08
    @Jking08 7 месяцев назад

    How do I make the stepper rotate to a certain point and then make it reverse ?

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

  • @dspencer1966
    @dspencer1966 9 месяцев назад

    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.

  • @rahaff9335
    @rahaff9335 2 года назад

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

  • @musaaftabi6269
    @musaaftabi6269 2 года назад

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

    • @henrycawley2
      @henrycawley2  2 года назад +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

  • @RixtronixLAB
    @RixtronixLAB 2 года назад

    Creative video,thanks :)

  • @elidari60
    @elidari60 2 года назад

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

    • @henrycawley2
      @henrycawley2  2 года назад

      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 2 года назад

      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.

  • @Whathefishbro
    @Whathefishbro 8 месяцев назад

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

  • @ishakmerchant1582
    @ishakmerchant1582 10 месяцев назад

    Is TB 6600 compatible with all NEMA 23 motor?

    • @henrycawley2
      @henrycawley2  10 месяцев назад

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

  • @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 2 года назад

      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,

  • @mariomattiadimuro5185
    @mariomattiadimuro5185 9 месяцев назад

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

    • @henrycawley2
      @henrycawley2  6 месяцев назад

      Hi, this usually happens if you have a couple of the wires the wrong way round. I have had the same issue many times

  • @interestingWorld3.0
    @interestingWorld3.0 2 года назад

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

    • @henrycawley2
      @henrycawley2  2 года назад +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) {
      }

  • @RobotDiggME
    @RobotDiggME Год назад

    Excellent.

  • @sathwika4001
    @sathwika4001 2 месяца назад +2

    I need code plz

  • @rfurdui26
    @rfurdui26 3 месяца назад

    Hello!
    If anyone see this message please help me!!!!
    I wire my nema17 with gearbox to tb6600 ,like in video but my motor can go just in one direction,when he try to change,it can't...please help me,i also change the driver with one new ,and wire corectly pul+,dir+,ena+ at pin 2,4,6 and all pul-,dir-,ena- wire all in wagoo to create one wire and i put it in GND ,on mai board.
    What is the problem?pls help😅😢😢😢😢

  • @electronicsideas1361
    @electronicsideas1361 2 года назад

    code please

  • @rmp3499
    @rmp3499 Год назад +1

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

  • @guypatts494
    @guypatts494 2 года назад

    I got f2100b control and that driver with nema 17 motor