Finally, a stepper motor video that doesn't spend 12 minutes explaining unipolar vs bipolar and then forgetting to mention what power supply is used. Great job!
The strongest mode for stepper motors is half stepping to prevent resonance. It is also the most repeatable, after full stepping. Micro stepping is smoother but lacks torque and repeatability. Since these drivers are current choppers, the higher the voltage of the power supply, the faster the motor reaches its speed.
thanks for the great info, I was ready to give up on my TB6600's , but following your setup it now works perfectly. I had followed other advice suggesting a delay between step pulses !
For find motor coil, you can just simply short cables and spin motor- if you fill a little resistance you find coil (usually is one middle and one side pin). Good tutorial! pozdrawiam ;)
Top tip from personal experience. If you're using an arduino shield with plug in drivers DO NOT TURN ON THE STEPPER DRIVER WITHOUT A MOTOR CONNECTED. the drivers will burn out.
So if connect a function generator with a square wave output, it will control the pulse also? Then a switch connected to a battery can be used to manually control direction?
Thanks for this quick start guide. I would assume that besides finding out which two wires belong to the same coil, it would be also important to figure out the polarity of each coil?
So sorry but I was wondering how you powered the stepper motor? I understand it is a 12 volt power supply which is amazing I'm just not to sure how that whole setup works. Inquiring for a school project. Awesome video though really informative and straight to the point. Thank you!
Haha. Saw My comment from back when I was using DRV modules. Thankfully got a TB6600 instead. MUCH BETTER to screw the wires into those terminals than wonder if the breadboard was connected nicely.
Nice short video! Been screwing around with one last week. My biggest issue was: I had a program running on my esp32, and wanted to move a stepper. And I couldn't use the delay function. Now some libraries advertise non-blocking functions. But it just didn't work. I ended up with a separate arduino Nano that was controlled by I2C by my esp32. I have had this issue before and therefore I switched to i2c quickly. Now everything runs smoothly.
Great presentation and simple... quick question, when not using a PC connection after uploading the code via the arduino USB, do you provide power to it itself from the same power supply or a separate one? You said you used 12V; Arduino can also operate with that voltage. Thanx much for responding. And keep up with the good work.
Not an exact match to what I was working with but gave me enough enlightenment to figure out what was missing ... problem being, some assembly required but no assembly instructions... Thanks
I have a question about your code... I see you are writing a low pulse but immediately High pulse is next, and then a little delay. My question is about the pulse train, duty cycle is the same for high and low?
Great! I know how to control a stepper motor with PLC, and I used it when I got my first job. I searched for many manuals so that it can run normally. Just a question: whether it is controlled by the single-chip microcomputer. Looks good.
Ogladalem filmik gdzie gosc przerabia stopniowo cnc 3018 i zrezygnowal z tb6600 na rzecz DM542 z powodu "dryftowania" .Wygladalo to tak jakby silniki gubily kroki. Uzywa silnikow nema 17. Co o tym myslisz ?
Czy ten sterownik TB6600 toleruje również sterowanie z arudino 3,3V (a raczej czy arudino da radę) ? Czy raczej będzie potrzebny konwerter poziomów logicznych ?
thanks a lot for your video. Is it possible to run multiple stepper motor drivers with only single power supply ?? Or I should have buy the power supply for every single stepper motor driver ??
Really good format for explaining concept and practical implementation, would love to see more like this. Like a library of short ‘must have’ type concepts for expanding upon, thanks for this Nikodem
How is the quality of the motor and driver??, do they get hot after constant use?? I am thinking of using in an industrial motion control system, the motor will be running almost 24x7. Is this OK for this application??
Hi Mate, I am going to carry a steel pallet (overall weight of 700 kg) over rollers with 2 stepper motors on each sides, do you reckon "Nema 42 CNC Stepper Motor Bipolar 30Nm" is enough for this application?
@@GASNICABRUNATNA Search for low inductance motors in the range of 2 to 3.5mH. For example Nema24 (60 series) 4A, 3.2mH, 3Nm paired with DM556 or better with TMC2160 driver set at 3.2-3.5A to avoid overheating and set 1/8 or 1/10 microstepping. Run with 48V power supply. Chinese versions of this motors and drivers are around 20 dollars each. As for PSU Meanwell is a good, cheap and reliable brand. You need 1 psu 48V 3.3A for each motor. It cost around 20 dollars. This is powerful enough for even larger and heavier machines, and cheap enough with the cost of 60 dollars per axis. If this is too powerful for your needs, search for 2-2.3 mH motors, and use with 36V psu - it gets even cheaper.
Working with 2 different TB6600 and 2 different switched 24 volt, 15 - 20 Amp supplies 3 different NEMA23 steppers all overran by 15% - 30%. On low speed the steppers even make short moves in the wrong direction. Changing the power supply to 12 volt, the stepper run as expected. Are my 2 TB6600, bought either from Banggood or Ebay, fakes, nock outs, rejects or what?
Can I use two of these motors to power a wheelchair? The person who will use it weighs 90kg. Which the shaft of this exact model of Stepper Motor hold that weight?
This is a simple thing and when I've tested rotational speed was not as I've expected. If we set delay to 60us (as per program) pulse frequency is about 16,666.67Hz or that many pulses per second. Quite high! I set my driver to 1600 microsteps per rotation so I expect something like 10 rotation per second and get only 1/2 rotation. If I increase microstepping, rotational speed also increases and I expect to decrease. Maybe I am thinking something wrong here.
thank you!!! Can anybody answer why the ENA +/- are both to ground? I like it because it leave more IO pins for other drivers, but I don't understand what the ENA pins do?
ENA is used to energize the coils. Keeping ENA enabled all times will cause some current to flow into the coils, thus keeping it energized, which will also heat up the coils. This is good for creating a brake on the motor to prevent the shaft from turning, however this also consumes energy when doing so.
How to make the motor paused for a few seconds, then spin other way around, then pause again, and then spin other way faster? I'm still very new in programming Arduino, especially programming stepper motors.
Is this motor and driver reliable? What is the failure rate? I want to try in a industrial application, where it’s going be running continuously like 24x7
Can I use GRBL firmware instead of programming the script myself? Does that statement even make sense? I don't really know what any of this means. I uploaded GRBL firmware to my Arduino so I could use UGS to send gcode to my CNC, but the motor only turned in one direction when I tried to jog in the -X and +X directions.
Hi, I’ve followed this exactly on 2 separate TB6600s and nothing happens. I’ve checked with a multimeter and there’s voltage applied on the pulse and direction pins as expected and 12v on the VCC but nothing is going to the coils. What could be wrong?
Hi . please help me 🙏i have all this parts and need a programming code. I want to make a reciprocating motion similar to the movement of an elevator so that I place a micro switch at the top and bottom of the path. The switch is not turned off, continue, and finally (it is the if section of programming)when the switch is off, the object will stop at its starting point at any point in the path.for more information about the if section imagine the split air-conditioned swing part when off the set the swing door automatically closed. Thank you 🌹
hello, I am Santo from Indonesia, I want to ask you how to program a stepper motor with TB6600 driver so that it can work like an automatic portal door. I really hope you can help me. thank you
TB6600 are not good drivers. DM524T drivers are much quieter, reliable and can take up to 50V DC input, which allows to run motors at much higher RPMs without loosing steps.
Hey guys im doing something very similar for school and i have a couple assignments fairly easy i would need help with. I would appreciate help very much.
Finally, a stepper motor video that doesn't spend 12 minutes explaining unipolar vs bipolar and then forgetting to mention what power supply is used. Great job!
Quick & dirty-- short & to the point. Thanks, Nikodem. Stay safe.
The strongest mode for stepper motors is half stepping to prevent resonance.
It is also the most repeatable, after full stepping.
Micro stepping is smoother but lacks torque and repeatability.
Since these drivers are current choppers, the higher the voltage of the power supply, the faster the motor reaches its speed.
thanks for the great info, I was ready to give up on my TB6600's , but following your setup it now works perfectly. I had followed other advice suggesting a delay between step pulses !
Thank God you explained it in a very short time .. I am soo impressed .. this is the way they should guide rather than making 15 minute videos .
For find motor coil, you can just simply short cables and spin motor- if you fill a little resistance you find coil (usually is one middle and one side pin). Good tutorial! pozdrawiam ;)
Quite useful.
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
digitalWrite(2,HIGH);
}
void loop() {
digitalWrite(3,LOW);
digitalWrite(3,HIGH);
delayMicroseconds(60);
}
Short but clear vid, good job!
Top tip from personal experience. If you're using an arduino shield with plug in drivers DO NOT TURN ON THE STEPPER DRIVER WITHOUT A MOTOR CONNECTED. the drivers will burn out.
RIP this guy's motor driver.
Thanks a lot castle
My stepper motor has 6 pins should I have to connect all six wires of 4 of them?
So if connect a function generator with a square wave output, it will control the pulse also? Then a switch connected to a battery can be used to manually control direction?
Thanks for this video it helped me with my project
Brilliant for beginners like me. Im learning as i want to build a CNC machine. I can tell its going to be a long Haul !
Thanks for this quick start guide. I would assume that besides finding out which two wires belong to the same coil, it would be also important to figure out the polarity of each coil?
Yes, it is.
quick and complete! thanks a lot
So sorry but I was wondering how you powered the stepper motor? I understand it is a 12 volt power supply which is amazing I'm just not to sure how that whole setup works. Inquiring for a school project. Awesome video though really informative and straight to the point. Thank you!
Thank you for the basic explanation.
Haha. Saw My comment from back when I was using DRV modules. Thankfully got a TB6600 instead. MUCH BETTER to screw the wires into those terminals than wonder if the breadboard was connected nicely.
Nice short video!
Been screwing around with one last week. My biggest issue was: I had a program running on my esp32, and wanted to move a stepper. And I couldn't use the delay function. Now some libraries advertise non-blocking functions. But it just didn't work. I ended up with a separate arduino Nano that was controlled by I2C by my esp32. I have had this issue before and therefore I switched to i2c quickly. Now everything runs smoothly.
what is 12c?
very nice, simple but powerful program and presentation! Thank you and God bless!
Great presentation and simple... quick question, when not using a PC connection after uploading the code via the arduino USB, do you provide power to it itself from the same power supply or a separate one? You said you used 12V; Arduino can also operate with that voltage. Thanx much for responding. And keep up with the good work.
Not an exact match to what I was working with but gave me enough enlightenment to figure out what was missing ... problem being, some assembly required but no assembly instructions... Thanks
What's the minimum amperage required for powering the microstep driver?
sorry for dumb question but ENA + can be bridged with PUL-, DIR- and ENA-? no need to get separate groudn wire? just one to the Uno?
I have a question about your code...
I see you are writing a low pulse but immediately High pulse is next, and then a little delay.
My question is about the pulse train, duty cycle is the same for high and low?
Nice, but why would you waste the valuable interrupt pins of the Arduino for controlling the stepper motor?
Great video. very quick and simple.
Great! I know how to control a stepper motor with PLC, and I used it when I got my first job. I searched for many manuals so that it can run normally. Just a question: whether it is controlled by the single-chip microcomputer. Looks good.
Ogladalem filmik gdzie gosc przerabia stopniowo cnc 3018 i zrezygnowal z tb6600 na rzecz DM542 z powodu "dryftowania" .Wygladalo to tak jakby silniki gubily kroki. Uzywa silnikow nema 17. Co o tym myslisz ?
Your schematic is missing the ground to power section of Arduino board for enable + which is activated with low signal
Can this be used on all 3 stepper motors , or do I have to buy all this for each stepper motor? Thanks in advance:)
Did you ever figure out whether you needed the TB6600 driver for each motor, or one for all 3?
Czy ten sterownik TB6600 toleruje również sterowanie z arudino 3,3V (a raczej czy arudino da radę) ? Czy raczej będzie potrzebny konwerter poziomów logicznych ?
great job, was pretty helpful
thanks a lot for your video. Is it possible to run multiple stepper motor drivers with only single power supply ?? Or I should have buy the power supply for every single stepper motor driver ??
Really good format for explaining concept and practical implementation, would love to see more like this. Like a library of short ‘must have’ type concepts for expanding upon, thanks for this Nikodem
Nice instructing short video. Waiting for the next one. :-)
How is the quality of the motor and driver??, do they get hot after constant use?? I am thinking of using in an industrial motion control system, the motor will be running almost 24x7. Is this OK for this application??
Hi Mate,
I am going to carry a steel pallet (overall weight of 700 kg) over rollers with 2 stepper motors on each sides, do you reckon "Nema 42 CNC Stepper Motor Bipolar 30Nm" is enough for this application?
Great video. Thank you. Maybe another for all 4 motors?
Very helpful video
can I ground the EN+ with the other pins or must it be grounded separately?
Hi.
Sorry but at the end of the video, I can see a fourth wire (red) apparently connected to a ground pin (7) I believe.
Why 2 grounds?
Did you use any additional library when setting up the Arduino script?
Cool. Those NEMA23 seem like they have a lot more torque.
So about the Arduino, it it getting power from the USB or the TB6600 ?
USB. The driver is at least powered from 12v so the arduino regulator will not like the joke for to long !
This exact model motors are over 9mH inductance (wow). They will perform the best with over 70 volts...One of the worst nema23 on the market.
@@evgenitantikov5865 What would you recommend, and some use cases?
@@GASNICABRUNATNA Search for low inductance motors in the range of 2 to 3.5mH.
For example Nema24 (60 series) 4A, 3.2mH, 3Nm paired with DM556 or better with TMC2160 driver set at 3.2-3.5A to avoid overheating and set 1/8 or 1/10 microstepping. Run with 48V power supply.
Chinese versions of this motors and drivers are around 20 dollars each. As for PSU Meanwell is a good, cheap and reliable brand. You need 1 psu 48V 3.3A for each motor. It cost around 20 dollars.
This is powerful enough for even larger and heavier machines, and cheap enough with the cost of 60 dollars per axis.
If this is too powerful for your needs, search for 2-2.3 mH motors, and use with 36V psu - it gets even cheaper.
Working with 2 different TB6600 and 2 different switched 24 volt, 15 - 20 Amp supplies 3 different NEMA23 steppers all overran by 15% - 30%. On low speed the steppers even make short moves in the wrong direction.
Changing the power supply to 12 volt, the stepper run as expected.
Are my 2 TB6600, bought either from Banggood or Ebay, fakes, nock outs, rejects or what?
I have motors with more than 4 wires. Are they setup the same way, just using the 4 color wires you show, and not using the other wires?
just use 4 of them excluding 2 coils middle wires
If I am not mistaken the motor is rated at 2.8A/phase. Why limit the driver current at 2A?
Can I use two of these motors to power a wheelchair? The person who will use it weighs 90kg. Which the shaft of this exact model of Stepper Motor hold that weight?
Can the ENA and DIR inputs be supplied by more than 5V? Will it work with 12V?
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
digitalWrite(2,HIGH);
}
void loop() {
digitalWrite(3,LOW);
digitalWrite(3,HIGH);
delayMicroseconds(60);
}
Hello, can I run a servo ac motor with the same program that starts the stepper motor (dir pulse)?
good video mate
do you have instructions for installing and operating STEPPER MOTOR NEMA 23 CLOSED LOOP - 2.2N.M 4 WIRES 285OZ-IN + DRIVER ? thanks for your help
This is a simple thing and when I've tested rotational speed was not as I've expected. If we set delay to 60us (as per program) pulse frequency is about 16,666.67Hz or that many pulses per second. Quite high! I set my driver to 1600 microsteps per rotation so I expect something like 10 rotation per second and get only 1/2 rotation. If I increase microstepping, rotational speed also increases and I expect to decrease. Maybe I am thinking something wrong here.
Can we use both Nema 17 (DRV8825) and Nema 23 (TB6600) on same Arduino simultaneously?
thank you!!! Can anybody answer why the ENA +/- are both to ground? I like it because it leave more IO pins for other drivers, but I don't understand what the ENA pins do?
ENA is used to energize the coils. Keeping ENA enabled all times will cause some current to flow into the coils, thus keeping it energized, which will also heat up the coils. This is good for creating a brake on the motor to prevent the shaft from turning, however this also consumes energy when doing so.
@@arbjful so all in all both ENA+ and ENA- can be bridged with all other - outputs?
The x-axis pins on the Arduino are 2 and 5.
I'm using atmega and nema42 stepper with driver. I'm facing big EMI interférences and disturbed inputs. How can i fix this ?
with the dip switches. which way is on, down or up. there is a small diagra, that says with an arrow pointing down then
says beside it, up
V good. How can stop the current command?
How to make the motor paused for a few seconds, then spin other way around, then pause again, and then spin other way faster?
I'm still very new in programming Arduino, especially programming stepper motors.
I'am using 24VDC supply for the TB6600 driver, but Nema 23 (23HS5628) works on 2.5 VDC
Is it safe to use ?
God damn I wish I was this smart bruh 😭
Is this motor and driver reliable? What is the failure rate? I want to try in a industrial application, where it’s going be running continuously like 24x7
No. Both are one of the worst on the market. You should search for other drivers (more than 5 dollars) for industrial needs :D
i have the same stepper and i set my switches to off, off, off, off, on, off and it's working perfectly, should i be worried?
Can I use GRBL firmware instead of programming the script myself? Does that statement even make sense? I don't really know what any of this means. I uploaded GRBL firmware to my Arduino so I could use UGS to send gcode to my CNC, but the motor only turned in one direction when I tried to jog in the -X and +X directions.
Hi, I’ve followed this exactly on 2 separate TB6600s and nothing happens. I’ve checked with a multimeter and there’s voltage applied on the pulse and direction pins as expected and 12v on the VCC but nothing is going to the coils. What could be wrong?
Super video!!
whats the maximum RPM (rotation per minute ) you can achieve with this. I am getting only 200 RPM with another type of shield and Nema 23 motor .
is it possible to plot an angle for the motor, cause it's a stepper, with the TB66000 ?
Can you use this instead of NEMA 17 on the CNC machine for Y axis ?
what source you used.? direct plug or battery.?
I like that nano io shield
Hi . please help me 🙏i have all this parts and need a programming code.
I want to make a reciprocating motion similar to the movement of an elevator so that I place a micro switch at the top and bottom of the path. The switch is not turned off, continue, and finally (it is the if section of programming)when the switch is off, the object will stop at its starting point at any point in the path.for more information about the if section imagine the split air-conditioned swing part when off the set the swing door automatically closed.
Thank you 🌹
On rating Nema 23 work on 24v,but u ran it on 12v,how it work on 12?
I have a 24v 15A power supply would that work? Or is 15a too high.
you can make diy wit linestepper motor . or dc servo motor arduino . for like that projects
Can a video tutorial of RC remote control controlling stepper motor through ARDUINO, including code writing
It is possible for one driver TB6600 to connect 2 motors Y -coordinate?
It is possible, but don't do it.
Dear sir with your code I got to rotate it so now I want to stope my motor after few rotation and should stop till I switch on it again
hello, I am Santo from Indonesia, I want to ask you how to program a stepper motor with TB6600 driver so that it can work like an automatic portal door. I really hope you can help me. thank you
That's ok but which pair is A and which is b of stepper motor let me know please
TB6600 are not good drivers. DM524T drivers are much quieter, reliable and can take up to 50V DC input, which allows to run motors at much higher RPMs without loosing steps.
hi , i have a question, i looking your video, but my motor don't move end produced a bip bip , you can help me?
I have question that your motor can run only clock wis that I can run that moter clock wise and anticlock wise that what cording I can write
Thanks for the good video
Brilliant. 3.5 minuites to explain what other videos take 20+ minutes to explain!
انت فنان شكرا
Thank you.
Man nikodem bartnik trying to make smart watch this is new some cool let's do it nikodem
Thank you bro ❤️
are you able to help me i followed the code and wiring diagram but when i run the motor it just buzzes and doesnt rotate
Hey guys im doing something very similar for school and i have a couple assignments fairly easy i would need help with. I would appreciate help very much.
How many motors can You connect to the shield thanks
What will be torque at 3000 steps per second
Could you make another video without using arduino? By using PLC to rotate it at a 90 degree angle, need help though
LOL !! If you need a video how to set up a nema with a PLC then you don't know how to use/nor program a PLC..
Thank you very much
I need something and help to test run my stepper motors.
Thanks
it will be nice to see the life of those drivers, are those good??