Тёмный

TB6600 and Arduino - Wiring and demonstration 

Curious Scientist
Подписаться 34 тыс.
Просмотров 97 тыс.
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 240   
@lousmith1967
@lousmith1967 Год назад
You did a nice job of explaining. I've not seen any of your newer videos yet, but all I can recommend is relax and enjoy teaching! 🙂
@CuriousScientist
@CuriousScientist Год назад
Thanks! I hope that my new videos are becoming better in explaining things.
@talltanbarbie5136
@talltanbarbie5136 10 месяцев назад
I wanted to connect two stepper motors to an Arduino Mega using DM542T stepper motor drivers, watched several videos, and your video was the only one that had correct wiring that worked. Thanks ❤
@CuriousScientist
@CuriousScientist 10 месяцев назад
I try to provide useful information. I am glad to hear that my video could help you!
@KW-ei3pi
@KW-ei3pi Год назад
Excellent. I have the same motor and driver. I just need to add a button to start the motor in FWD and another button to start the motor in REV. Thanks again.
@CuriousScientist
@CuriousScientist Год назад
Super! You can find all the relevant tutorials on my channel and website. Cheers!
@rohitshelkar7525
@rohitshelkar7525 3 года назад
Hey curious scientist really doing a great job with great understanding.helpful a lot for BTech engineering students
@CuriousScientist
@CuriousScientist 3 года назад
Hi! I am glad to hear that my videos can be helpful!
@Kangaman91
@Kangaman91 2 года назад
I hope the channel continues to grow I want to request a TB6600 driver, nextion display for stepper motors and arduino can be united, please make a tutorial. I'm sure many people saw it
@CuriousScientist
@CuriousScientist 2 года назад
Thanks! Sorry, but I am not making videos on request for free. I have my own schedule and ideas for videos.
@woodywood1951
@woodywood1951 3 года назад
Most of the time, it's a good practice to connect the zero volts (ground) from the power sup to the zero volts of the Arduino Uno (ground)? most of the time, it avoids some issues, like noise or spikes... good video at the right pace!
@CuriousScientist
@CuriousScientist 3 года назад
Thank you! Yes, sometimes it is useful and/or necessary to connect the common points. For example if you want to measure voltage (otherwise the Arduino's reference can be shifted as compared to the voltage sources 0 V). In this application it is not necessary, it works without it, but I have other type of controllers, where it is necessary to connect the Arduino's GND (which I believe it is more like a COM (common)) to the power supply's negative pole.
@woodywood1951
@woodywood1951 3 года назад
@@CuriousScientist I spent more than 35 years of working on electronic automation as PLC, CNC, etc, connecting all zero volt together and to the ground solved many issues... But 35 years ago, electronic was different!!!
@CuriousScientist
@CuriousScientist 3 года назад
The laws' of physics are still the same, so I would assume that your experiences are still valid.
@Yosemite_Sam
@Yosemite_Sam 2 года назад
This is an interesting video of a stepper wired for Common Anode mode. I see you did another also covering the sketch. Can you do a video covering Common Cathode mode please as most Arduino sketches are based on that mode? Why? I trying to run 3 x Nemer 23 with Uno plus TB6600 form an antenna impedance matching unit for Amateur Radio Antenna. The aim is to use a tandem match bridge to sense reflected antenna voltage on A0 and then have the 3 x 23s turn a capacitor/inductor combination for minimum reflected voltage. It is a very interesting project and your ideas on it would be very welcome. Cheers from OZ.
@CuriousScientist
@CuriousScientist 2 года назад
Hi! They don't really differ as far as I know. Common anode is active low, so you have the positive supply connected to the positive pins of the driver while switching the negative pins. Common cathode is when you have the opposite: negative pins go to a common negative terminal while you are switching the positive pins. This is an active high configuration. I guess both should work with the TB6600. On the other hand, sorry but I don't make videos for requests for free. I don't have the time and resources for that.
@Rohityoyo1997
@Rohityoyo1997 Год назад
I just love the way you teach. Thank you
@CuriousScientist
@CuriousScientist Год назад
Thank you!
@markuskoarmani1364
@markuskoarmani1364 4 года назад
Best wiring instructions for Arduino, step controller and step motor. Can you show us how to make Arduino and TB6600 run CNC machine. Your explanation of steps are very logical and simple. Thanks!
@CuriousScientist
@CuriousScientist 4 года назад
Thanks! If you provide me the parts, sure! For CNC, I would need several motors, axes, controllers...etc. I won't just go and buy the parts and make a freely available tutorial, sorry. I only work with stuff I have at home, or I am interested in. I could do many more stuff, but I do not fulfill requests for free.
@theroebuck123456789
@theroebuck123456789 Год назад
Hello, can I ask what's the part that you connect to the 9v power supply that connects tot grnd and vcc? I've been looking for what that thing is called and that's the last part that I'm looking for
@CuriousScientist
@CuriousScientist Год назад
Hi! Google "DC power jack screw terminal". Just pay attention to the diameter, it can be 2.1 mm and 2.5 mm too. It is also listed on my website specifically made for this purpose, to help people to find parts: curiousscientist.tech/tools Cheers!
@theroebuck123456789
@theroebuck123456789 Год назад
@@CuriousScientist got it, just ordered one, thanks!
@marc6003
@marc6003 3 года назад
Excellent explanation, thanks a lot!
@CuriousScientist
@CuriousScientist 3 года назад
Glad it was helpful!
@paulpease1788
@paulpease1788 Месяц назад
I have not dealt with arduino before. What should I do to start learning what they can do?
@CuriousScientist
@CuriousScientist Месяц назад
Basic electronics knowledge is useful. Then, just buy a module and keep experimenting.
@kamleshpanchal8661
@kamleshpanchal8661 2 года назад
Give me help when i keep stepper motor in stop condition, motor draw current which is not good for my product , how to reduce this type problem , please reply me .
@CuriousScientist
@CuriousScientist 2 года назад
Disable the motor.
@blackbox330
@blackbox330 9 месяцев назад
Sir, Great video
@CuriousScientist
@CuriousScientist 9 месяцев назад
Thank you!
@gabrielchen3903
@gabrielchen3903 4 года назад
@Curious Scientist. What current and voltage settings were you applying to the stepper? SInce the adapter has a 24V range, wouldn't it be kind of dangerous to be putting in a 24 V and 3A setting to power the stepper. It seems like you are putting in 12V and 2.8A-3A if I'm not wrong
@CuriousScientist
@CuriousScientist 4 года назад
Hi! I do not exactly remember the details, but I usually use my small variable power supply (see description) for this demonstration which can do 24 V and 3 A max. I think, it was at ~14-18 V and well, the current was depending on the motor's hunger. If you are interested, I could measure it for you. I promised some testing for another viewer, and this weekend I will do it on the very same setup that you see on this video.
@dondon1992
@dondon1992 2 года назад
I hope, in the future you will use nextion and incorporate the program for stepper motor..
@CuriousScientist
@CuriousScientist 2 года назад
It is on my to do list to implement my control panel for Nextion, but it doesn't have high priority.
@chaosloveBronson
@chaosloveBronson 3 года назад
This is super simple and helpful and amazing
@CuriousScientist
@CuriousScientist 3 года назад
Thank you! I am glad that you found it helpful!
@harownowon6449
@harownowon6449 3 года назад
Hello, how do i controll the stop position step of the stepper motor . For example is want the stepper motor rotate to 100 step and hold for few second and than comeback to the previous position. I hope i can get the answer🙏🏻
@CuriousScientist
@CuriousScientist 3 года назад
Hi! You should watch my other stepper motor-related videos, I have a plenty of them. This video for example can be helpful: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0Xi7unlq1L4.html
@slicktires2011
@slicktires2011 Год назад
Good overview. Can you explain what the ENA does? I understand it locks the motor when it's not receiving pulses, is that correct?
@CuriousScientist
@CuriousScientist Год назад
Thanks! The ENA doesn't lock the motors but it switches the current off. It can happen that current flows through the coils of the motor even when it is standing still which can lead to overheating. ENA turns off the current basically.
@slicktires2011
@slicktires2011 Год назад
@@CuriousScientist So connecting ENA is better to avoid overheating?
@CuriousScientist
@CuriousScientist Год назад
Well, the best thing is to actively control it. Turn it on when (before) the motor must move and turn it off when you don't need the motor to be energised.
@danielmurphy1319
@danielmurphy1319 8 месяцев назад
Would you be able to not use a breadboard and connect the 3 5v pins together and go straight to the Arduino? If so, how would you do that?
@CuriousScientist
@CuriousScientist 8 месяцев назад
Sure, you can skip the breadboard. It was just more convenient for me to demonstrate it. I would just wire it up in the same way, but without a breadboard.
@ammarazizulraheem5673
@ammarazizulraheem5673 3 года назад
Is there a proper name for what you are holding at 6:20? I am trying to buy those things online but can't find the correct name for it.
@CuriousScientist
@CuriousScientist 3 года назад
It is a DC jack with screw terminal. But investigate them carefully as they can be 2.1 mm and 2.5 mm too.
@ammarazizulraheem5673
@ammarazizulraheem5673 3 года назад
@@CuriousScientist tqvm
@GeniusNation
@GeniusNation 3 года назад
Amazing work !! Really. Love you.
@CuriousScientist
@CuriousScientist 3 года назад
Thanks!
@albassett9755
@albassett9755 4 года назад
Were you just using one of Accelstepper's sample codes to do the speed and acceleration? If so, which one? Thanks!
@CuriousScientist
@CuriousScientist 4 года назад
I wrote my own code, based on the AccelStepper library. Please check the link in the description that leads you to my other AccelStepper video. That video has a Pastebin link for the full source code.
@umargul5644
@umargul5644 2 года назад
Well done sir
@CuriousScientist
@CuriousScientist 2 года назад
Thank you!
@tbip2001
@tbip2001 3 года назад
So could you flash grbl to the arduino and then use universal g code sender to control the motor? Great tutorial
@CuriousScientist
@CuriousScientist 3 года назад
Thanks! Yes, as far as I know that's how 3D printer's work (CNC). The firmware which is usually installed on an Arduino Mega-based board takes the G-code from the slicer and performs the actions defined in the code. There are different shields for this as well. They can take several stepper motor drivers.
@harshalwasnik4690
@harshalwasnik4690 Год назад
Where can I draw the wiring diagram as seen in your blog?
@CuriousScientist
@CuriousScientist Год назад
In a software called Fritzing.
@Top-notchShorts
@Top-notchShorts 4 года назад
Great video!
@CuriousScientist
@CuriousScientist 4 года назад
Thank you! Don't forget to subscribe, I will upload more videos in this topic.
@Top-notchShorts
@Top-notchShorts 4 года назад
I Already subscribed
@marcomangano8882
@marcomangano8882 4 года назад
Could you tell me the name of the power supply you are using
@CuriousScientist
@CuriousScientist 4 года назад
Maybe you want to read the description.
@markuskoarmani1364
@markuskoarmani1364 4 года назад
Can you run sync 2 motors with out splitting connections on UNO or Mega? And does UNO or Mega control 4 motors independently?
@CuriousScientist
@CuriousScientist 4 года назад
Depends on how many connections you have available and which controller you are using. The TB6600 basically just needs 2 pins as well as the A4988. To run 4 motors independently, it is more about coding and not hardware. Many of the 3d printers have the Mega as the motherboard, and they can accommodate 5 drivers/motors.
@atharvaahire3238
@atharvaahire3238 11 месяцев назад
Which power supply did you used , Please tell ASAP I need it for Project
@CuriousScientist
@CuriousScientist 11 месяцев назад
It is on my website under parts & tools page.
@pepecyberdesign
@pepecyberdesign Год назад
Hi thanks for sharing your knowledge, sorry for the question in the code is listed pin1 where you would go connected
@CuriousScientist
@CuriousScientist Год назад
Hi! Where do you see pin1 defined in my code, in which line? I don't recall calling anything with a name that doesn't describe its function.
@nicholasbrown8384
@nicholasbrown8384 3 года назад
Thank you. Can I use this controller with an ESP32 instead of the Arduino?
@CuriousScientist
@CuriousScientist 3 года назад
The controller should work with anything that creates pulses. I could even make a motor move by connecting a pulse generator wheel to it. However, I don't know if the accelstepper library works on it, I haven't tested it. But I assume that it should work. There is nothing hardware-specific in the code.
@gowthamgopinath5482
@gowthamgopinath5482 2 года назад
Have you tried? Working? I am in the same situation now..
@robertorodriguez1088
@robertorodriguez1088 10 месяцев назад
Can the ENA and DIR inputs be supplied by more than 5V? Will it work with 12V?
@CuriousScientist
@CuriousScientist 10 месяцев назад
Preferably, just use 5V. If you have a higher voltage, then you'll need current limiting resistors. Read the datasheet because I don't remember all the details.
@samirsuleymanov2099
@samirsuleymanov2099 2 года назад
Thank you for video! One question. Can two stepper motors be connected to one driver and run in sync? I got two nema23 motors that I want to use them for simulator steering wheel force feedback.
@CuriousScientist
@CuriousScientist 2 года назад
Hi and welcome! Physically, it is possible but I would not recommend it. One driver - one motor. You can run them synchronously using software.
@johncole5175
@johncole5175 4 года назад
Does the + and - on the A and B loops have any significance? Thanks for this video!!
@CuriousScientist
@CuriousScientist 4 года назад
Hi John! Yes, they have! So, in the video I have the following order: B-: blue, B+: red, A- green, A+: black. Please check the code I wrote in the other video I put in the description. If I give the command for positive rotation with this order of wiring, it will move counterclockwise. If I flip the wires of -for example- A (A+: green, A-: black), the motor will also flip directions and it will move clockwise with the same command. I, personally don't care about the wiring, because I can always override it within the software. For me, the only thing that matters is that I connect the same coils to the same terminals.
@CuriousScientist
@CuriousScientist 2 года назад
Order of pairs only influence the direction as far as I know. I also know a another test which doesn't need any instruments. Short two of the cables and rotate the shaft of the motor. If you feel resistance in rotation, you found a coil and its two wires.
@muthukumarankothandaraman2371
@muthukumarankothandaraman2371 2 года назад
@@CuriousScientist ah yes.. I missed the short-test.. Thanks 👍
@danielretz4022
@danielretz4022 4 года назад
nice, perfect and clear
@CuriousScientist
@CuriousScientist 4 года назад
Thank you, I am glad you liked it!
@stevenleow2630
@stevenleow2630 2 года назад
Great video! I have just one question, can I connect 2 stepper motors to the same motor driver? Can I just connect the second stepper motor wires to the motor driver and run it at the same direction and same speed?
@CuriousScientist
@CuriousScientist 2 года назад
Hi and thanks! I strongly discourage the idea! Use two drivers and a properly written code.
@jawedqadir2807
@jawedqadir2807 2 года назад
Hello, question relating to wiring.. Should the GND of the Arduino be connected to the ground of the 12vdc power supply to make sure both grounds are at same potential. If yes, should that be the same practice when using a dc motor driver, etc. Normally should it be a good practice to connect all GND together when using different sources of dc supplies ?
@CuriousScientist
@CuriousScientist 2 года назад
Hi! In general it is a good idea, yes. Actually, some drivers require it, some don't because the supply ground and the logic ground is connected in the circuit. If your motor doesn't work and the only missing part is the interlinked grounds (btw, there's a reason why it is also called as _common_ (COM)), then connect them. In the TB6600 it is a bit different. If you see, the three positive control pins, en, step and dir are connected to the MCU's +5V, and their negative parts are connected to the corresponding gpio pins. So, whenever they are toggled, they sink and they pull the pins to ground, so essentially in the moments of switching, the whole system's gnd is common. If I understood correctly.
@alexalex-hb4dq
@alexalex-hb4dq 10 месяцев назад
some of these have the pull - ,ena- ,ena+ , and direc - all connected to ground, why is that?
@CuriousScientist
@CuriousScientist 10 месяцев назад
You can have it connected the other way around, too. It depends on if the inputs are active high or active low, if I remember correctly. Check the datasheet of the TB6600.
@ibgori
@ibgori 4 года назад
Can you use acceleration in speed mode with the accelSteper library?
@CuriousScientist
@CuriousScientist 4 года назад
I think most of the functions can do both speed and acceleration control. If you check the documentation of the AccelStepper library, you will see that some of the functions (i.e. runSpeedToPosition()) do no use acceleration. But majority of it does. If you check the end of the video, you see that I control both acceleration and speed.
@3dtexan890
@3dtexan890 2 года назад
As I am still learn about the arduino is there a way to add a potentiometer for speed control? Thanks
@CuriousScientist
@CuriousScientist 2 года назад
Yes! Map its value to a selected range and update the speed of the stepper motor based on the position of the potentiometer. But it is more elegant to use rotary encoders.
@rabeaezzategypt561
@rabeaezzategypt561 3 года назад
Thank you very much for your help
@CuriousScientist
@CuriousScientist 3 года назад
You are very welcome! I am glad that I could help.
@azzamody
@azzamody 3 года назад
What about the ground wire , I have the same driver , but my control board require connection to 4 pins : step , dir , grn and +5v , can you advise if the minus pull and minus dir act as grn pin ?????????? Thank you , I am in the process of assembling the wiring and this was my issue , thank you for help
@CuriousScientist
@CuriousScientist 3 года назад
Watch the video! I think I explained it clearly. Also, there are drawings on my website.
@suri4kannada887
@suri4kannada887 Год назад
sir can I use TB6600 driver for nema 57 stepper motor?
@CuriousScientist
@CuriousScientist Год назад
Hi! As far as I am concerned, the NEMA motors are only up to NEMA 42. However, The NEMA 23 is 57 mm x 57 mm so I will assume that you are actually asking about the NEMA 23. In that case the answer is yes.
@reaper060670
@reaper060670 Год назад
I'm brand new to Steppert motors but I'm a fairly quick learner my friend. Thanks for the brilliant videos and information but I wanted to ask u question if u have the time to answer.. Q. Can all this be used in conjunction with CAD & CAM, etc to be able to run my own home built CNC Router machine or would it be far more difficult than I think?? I really want to build my own CNC. I have bought 2 steppers with the drivers to run the gantry up and down the table and one for the More to move the router over and back side to side. I want to get a better motor for move the spindle up and down but I'm a little lost atm. I'm about to open my own small woodworking shop and I eventually want to build a decent sized CNC Router to help grow my small business. I still work fulltime atm but eventually I want to go out on my own with a workshop of my own. The links to the Arduino on Banggood are not the real thing my friend. U know that right? They're a copy of some kind but not the Arduino I saw at my work place today.. Do they work as well as the real ones or should I get the arduino parts? I have bought the Aluminium and pulleys, etc but as I said I'm a little lost atm. I'm not going to rush this bcos eventually I will want to use this experience to build better and bigger than the 1200mm by 800mm CNC that I have in mind right now.. I hope u don't mind me commenting on here like this. I would be very grateful if u could let me know anything about the questions I have concerning the CNC home build.. I don't want to use steel to build bcos I don't want to go thru all the issues with metal warping under heat and all that entails so I will stick with Aluminium extrusions I have been investing in..
@CuriousScientist
@CuriousScientist Год назад
Hi! Yes, you can build your own CNC machine based on DIY parts. Several people already did it. Also, there are many shared resources where you can make your Arduino compatible with GRBL and enable it to control CNC machines. Just search for "Arduino GRBL". There is no such thing as a "real Arduino" by the way... Yes, there are the official Arduino boards, but the design itself is an open-source microcontroller board design based on Atmega chips. Even I designed and made my own Arduino, and anyone can do it.
@reaper060670
@reaper060670 Год назад
@@CuriousScientist Thanks very much for ur reply pal. I'm new to all of this type of thing but I really want to build one. I bought a load of 2020 1200mm Aluminium Extrusion, other parts to put them together and I got the V Slot wheels, and parts to run them along the sides of the aluminium. I also got stepper motors and the TB6600 drivers. I have 2 motors, Nema 17 type with the Drivers as well but how good should the motor for the spindle housing be? I'm not sure which Axis this one is atm but I'm learning all the time. I went on Banggood tonight and bought 3 UNO3 for a small amount so I hope they're ok. Everybody says they are compatible. The job I work at uses boards for Routers for companies like BT in England but they have contracts all around the world. I'm new to my job and I've never worked in this field b4 but I'm beginning to pick it up fairly quick now. One of the guys I work with showed me the Arduino board the other day. They have them in my job but I only saw it on Friday. TBH I don't know anything about programming or coding but I want to and I will work hard to learn CAD/CAM,etc and I will become fairly good at it down the line. I appreciate u taking the time to reply to my comment my friend. It's really appreciated.Take it easy my bro..
@CuriousScientist
@CuriousScientist Год назад
Typically you can buy ready-made housing for the spindle. Alternatively, a lot of makers make 3d printed bracket for them. It is up to you. I wish you good luck on the learning journey. Don't be afraid of failures and keep trying. You'll get there if you stay motivated!
@cbuj
@cbuj 7 месяцев назад
How can i conecct two steppet motor with two drivers and one arduino
@CuriousScientist
@CuriousScientist 7 месяцев назад
It seems like you didn't take the effort to search my channel... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Xf39xbopAFM.html
@void_fluidcable3779
@void_fluidcable3779 2 года назад
can i put a potentiometer in place of the source?
@CuriousScientist
@CuriousScientist 2 года назад
What source are you talking about?
@ingridcabral1471
@ingridcabral1471 10 месяцев назад
Obg cientista curioso vc é 10
@CuriousScientist
@CuriousScientist 10 месяцев назад
English please.
@ingridcabral1471
@ingridcabral1471 8 месяцев назад
thank you@@CuriousScientist you are the best
@CuriousScientist
@CuriousScientist 8 месяцев назад
Far from best, but thank you for the kind words! Cheers!
@Xxxcappie23
@Xxxcappie23 2 года назад
How strong is this motor . What can I compare its strength to
@CuriousScientist
@CuriousScientist 2 года назад
It is a standard NEMA17 motor. You can Google it and find its datasheet so you can see its torque vs rpm curve.
@bobe1723
@bobe1723 3 года назад
Is there a way to stop power to the coils when the motor is not spinning?
@CuriousScientist
@CuriousScientist 3 года назад
That's what the enable pin is for. You just have to control the ENA pin and it should turn the power off.
@CocolocoVk
@CocolocoVk Месяц назад
Is it possible to connect another type of motor to that driver? The motor I want to use is a servo motor composed of a multi-turn potentiometer and a DC motor, without control circuit board for the position of the motor, just only five cables, two for the dc motor, + and -, and three for the pot, ccw, cw and s. I have been looking for information about my motor and how to conect it to the driver and an arduino mega, but I can't find anything and I would be grateful if you could help me. Thank you
@CuriousScientist
@CuriousScientist Месяц назад
This driver is for stepper motors. That's why you won't find any information about how to connect it with a DC motor. You need a DC motor driver. TB6612FNG is, for example, a good choice if your motor is not too large.
@CocolocoVk
@CocolocoVk Месяц назад
@@CuriousScientist thanks for answering so quickly. I will follow your advise
@CocolocoVk
@CocolocoVk Месяц назад
@@CuriousScientist I have looked for more information about my motor and it is supposed to be a stepper motor. The model is HDM: L2.105.1311/01, SERVO GEAR MOTOR, Subcategory Stepper Motor.
@CuriousScientist
@CuriousScientist Месяц назад
If the motor has only 2 wires, then it is definitely not a stepper motor because a stepper typically has at least 4 wires. 2 for each coils. I tried to search for a datasheet based on the data you provided, but I did not succeed. But if it has 2 wires, it is safe to assume that it is a DC motor. Connect it to a variable power supply, set the current limit to a low value and gradually increase the voltage. If the power supply hits the current limit, increase the limit just a little bit. Observe if the motor is getting hot. If it starts to spin, then it is a DC motor. If it does not spin, then probably something else. If it is a stepper, there must be at least two more wires there somewhere.
@CocolocoVk
@CocolocoVk Месяц назад
@@CuriousScientist I just opened the enclosure and it is a DC motor with 2 cable (+ & -) and it is connected with gears to a 10 turn precision potentiometer like the model 7286R10KL.25 with 3 cable (ccw, cw & s) When I turn the shaft of the motor, the gears connected to the shaft moves the potentiometer at same time
@jrmichel
@jrmichel 2 года назад
Great video! One question: May i change the pins 9 and 10 to 6 and 7?
@CuriousScientist
@CuriousScientist 2 года назад
Hi and thanks! Yes, those pins are also OK.
@danielcristina6748
@danielcristina6748 2 года назад
Do you need Processing to communicate between the PC and Arduino
@CuriousScientist
@CuriousScientist 2 года назад
No, you can choose any random serial terminal software. Arduino IDE also has its own built-in terminal.
@EvanRuzycky
@EvanRuzycky 10 месяцев назад
Loved your video, thanks! Could you please let me know how I can add a standard 3wire 5v/S/Grn Optocoupler to your setup?
@CuriousScientist
@CuriousScientist 10 месяцев назад
Thanks! Where do you want to add the optocoupler and why?
@EvanRuzycky
@EvanRuzycky 10 месяцев назад
I would like to home the motor and tell it to rotate x steps ftom home. Am I thinking correctly: Opto 5v pin goes to Uno 5v pin, Signal goes to maybe pin 10 and third wire goes to GRN pin on Uno?
@CuriousScientist
@CuriousScientist 10 месяцев назад
It is still unclear why you need the optocoupler. Optocoupler is needed when you, for example, want to switch a low voltage signal with a high voltage signal or the other way around. A limit switch for homing is typically operated at 3.3 or 5 V, there's no need for an optocoupler.
@EvanRuzycky
@EvanRuzycky 10 месяцев назад
Maybe I'm not using the right name, I see it's called several different things.... it's an IR Optocoupler Interupter, the type of sensor commonly used in reprap 3d printers for limit control and homing of axis
@CuriousScientist
@CuriousScientist 10 месяцев назад
Yeah, that's an optical limit switch (photo interrupter), typically a phototransistor module. In that case, your first comment was almost correct. However, pin such "GRN" does not exist. Probably, you meant "GND" (ground).
@NAMHOANG-01
@NAMHOANG-01 Год назад
so Hop you tell me how to stop step motor using driver by button. maybe use start and stop button to control motor. Thanks a lot
@CuriousScientist
@CuriousScientist Год назад
I already answered it under another video...
@ws2594
@ws2594 2 года назад
Which is better cathode wiring or anode wiring? You showed anode wiring
@CuriousScientist
@CuriousScientist 2 года назад
Doesn't really matter as far as I know. I never had issues with this wiring.
@jovanivkovic5500
@jovanivkovic5500 3 года назад
Could i use another tb6600 and connect it to the arduino to the pins 7 and 6 so i have two motors working independently?
@CuriousScientist
@CuriousScientist 3 года назад
Absolutely! Look around on my channel, I have examples of it.
@jovanivkovic5500
@jovanivkovic5500 3 года назад
@@CuriousScientist Thank you! Liked and subscribed, great job!
@CuriousScientist
@CuriousScientist 3 года назад
Thank you, I appreciate it!
@sauravkumar5378
@sauravkumar5378 11 месяцев назад
Example code have Used stepper motor which use 4 digital pins (8,9,10,11) What should I do?
@CuriousScientist
@CuriousScientist 11 месяцев назад
I don't really understand what you mean. First of all, stepper motors don't have "digital pins". They only have "analog pins" if we want to be precise. 2 pairs for each coil in the motor. The demo code I provided uses 2 digital pins only, but those pins (step and direction) go to the stepper motor driver first. Then the driver has 4 output pins which are then connected to the motor's four pins.
@sauravkumar5378
@sauravkumar5378 11 месяцев назад
@@CuriousScientist i tried to run the example code for "onerevolution" under stepper, the example uses 4 pins (pins 8 to 11) but i only have 2 pins available coming from my driver to arduino which are the PUL and DIR.
@CuriousScientist
@CuriousScientist 11 месяцев назад
I have no idea what are you talking about, sorry. My code does not contain anything like "onerevolution".
@sauravkumar5378
@sauravkumar5378 11 месяцев назад
@@CuriousScientist example codes are given in aurdino ide. Anyways thanks for your concern.
@CuriousScientist
@CuriousScientist 11 месяцев назад
Those codes have nothing to do with this demo.
@shrill_kill9929
@shrill_kill9929 9 месяцев назад
Mate , could please share the source code for this one
@CuriousScientist
@CuriousScientist 9 месяцев назад
It is public, just read the description.
@Robert-zx2df
@Robert-zx2df 3 года назад
How do you connect more than 1. How many drivers can you connect ? Where do limit switches go?
@CuriousScientist
@CuriousScientist 3 года назад
The amount of drivers depend on the board you use. For the Uno, you can for example buy shields that support 5 drivers. The limit switches depend on you. It depends on how you want to use them; poll them or use them with interrupts. I have a huge playlist for stepper motors, check it!
@Robert-zx2df
@Robert-zx2df 3 года назад
@@CuriousScientist do you have to buy shields to get the 5 or utilize just the uno directly ? Isn't the shield so you can use the drivers that come with it ? Thank.
@CuriousScientist
@CuriousScientist 3 года назад
Shields are not mandatory to use, but they make your life much easier because it is much more simple to connect everything. On the other hand, you will always need drivers, you cannot drive the motors directly from the Arduino. This is a whole kit for 4 motors: www.banggood.com/custlink/DKDyi3Db8z and this is a whole kit for 5 motors: www.banggood.com/custlink/3m3yIKvAl8
@boycano8819
@boycano8819 3 года назад
Can I use same connection with PLC controller?
@CuriousScientist
@CuriousScientist 3 года назад
Sorry, but I have never worked with PLC controllers, so I have no idea.
@samkaxe2488
@samkaxe2488 8 месяцев назад
in the terms of heat do you recomand it
@CuriousScientist
@CuriousScientist 8 месяцев назад
What do you mean?
@samkaxe2488
@samkaxe2488 8 месяцев назад
i have used a4988 and DRV8825 drivers and both gets very hot after using for few seconds then the motor start playing funny , becuase both drivers gets very hot even with heat sink applied , does the driver your using TB6600 has problem with high temperature ?@@CuriousScientist
@CuriousScientist
@CuriousScientist 8 месяцев назад
Ah, now I understand! Thanks! We'll, if your driver overheats, first you should adjust the current. Probably, it is set to the max value, which is way too much for a NEMA17 motor with a regular load. If you use the TB6600 with its highest current setting it will also overheat the motor. So, first before getting a new driver, try to adjust the current on the ones you have.
@Mots-mot
@Mots-mot 3 года назад
I am using the arduino UNO + TB6600 + Nema17 + 24volt 5 Amp power. When I use micro stepping then motor moves smoothly but when I use at non microstepping mode then after few rotation motors halts and only sound will come. I am trying to achieve rpm around ~600 . is it possible to achieve with this configuration? thanks
@CuriousScientist
@CuriousScientist 3 года назад
It sounds like that you are not using acceleration but you're trying to start the motor immediately at 600 RPM. Check my other stepper motor-related videos where I show how to use the AccelStepper library and implement accelerations. The motor needs to be accelerated to the required RPM values. Nema17 should be capable of ~1800 RPM max.
@Mots-mot
@Mots-mot 3 года назад
@@CuriousScientist thanks for the your reply. I have used increasing acceleration and in that only for few rounds it rotates then stops and only sound wiill come (like it's increasing) then at the end when it de accelerate it again start to move.
@CuriousScientist
@CuriousScientist 3 года назад
Have you set the current properly? Also, it might be so that the acceleration is too quick.
@Mots-mot
@Mots-mot 3 года назад
@@CuriousScientist I have measured the current in a motor coil and it's 3 amps. I have tried to reduce but the problem will increase. Input is 5 amps.
@CuriousScientist
@CuriousScientist 3 года назад
If it starts to move then it halts, something must be wrong with the code I believe.
@mundolab3972
@mundolab3972 3 года назад
Você faz 14 minutos de vídeo e não posta o código? Não encontrei no seu site
@CuriousScientist
@CuriousScientist 3 года назад
Sorry, I don't know this language, so I will reply in English. Yes, I posted a 14 minutes video without posting the code. First of all, who are you to demand anything from me for free?? Second, you should maybe read the description where it is written that you can find the source code under another video that focuses more on the code part. This video is focusing on the wiring and assembly. Oh, and be careful, the other video where I explain the code is even longer.
@mundolab3972
@mundolab3972 3 года назад
@@CuriousScientist Primeiro de tudo: Não estou exigindo. A frase expressa uma crítica moderada. Não fique chateado comigo. Falo português, por isso não entendi direito seu vídeo sobre o código. Eu estou fazendo um trabalho pra faculdade. Só preciso que me responda nesse vídeo. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-usYdMPWf7xw.html Aprecio seu trabalho.
@CuriousScientist
@CuriousScientist 3 года назад
English, please.
@abdullahsalem3695
@abdullahsalem3695 2 года назад
Hello, can you please share the code used?
@CuriousScientist
@CuriousScientist 2 года назад
Hi! It is shared.
@PK-mh1ir
@PK-mh1ir 2 года назад
What’s the name of the power supply connection thing? I’m a newbie!
@CuriousScientist
@CuriousScientist 2 года назад
You will find it here, under the connectors section: curiousscientist.tech/tools
@PK-mh1ir
@PK-mh1ir 2 года назад
Thank you!
@CuriousScientist
@CuriousScientist 2 года назад
You are very welcome!
@PK-mh1ir
@PK-mh1ir 2 года назад
When selecting a power supply for my motor. Does output current, input voltage, and power rating matter? Or do I only look at output voltage that I will need
@CuriousScientist
@CuriousScientist 2 года назад
Of course all matters. Check the datasheet of the motor, then pick a PSU according to the requirements.
@gokhantiryaki1186
@gokhantiryaki1186 Год назад
code please?
@CuriousScientist
@CuriousScientist Год назад
Read the description please?
@paulpease1788
@paulpease1788 4 года назад
This is obviously a good topic for your RU-vid views (although it has no meaning to me). Look at the views. Use the same keywords and do more of these type videos and see if views increase!
@CuriousScientist
@CuriousScientist 4 года назад
Actually, I love working with stepper motors. I am planning to put more work into these kind of videos, actually, my most recent video (12 July) is also in this topic. And one of my most viewed video with over 10k views is also with stepper motors. But it is sad to see that not even 5% of the viewers of that video have subscribed. But what is even more sad is the fact that more than 2100 people have downloaded the source code that I freely provided in that video and not even half of it subscribed in exchange for my efforts. Obviously, no one asked for these videos and codes, but it looks like it helps many people, yet they can't even click a button to "return the favor".
@paulpease1788
@paulpease1788 4 года назад
@@CuriousScientist you have to ask. Psychologically the law of reciprocity will force most people to have the urge to return a favor. They just don't know how unless you tell them what to do.
@CuriousScientist
@CuriousScientist 4 года назад
I am trying to incorporate "begging" in my recent videos, but it is not easy. Slowly but surely, I will find a way to efficiently do it without disrupting the video too much. I don't know if you have noticed, but now, there is a logo in the bottom right corner over the video where people can subscribe. Maybe that will help too.
@nadimmahmudjewel5764
@nadimmahmudjewel5764 3 года назад
where is the code dear sir
@CuriousScientist
@CuriousScientist 3 года назад
The code is in the description of the video as always.
@onginhong1472
@onginhong1472 Год назад
I need code please 😢
@CuriousScientist
@CuriousScientist Год назад
Read the description....
@andrewniewiara7614
@andrewniewiara7614 3 года назад
I can not locate the source code to run it.
@CuriousScientist
@CuriousScientist 3 года назад
Check the description of the video as well as the website maybe???
@user-bd7ht4jz3k
@user-bd7ht4jz3k 2 года назад
code please
@CuriousScientist
@CuriousScientist 2 года назад
Donate please.
@restsheets2962
@restsheets2962 Год назад
Where is the code?
@CuriousScientist
@CuriousScientist Год назад
Read the description maybe.
@restsheets2962
@restsheets2962 Год назад
@@CuriousScientist there's only your website without the code
@CuriousScientist
@CuriousScientist Год назад
Apparently, you cannot read. Try again.
@deepeshkushwah607
@deepeshkushwah607 3 года назад
we can control tb6600 stepper motor driver 24 hours
@CuriousScientist
@CuriousScientist 3 года назад
As long as you wish. If you use it at higher currents, I would recommend adding a fan to it's heat sink. Just to be safer.
@deepeshkushwah607
@deepeshkushwah607 3 года назад
Please help me to make a code for DMX stapper motor with optical encoder
@CuriousScientist
@CuriousScientist 3 года назад
@@deepeshkushwah607 Sorry, I don't do work for free.
@deepeshkushwah607
@deepeshkushwah607 3 года назад
I will pay you for code 26 $
@deepeshkushwah607
@deepeshkushwah607 3 года назад
Please help me
@deeepakkushwah2503
@deeepakkushwah2503 3 года назад
We can control stepper motor nema 23 24 hours
@CuriousScientist
@CuriousScientist 3 года назад
Yes.
@deeepakkushwah2503
@deeepakkushwah2503 3 года назад
Thank you
@htetaungkhant5753
@htetaungkhant5753 3 года назад
Arduino code
@CuriousScientist
@CuriousScientist 3 года назад
Arduino code, what?
@mundolab3972
@mundolab3972 3 года назад
Where are the algoritm?
@CuriousScientist
@CuriousScientist 3 года назад
Read my previous answer.
@nadimmahmudjewel5764
@nadimmahmudjewel5764 3 года назад
Arduino: 1.8.14 Hourly Build 2020/09/23 10:33 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)" The sketch name had to be modified. Sketch names must start with a letter or number, followed by letters, numbers, dashes, dots and underscores. Maximum length is 63 characters. TB6600_and_Arduino_-_Wiring_and_demonstration:22:10: fatal error: AccelStepper.h: No such file or directory #include ^~~~~~~~~~~~~~~~ compilation terminated. exit status 1 AccelStepper.h: No such file or directory This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@CuriousScientist
@CuriousScientist 3 года назад
What is this?
@nadimmahmudjewel5764
@nadimmahmudjewel5764 3 года назад
what is problem in this code
@CuriousScientist
@CuriousScientist 3 года назад
There is nothing wrong with the code. I uploaded the code I used in the video. It worked.
@CuriousScientist
@CuriousScientist 3 года назад
BTW, you have to have the AccelStepper library installed in the Arduino IDE. Otherwise, you won't be able to compile the code.
@chaosloveBronson
@chaosloveBronson 3 года назад
And I'm only 3 mins in
@bolotfabrice8193
@bolotfabrice8193 2 года назад
pourquoi tu parles en anglais???
@CuriousScientist
@CuriousScientist 2 года назад
I have no idea what you said.
@ClownWhisper
@ClownWhisper 2 года назад
like everything else that i try this does nothing but lock the motor up I copied your code from your website and installed the accelstepper.h using the installation tool in the Arduino software. i get no errors at all but it does not turn. is there a is there a smaller bit of source code I could try? The source code I copied is quite lengthy maybe I copied the wrong bit?
@CuriousScientist
@CuriousScientist 2 года назад
If it locks the motor up, you did not follow the video properly. The same code is shown in the video and as you can see it, it works for me without any issues. You can test your system with simpler the examples provided in the AccelStepper library.
@ClownWhisper
@ClownWhisper 2 года назад
@@CuriousScientist I HAVE RECHECKED MY WIRING OVER AND OVER ITS PERFECT. oops caps lol I can run the regular stepper code included with the Arduino ide and it runs it, maybe my dip switches?
@CuriousScientist
@CuriousScientist 2 года назад
I don't really know without seeing what you built or how you use my code. If you followed the video and copied the code, it should work. Do you by chance mixed the direction and step pins?
@ClownWhisper
@ClownWhisper 2 года назад
@@CuriousScientist no i have checked all of these many many times, this is very very simple mt 12v power supply is only rated for 1.4 amps.....but the stepper I'm using should work with that
@ClownWhisper
@ClownWhisper 2 года назад
@@CuriousScientist fixed my comment 1.4 amps
@hifzaashraf6011
@hifzaashraf6011 2 года назад
Can i use the same connections and code with DM542 driver?
@CuriousScientist
@CuriousScientist 2 года назад
Yes.
Далее
Big Stepper Motors with Arduino
29:43
Просмотров 1,2 млн
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 2,7 млн
Что думаете?
00:54
Просмотров 735 тыс.
Они захватят этот мир🗿
00:48
Просмотров 920 тыс.
Arduino with TB6600 using AccelStepper library
27:33
Просмотров 68 тыс.
Build a CNC Controller with Arduino, TB6600 and GRBL
14:19
Can Jewel Bearings Be Pressed In The Home Shop?
17:37
Просмотров 134 тыс.
Beginners Guide To Using Large Stepper Motors: #087
19:49
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 2,7 млн