Arduino with TB6600 using AccelStepper library

preview_player
Показать описание
In this video I will show you some simple code that allows you to control your stepper motor through the serial port using a TB6600 driver circuit and the AccelStepper library.

To learn more about the library:

To support me, you can buy the parts using my affiliate links:

If you want to get the whole code, check it out on my website:

If you have downloaded the code and found my video useful, please subscribe to help my channel grow!
Рекомендации по теме
Комментарии
Автор

I appreciate your hard work thank you! I give you much credit for your participation and answering all the comments. I am here because I am setting up a Taig mini mill now with steppers and I am trying to learn. I will be sure to read the AccelStepper library as well.

dreamtoneamps
Автор

THIS my friends is by the best YT Video for setting up a Nema 17 with TB6600. worked so perfect after i tried other DIY videos. be careful some of them change the code which you cn downloaad often to crap and then you go lost ^^ Big thanks to the Creator of this Video

proventure
Автор

hello.can you help me? I'm using this library for two engines. Whenever the button is activated, the engine must move a few times and stop. There are two engines and two buttons, but when one engine is moving and the other button is activated, it waits for engine 1 to finish. the stroke to start the engine 2.I need them to work whenever the button is pressed simultaneously.

erikysdias
Автор

Thank you for the video, I wonder if it is possible to connect the Pul+ and the Dir + Modules to the Pins 8 and 9 in the arduino and Pul - Dir - to the GND Arduino?

rimenaouissaoui
Автор

Good day, this is really an informative video. I am actually using the same motor driver to drive my application (using in the linear slide rail - lead screw). I would like my application to continuously move back and forth at the designated positions. While at the same time, I will be able to adjust the speed of the motor. May I know is it possible to do these two at the same time? Because I don't really have idea on it, so would like to get some advice from you. Looking forward to your reply. Thanks!

Mangosteen
Автор

Congratulations for the video, very good explanation, excellent code, just a question, when it's running in ping-pong, it always takes one more step to one side, that is, the rotor moves, it never comes back to the same position, there's a way to avoid that ? Make the rotor always return to an exact point? Thank you very much in advance.

tomielo
Автор

Thank you so much, this video is really helpful,
Is the vibration at the end of motion when the motor deaccelerates considered as a jerk??

RESC_Eng
Автор

Brother, I used a TB6600 driver with a Nano and wired accordingly and powered with a 12v, 10A SMPS. I selected the current and steps/rev(200) with dip switches according to the specifications of the Nema 23 motor referring to the chart. When the motor runs at slow speed it gives a grumbling noise and gets heated up quickly. I tried with another Nema 17 motor with settings changed, still the same grumbling noise and heating. But I used a A4988 driver with the same Nema 17 motor, then it
runs smoothly and does not get heated up. Could you advice me please?

kusmanf
Автор

Thank you, very informative video! This will help me a lot.

pisobre
Автор

Thank you for the video.
How do I configure to run 2 or more motors in one Arduino?
you said "AccelStepper stepper(1, 8, 9)" 1 it for the motor 1.
can I configrue:
AccelStepper stepper(1, 8, 9) for motor 1
AccelStepper stepper(2, 10, 11) for motor 2 or i have to configure
AccelStepper stepper2(2, 10, 11)

dzungvo
Автор

Hello Sir, I have tried the example for the "Code Snippet for AccelStepper Oscillator". When I type "K" in the serialmonitor the motor only moves clockwise ones, it doesn't oscillate back and forth. Could you explain a bit more why this is the case? PLEASE!!

kevoysmith
Автор

me podrias proporcionar el cableado de coneccion del driver tb6600 hacia el Arduino gracias

jesussanchez-zvnp
Автор

Hello , can you help me, us, for the people who have maybe the same problem as I. The problem is the HOMING with accelstepper without a WHILE and ++ argument ? Your video give another way to manupulate the accelstepper libreray Thanks a lot

patis.IA-AI
Автор

how can i get that com3 port in ARDUINO IDE where we type all that s2000 1000 those inputs you type to arduino in that COM dialog box how to open that

Himanshu-wsvl
Автор

Great video my friend, one question : why do you use the function "stepper.run" instead of "stepper.moveTo" ? in the continuousRun2() function ? thanks in advance for your reply

ancuingmecgeniumeccanicu
Автор

Firstly great informative video, I am quite new to programing the arduino and have this program in mind for a project. My question is once I have worked out my parameters ie c3000 5000 and o3000 5000, is there a way to start the program and let it run continuously until stopped n. So it is going from c3000 5000 and when it has run the first command it then runs the o3000 5000 without human intervention through the terminal.

CCPlusIT
Автор

So what is the meaning of not connecting the ENA(-) pin, if you have on the code a command for disableOutputs() and enableOutputs(), how do these work?

many
Автор

Hello, in my opinion this application is mistaken. if I enter the command "S10 1" or "O10 1" the first step is in the wrong direction and the following steps are then in the right direction. This error does not occur when entering "c10 1". Can you test this in your application and report the result? Thanks!

frostmarianne
Автор

Funciona la libreria y el codigo para el A4988?

avisalmarine
Автор

Hallo,
thank you, I try it again:
I ned a funktion that I can let run the motor forward and bacward automaticly witout gif the command for every motion.
Sincerly
S. Nwaisser

samynwaisser