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 Жыл бұрын
I try to provide useful information. I am glad to hear that my video could help you!
@lousmith19672 жыл бұрын
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! 🙂
@CuriousScientist2 жыл бұрын
Thanks! I hope that my new videos are becoming better in explaining things.
@rohitshelkar75253 жыл бұрын
Hey curious scientist really doing a great job with great understanding.helpful a lot for BTech engineering students
@CuriousScientist3 жыл бұрын
Hi! I am glad to hear that my videos can be helpful!
@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 Жыл бұрын
Super! You can find all the relevant tutorials on my channel and website. Cheers!
@woodywood19514 жыл бұрын
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!
@CuriousScientist4 жыл бұрын
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.
@woodywood19514 жыл бұрын
@@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!!!
@CuriousScientist4 жыл бұрын
The laws' of physics are still the same, so I would assume that your experiences are still valid.
@Yosemite_Sam2 жыл бұрын
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.
@CuriousScientist2 жыл бұрын
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.
@yt_nangtung2 жыл бұрын
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
@CuriousScientist2 жыл бұрын
Thanks! Sorry, but I am not making videos on request for free. I have my own schedule and ideas for videos.
@markuskoarmani13644 жыл бұрын
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!
@CuriousScientist4 жыл бұрын
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.
@Rohityoyo1997 Жыл бұрын
I just love the way you teach. Thank you
@CuriousScientist Жыл бұрын
Thank you!
@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 Жыл бұрын
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 Жыл бұрын
@@CuriousScientist got it, just ordered one, thanks!
@slicktires20112 жыл бұрын
Good overview. Can you explain what the ENA does? I understand it locks the motor when it's not receiving pulses, is that correct?
@CuriousScientist2 жыл бұрын
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.
@slicktires20112 жыл бұрын
@@CuriousScientist So connecting ENA is better to avoid overheating?
@CuriousScientist2 жыл бұрын
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.
@GeniusNation3 жыл бұрын
Amazing work !! Really. Love you.
@CuriousScientist3 жыл бұрын
Thanks!
@paulpease17884 ай бұрын
I have not dealt with arduino before. What should I do to start learning what they can do?
@CuriousScientist4 ай бұрын
Basic electronics knowledge is useful. Then, just buy a module and keep experimenting.
@nicholasbrown83843 жыл бұрын
Thank you. Can I use this controller with an ESP32 instead of the Arduino?
@CuriousScientist3 жыл бұрын
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.
@gowthamgopinath54822 жыл бұрын
Have you tried? Working? I am in the same situation now..
@dondon19922 жыл бұрын
I hope, in the future you will use nextion and incorporate the program for stepper motor..
@CuriousScientist2 жыл бұрын
It is on my to do list to implement my control panel for Nextion, but it doesn't have high priority.
@pepecyberdesign Жыл бұрын
Hi thanks for sharing your knowledge, sorry for the question in the code is listed pin1 where you would go connected
@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.
@marc60033 жыл бұрын
Excellent explanation, thanks a lot!
@CuriousScientist3 жыл бұрын
Glad it was helpful!
@markfraser78102 ай бұрын
The TB6600s I have, use the base of a transistor for Step and Dir inputs. I've found that this shorts, killing the arduino output pin. The schematic I found uses opto=isolators, not transistors, so this is an error or big difference between suppliers. Not a good thing.
@CuriousScientistАй бұрын
It's always good to consult the product's datasheet. Similar looking devices can have different internals.
@NorthGeorgiaQuail4 жыл бұрын
Were you just using one of Accelstepper's sample codes to do the speed and acceleration? If so, which one? Thanks!
@CuriousScientist4 жыл бұрын
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.
@kamleshpanchal86612 жыл бұрын
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 .
@CuriousScientist2 жыл бұрын
Disable the motor.
@gabrielchen39034 жыл бұрын
@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
@CuriousScientist4 жыл бұрын
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.
@harownowon64493 жыл бұрын
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🙏🏻
@CuriousScientist3 жыл бұрын
Hi! You should watch my other stepper motor-related videos, I have a plenty of them. This video for example can be helpful: kzbin.info/www/bejne/ZonMaKikodZkgpY
@tbip20014 жыл бұрын
So could you flash grbl to the arduino and then use universal g code sender to control the motor? Great tutorial
@CuriousScientist4 жыл бұрын
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.
@ammarazizulraheem56733 жыл бұрын
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.
@CuriousScientist3 жыл бұрын
It is a DC jack with screw terminal. But investigate them carefully as they can be 2.1 mm and 2.5 mm too.
@ammarazizulraheem56733 жыл бұрын
@@CuriousScientist tqvm
@blackbox330 Жыл бұрын
Sir, Great video
@CuriousScientist Жыл бұрын
Thank you!
@paul.alarner6410Ай бұрын
in my accell stepper library it says"AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5" do i need to change this?.
@paul.alarner6410Ай бұрын
thats in the example bounce in the accelstepper library.
@CuriousScientistАй бұрын
I don't understand your question. What's wrong with what I provided?
@chaosloveBronson3 жыл бұрын
This is super simple and helpful and amazing
@CuriousScientist3 жыл бұрын
Thank you! I am glad that you found it helpful!
@markuskoarmani13644 жыл бұрын
Can you run sync 2 motors with out splitting connections on UNO or Mega? And does UNO or Mega control 4 motors independently?
@CuriousScientist4 жыл бұрын
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.
@EvanRuzycky Жыл бұрын
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 Жыл бұрын
Thanks! Where do you want to add the optocoupler and why?
@EvanRuzycky Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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).
@danielmurphy131911 ай бұрын
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?
@CuriousScientist11 ай бұрын
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.
@jrmichel3 жыл бұрын
Great video! One question: May i change the pins 9 and 10 to 6 and 7?
@CuriousScientist3 жыл бұрын
Hi and thanks! Yes, those pins are also OK.
@samirsuleymanov20992 жыл бұрын
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.
@CuriousScientist2 жыл бұрын
Hi and welcome! Physically, it is possible but I would not recommend it. One driver - one motor. You can run them synchronously using software.
@johncole51754 жыл бұрын
Does the + and - on the A and B loops have any significance? Thanks for this video!!
@CuriousScientist4 жыл бұрын
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.
@CuriousScientist2 жыл бұрын
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.
@muthukumarankothandaraman23712 жыл бұрын
@@CuriousScientist ah yes.. I missed the short-test.. Thanks 👍
@ibgori4 жыл бұрын
Can you use acceleration in speed mode with the accelSteper library?
@CuriousScientist4 жыл бұрын
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.
@stevenleow26302 жыл бұрын
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?
@CuriousScientist2 жыл бұрын
Hi and thanks! I strongly discourage the idea! Use two drivers and a properly written code.
@reaper0606702 жыл бұрын
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..
@CuriousScientist2 жыл бұрын
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.
@reaper0606702 жыл бұрын
@@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..
@CuriousScientist2 жыл бұрын
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!
@robertorodriguez1088 Жыл бұрын
Can the ENA and DIR inputs be supplied by more than 5V? Will it work with 12V?
@CuriousScientist Жыл бұрын
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.
@harshalwasnik4690 Жыл бұрын
Where can I draw the wiring diagram as seen in your blog?
@CuriousScientist Жыл бұрын
In a software called Fritzing.
@marcomangano88824 жыл бұрын
Could you tell me the name of the power supply you are using
@CuriousScientist4 жыл бұрын
Maybe you want to read the description.
@azzamody3 жыл бұрын
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
@CuriousScientist3 жыл бұрын
Watch the video! I think I explained it clearly. Also, there are drawings on my website.
@atharvaahire3238 Жыл бұрын
Which power supply did you used , Please tell ASAP I need it for Project
@CuriousScientist Жыл бұрын
It is on my website under parts & tools page.
@3dtexan8902 жыл бұрын
As I am still learn about the arduino is there a way to add a potentiometer for speed control? Thanks
@CuriousScientist2 жыл бұрын
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.
@jawedqadir28072 жыл бұрын
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 ?
@CuriousScientist2 жыл бұрын
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.
@Top-notchShorts4 жыл бұрын
Great video!
@CuriousScientist4 жыл бұрын
Thank you! Don't forget to subscribe, I will upload more videos in this topic.
@Top-notchShorts4 жыл бұрын
I Already subscribed
@umargul56442 жыл бұрын
Well done sir
@CuriousScientist2 жыл бұрын
Thank you!
@ingridcabral1471 Жыл бұрын
Obg cientista curioso vc é 10
@CuriousScientist Жыл бұрын
English please.
@ingridcabral147111 ай бұрын
thank you@@CuriousScientist you are the best
@CuriousScientist11 ай бұрын
Far from best, but thank you for the kind words! Cheers!
@CocolocoVk4 ай бұрын
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
@CuriousScientist4 ай бұрын
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.
@CocolocoVk4 ай бұрын
@@CuriousScientist thanks for answering so quickly. I will follow your advise
@CocolocoVk4 ай бұрын
@@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.
@CuriousScientist4 ай бұрын
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.
@CocolocoVk4 ай бұрын
@@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
@ws25942 жыл бұрын
Which is better cathode wiring or anode wiring? You showed anode wiring
@CuriousScientist2 жыл бұрын
Doesn't really matter as far as I know. I never had issues with this wiring.
@danielcristina67482 жыл бұрын
Do you need Processing to communicate between the PC and Arduino
@CuriousScientist2 жыл бұрын
No, you can choose any random serial terminal software. Arduino IDE also has its own built-in terminal.
@danielretz40224 жыл бұрын
nice, perfect and clear
@CuriousScientist4 жыл бұрын
Thank you, I am glad you liked it!
@samkaxe248810 ай бұрын
in the terms of heat do you recomand it
@CuriousScientist10 ай бұрын
What do you mean?
@samkaxe248810 ай бұрын
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
@CuriousScientist10 ай бұрын
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.
@Xxxcappie232 жыл бұрын
How strong is this motor . What can I compare its strength to
@CuriousScientist2 жыл бұрын
It is a standard NEMA17 motor. You can Google it and find its datasheet so you can see its torque vs rpm curve.
@rabeaezzategypt5614 жыл бұрын
Thank you very much for your help
@CuriousScientist4 жыл бұрын
You are very welcome! I am glad that I could help.
@sauravkumar5378 Жыл бұрын
Example code have Used stepper motor which use 4 digital pins (8,9,10,11) What should I do?
@CuriousScientist Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
I have no idea what are you talking about, sorry. My code does not contain anything like "onerevolution".
@sauravkumar5378 Жыл бұрын
@@CuriousScientist example codes are given in aurdino ide. Anyways thanks for your concern.
@CuriousScientist Жыл бұрын
Those codes have nothing to do with this demo.
@NAMHOANG-012 жыл бұрын
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
@CuriousScientist2 жыл бұрын
I already answered it under another video...
@jovanivkovic55003 жыл бұрын
Could i use another tb6600 and connect it to the arduino to the pins 7 and 6 so i have two motors working independently?
@CuriousScientist3 жыл бұрын
Absolutely! Look around on my channel, I have examples of it.
@jovanivkovic55003 жыл бұрын
@@CuriousScientist Thank you! Liked and subscribed, great job!
@CuriousScientist3 жыл бұрын
Thank you, I appreciate it!
@alexalex-hb4dq Жыл бұрын
some of these have the pull - ,ena- ,ena+ , and direc - all connected to ground, why is that?
@CuriousScientist Жыл бұрын
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.
@hifzaashraf60112 жыл бұрын
Can i use the same connections and code with DM542 driver?
@CuriousScientist2 жыл бұрын
Yes.
@Robert-zx2df3 жыл бұрын
How do you connect more than 1. How many drivers can you connect ? Where do limit switches go?
@CuriousScientist3 жыл бұрын
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-zx2df3 жыл бұрын
@@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.
@CuriousScientist3 жыл бұрын
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
@Mots-mot3 жыл бұрын
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
@CuriousScientist3 жыл бұрын
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-mot3 жыл бұрын
@@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.
@CuriousScientist3 жыл бұрын
Have you set the current properly? Also, it might be so that the acceleration is too quick.
@Mots-mot3 жыл бұрын
@@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.
@CuriousScientist3 жыл бұрын
If it starts to move then it halts, something must be wrong with the code I believe.
@cbuj10 ай бұрын
How can i conecct two steppet motor with two drivers and one arduino
@CuriousScientist10 ай бұрын
It seems like you didn't take the effort to search my channel... kzbin.info/www/bejne/jpeWaquYpNV0fK8
@void_fluidcable37792 жыл бұрын
can i put a potentiometer in place of the source?
@CuriousScientist2 жыл бұрын
What source are you talking about?
@bobe17233 жыл бұрын
Is there a way to stop power to the coils when the motor is not spinning?
@CuriousScientist3 жыл бұрын
That's what the enable pin is for. You just have to control the ENA pin and it should turn the power off.
@boycano88193 жыл бұрын
Can I use same connection with PLC controller?
@CuriousScientist3 жыл бұрын
Sorry, but I have never worked with PLC controllers, so I have no idea.
@mundolab39723 жыл бұрын
Você faz 14 minutos de vídeo e não posta o código? Não encontrei no seu site
@CuriousScientist3 жыл бұрын
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.
@mundolab39723 жыл бұрын
@@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. kzbin.info/www/bejne/q6S8lYCGjMtqrtk Aprecio seu trabalho.
@CuriousScientist3 жыл бұрын
English, please.
@shrill_kill9929 Жыл бұрын
Mate , could please share the source code for this one
@CuriousScientist Жыл бұрын
It is public, just read the description.
@paulpease17884 жыл бұрын
This is obviously a good topic for your KZbin 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!
@CuriousScientist4 жыл бұрын
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".
@paulpease17884 жыл бұрын
@@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.
@CuriousScientist4 жыл бұрын
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.
@PK-mh1ir2 жыл бұрын
What’s the name of the power supply connection thing? I’m a newbie!
@CuriousScientist2 жыл бұрын
You will find it here, under the connectors section: curiousscientist.tech/tools
@PK-mh1ir2 жыл бұрын
Thank you!
@CuriousScientist2 жыл бұрын
You are very welcome!
@PK-mh1ir2 жыл бұрын
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
@CuriousScientist2 жыл бұрын
Of course all matters. Check the datasheet of the motor, then pick a PSU according to the requirements.
@rogerwilson636712 күн бұрын
Didn't work for me. Cannot even figure out what text editor you are using because it doesn't appear to be the Arduino one and you don't say what it is. Is it a Python editor? Who knows, I just gave up.
@CuriousScientist12 күн бұрын
You use whatever editor suits your needs. I used MS Visual Studio with the VisualMicro add-on. The code I provided is obviously written in C, I don't even know why you think it is python....
@rogerwilson636712 күн бұрын
I thought it was python because I believe you can control steppers via python /arduino. I have a simple stepper program which works fine so I was sure it wasn't my driver/arduino at fault. No problem anyhow. I was only trying it out of interest.
@abdullahsalem36952 жыл бұрын
Hello, can you please share the code used?
@CuriousScientist2 жыл бұрын
Hi! It is shared.
@deepeshkushwah6073 жыл бұрын
we can control tb6600 stepper motor driver 24 hours
@CuriousScientist3 жыл бұрын
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.
@deepeshkushwah6073 жыл бұрын
Please help me to make a code for DMX stapper motor with optical encoder
@CuriousScientist3 жыл бұрын
@@deepeshkushwah607 Sorry, I don't do work for free.
@deepeshkushwah6073 жыл бұрын
I will pay you for code 26 $
@deepeshkushwah6073 жыл бұрын
Please help me
@deeepakkushwah25033 жыл бұрын
We can control stepper motor nema 23 24 hours
@CuriousScientist3 жыл бұрын
Yes.
@deeepakkushwah25033 жыл бұрын
Thank you
@gokhantiryaki1186 Жыл бұрын
code please?
@CuriousScientist Жыл бұрын
Read the description please?
@restsheets2962 Жыл бұрын
Where is the code?
@CuriousScientist Жыл бұрын
Read the description maybe.
@restsheets2962 Жыл бұрын
@@CuriousScientist there's only your website without the code
@CuriousScientist Жыл бұрын
Apparently, you cannot read. Try again.
@nadimmahmudjewel57644 жыл бұрын
where is the code dear sir
@CuriousScientist4 жыл бұрын
The code is in the description of the video as always.
@onginhong1472 Жыл бұрын
I need code please 😢
@CuriousScientist Жыл бұрын
Read the description....
@K.Patawan2 жыл бұрын
code please
@CuriousScientist2 жыл бұрын
Donate please.
@nadimmahmudjewel57644 жыл бұрын
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.
@CuriousScientist4 жыл бұрын
What is this?
@nadimmahmudjewel57644 жыл бұрын
what is problem in this code
@CuriousScientist4 жыл бұрын
There is nothing wrong with the code. I uploaded the code I used in the video. It worked.
@CuriousScientist4 жыл бұрын
BTW, you have to have the AccelStepper library installed in the Arduino IDE. Otherwise, you won't be able to compile the code.
@andrewniewiara76143 жыл бұрын
I can not locate the source code to run it.
@CuriousScientist3 жыл бұрын
Check the description of the video as well as the website maybe???
@mundolab39723 жыл бұрын
Where are the algoritm?
@CuriousScientist3 жыл бұрын
Read my previous answer.
@htetaungkhant57533 жыл бұрын
Arduino code
@CuriousScientist3 жыл бұрын
Arduino code, what?
@sudharsanjayabalan9384Ай бұрын
time ewaste
@CuriousScientistАй бұрын
Cool
@chaosloveBronson3 жыл бұрын
And I'm only 3 mins in
@bolotfabrice81933 жыл бұрын
pourquoi tu parles en anglais???
@CuriousScientist3 жыл бұрын
I have no idea what you said.
@ClownWhisper2 жыл бұрын
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?
@CuriousScientist2 жыл бұрын
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.
@ClownWhisper2 жыл бұрын
@@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?
@CuriousScientist2 жыл бұрын
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?
@ClownWhisper2 жыл бұрын
@@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
@ClownWhisper2 жыл бұрын
@@CuriousScientist fixed my comment 1.4 amps
@suri4kannada887 Жыл бұрын
sir can I use TB6600 driver for nema 57 stepper motor?
@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.