TB6600 and Arduino - Wiring and demonstration

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • In this video, I show you how to connect the TB6600 stepper motor controller to an Arduino and a 4-wire stepper motor. With this setup, you will be able to control your stepper motor with the AccelStepper library.
    I talk about the library in detail in the following video, where I also share the full source code which allows you to have great control over a stepper motor:
    • Arduino with AccelStep...
    The wiring diagram is on my website:
    curiousscientist.tech/blog/ar...
    You can easily find the wires which belong to the same coil by switching your multimeter into continuity mode, selecting one of the four wires, and measuring it against the 3 others. When you hear the beeping noise, you found the other end of the coil. TIP: make a loop/knot on the wires which belong to the same coil, so you can find them easily later on.
    Please subscribe to support my work!
    Please consider supporting me on Patreon:
    / curiousscientist
    You can find all the relevant parts on my website and you can support me by buying them through my affiliate links:
    curiousscientist.tech/tools
  • Наука та технологія

КОМЕНТАРІ • 240

  • @lousmith1967
    @lousmith1967 Рік тому +4

    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 8 місяців тому

    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  8 місяців тому

      I try to provide useful information. I am glad to hear that my video could help you!

  • @rohitshelkar7525
    @rohitshelkar7525 3 роки тому +2

    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!

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

    I just love the way you teach. Thank you

  • @chaosloveBronson
    @chaosloveBronson 2 роки тому

    This is super simple and helpful and amazing

  • @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 роки тому +2

      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.

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

    Excellent explanation, thanks a lot!

  • @KW-ei3pi
    @KW-ei3pi Рік тому +1

    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!

  • @danielretz4022
    @danielretz4022 4 роки тому

    nice, perfect and clear

  • @rabeaezzategypt561
    @rabeaezzategypt561 3 роки тому

    Thank you very much for your help

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      You are very welcome! I am glad that I could help.

  • @blackbox330
    @blackbox330 8 місяців тому +1

    Sir, Great video

  • @Top-notchShorts
    @Top-notchShorts 4 роки тому +1

    Great video!

    • @CuriousScientist
      @CuriousScientist  4 роки тому +1

      Thank you! Don't forget to subscribe, I will upload more videos in this topic.

    • @Top-notchShorts
      @Top-notchShorts 4 роки тому

      I Already subscribed

  • @GeniusNation
    @GeniusNation 3 роки тому +1

    Amazing work !! Really. Love you.

  • @woodywood1951
    @woodywood1951 3 роки тому +2

    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 роки тому +2

      @@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 роки тому +1

      The laws' of physics are still the same, so I would assume that your experiences are still valid.

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

      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.

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

    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.

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

    Well done sir

  • @gabrielchen3903
    @gabrielchen3903 4 роки тому +1

    @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 роки тому +3

      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.

  • @ingridcabral1471
    @ingridcabral1471 8 місяців тому

    Obg cientista curioso vc é 10

  • @albassett9755
    @albassett9755 4 роки тому +1

    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.

  • @ibgori
    @ibgori 4 роки тому +1

    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.

  • @johncole5175
    @johncole5175 4 роки тому +2

    Does the + and - on the A and B loops have any significance? Thanks for this video!!

    • @CuriousScientist
      @CuriousScientist  4 роки тому +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 роки тому +1

      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 роки тому +1

      @@CuriousScientist ah yes.. I missed the short-test.. Thanks 👍

  • @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 роки тому +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.

  • @markuskoarmani1364
    @markuskoarmani1364 4 роки тому +1

    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.

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

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

  • @jrmichel
    @jrmichel 2 роки тому

    Great video! One question: May i change the pins 9 and 10 to 6 and 7?

  • @tbip2001
    @tbip2001 3 роки тому +1

    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.

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

  • @harownowon6449
    @harownowon6449 3 роки тому +1

    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: ua-cam.com/video/0Xi7unlq1L4/v-deo.html

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

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

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

    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  Рік тому +1

      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  Рік тому +1

      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.

  • @nicholasbrown8384
    @nicholasbrown8384 3 роки тому +1

    Thank you. Can I use this controller with an ESP32 instead of the Arduino?

    • @CuriousScientist
      @CuriousScientist  3 роки тому +1

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

  • @marcomangano8882
    @marcomangano8882 3 роки тому +1

    Could you tell me the name of the power supply you are using

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

    I hope, in the future you will use nextion and incorporate the program for stepper motor..

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

      It is on my to do list to implement my control panel for Nextion, but it doesn't have high priority.

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

    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  Рік тому +1

      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 Рік тому +1

      @@CuriousScientist got it, just ordered one, thanks!

  • @ammarazizulraheem5673
    @ammarazizulraheem5673 3 роки тому +1

    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 роки тому +1

      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 роки тому +1

      @@CuriousScientist tqvm

  • @danielmurphy1319
    @danielmurphy1319 7 місяців тому

    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  7 місяців тому

      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.

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

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

    Where can I draw the wiring diagram as seen in your blog?

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

    Which power supply did you used , Please tell ASAP I need it for Project

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

      It is on my website under parts & tools page.

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

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

    Can the ENA and DIR inputs be supplied by more than 5V? Will it work with 12V?

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

      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.

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

    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 .

  • @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 роки тому +1

      Absolutely! Look around on my channel, I have examples of it.

    • @jovanivkovic5500
      @jovanivkovic5500 3 роки тому +1

      @@CuriousScientist Thank you! Liked and subscribed, great job!

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      Thank you, I appreciate it!

  • @hifzaashraf6011
    @hifzaashraf6011 2 роки тому

    Can i use the same connections and code with DM542 driver?

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

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

    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

  • @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 роки тому +1

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

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

    can i put a potentiometer in place of the source?

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

  • @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 роки тому +1

      @@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 роки тому +1

      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

  • @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  Рік тому +1

      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!

  • @paulpease1788
    @paulpease1788 8 днів тому +1

    I have not dealt with arduino before. What should I do to start learning what they can do?

    • @CuriousScientist
      @CuriousScientist  8 днів тому

      Basic electronics knowledge is useful. Then, just buy a module and keep experimenting.

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

  • @EvanRuzycky
    @EvanRuzycky 8 місяців тому

    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  8 місяців тому

      Thanks! Where do you want to add the optocoupler and why?

    • @EvanRuzycky
      @EvanRuzycky 8 місяців тому

      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  8 місяців тому

      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 8 місяців тому +1

      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  8 місяців тому

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

  • @cbuj
    @cbuj 6 місяців тому

    How can i conecct two steppet motor with two drivers and one arduino

    • @CuriousScientist
      @CuriousScientist  6 місяців тому

      It seems like you didn't take the effort to search my channel...
      ua-cam.com/video/Xf39xbopAFM/v-deo.html

  • @Xxxcappie23
    @Xxxcappie23 2 роки тому

    How strong is this motor . What can I compare its strength to

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

      It is a standard NEMA17 motor. You can Google it and find its datasheet so you can see its torque vs rpm curve.

  • @alexalex-hb4dq
    @alexalex-hb4dq 9 місяців тому

    some of these have the pull - ,ena- ,ena+ , and direc - all connected to ground, why is that?

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

      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.

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

    Example code have
    Used stepper motor which use 4 digital pins
    (8,9,10,11)
    What should I do?

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

      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 10 місяців тому

      @@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  10 місяців тому

      I have no idea what are you talking about, sorry. My code does not contain anything like "onerevolution".

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

      @@CuriousScientist example codes are given in aurdino ide.
      Anyways thanks for your concern.

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

      Those codes have nothing to do with this demo.

  • @CocolocoVk
    @CocolocoVk 14 днів тому

    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  14 днів тому

      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 14 днів тому +1

      @@CuriousScientist thanks for answering so quickly. I will follow your advise

    • @CocolocoVk
      @CocolocoVk 14 днів тому +1

      @@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  14 днів тому

      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 14 днів тому

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

  • @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.
      ua-cam.com/video/usYdMPWf7xw/v-deo.html
      Aprecio seu trabalho.

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      English, please.

  • @samkaxe2488
    @samkaxe2488 6 місяців тому

    in the terms of heat do you recomand it

    • @CuriousScientist
      @CuriousScientist  6 місяців тому

      What do you mean?

    • @samkaxe2488
      @samkaxe2488 6 місяців тому +1

      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  6 місяців тому +1

      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.

  • @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 роки тому +1

      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.

  • @abdullahsalem3695
    @abdullahsalem3695 2 роки тому

    Hello, can you please share the code used?

  • @shrill_kill9929
    @shrill_kill9929 8 місяців тому

    Mate , could please share the source code for this one

  • @paulpease1788
    @paulpease1788 4 роки тому +1

    This is obviously a good topic for your UA-cam 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 роки тому +1

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

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

  • @nadimmahmudjewel5764
    @nadimmahmudjewel5764 3 роки тому

    where is the code dear sir

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      The code is in the description of the video as always.

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

    code please?

  • @user-bd7ht4jz3k
    @user-bd7ht4jz3k 2 роки тому

    code please

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

    I need code please 😢

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

    Where is the code?

  • @htetaungkhant5753
    @htetaungkhant5753 3 роки тому

    Arduino code

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

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

  • @mundolab3972
    @mundolab3972 3 роки тому

    Where are the algoritm?

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

    And I'm only 3 mins in

  • @bolotfabrice8193
    @bolotfabrice8193 2 роки тому

    pourquoi tu parles en anglais???

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