Controlling a stepper motor through a signal generator
HTML-код
- Опубликовано: 5 окт 2024
- Single Axis Frequency Generator Demo
After my first video got so many views and questions, I've decided to follow up on a full-on start to finish demo and wiring.
Signal Generator: amzn.to/40w82Es
Stepper Motor: amzn.to/492FLbS
Stepper Driver: amzn.to/3RxAMbC
Power Supply: amzn.to/48JOU9D
PDF wiring diagram link:
designconceptsc...
Straightforward and simple, great. Showing in the wiring diagram that the stepper motor driver needs to be supplied with power as well would have made it an immediate success.
Thanks! Yeah I cannot believe I forgot that vital info. doh!
Thanks! Yeah I cannot believe I forgot that vital info. doh!
The only one who has explained...Thanks man! ...a lot :)
Thank you for the kind words!
@@TylerHarney
I am going to use 3 nema17 7.2kg torque motor is one lrs75 24v enough for it?
Hi Tyler, thank you for your very helpful video and wiring diagram, it’s much appreciated😊
Thanks for the lesson, I have had one of these controllers for two years and just found out how to use it. Excellent info!
:D I'm so glad I could be of help! Srry, just saw your comment
So well explained thanks. I'm trying to control a solenoid on and off from 0- 200 per minute. Really difficult to achieve but I think this might work. Cheers :)
Thanks so much. At last a clear video that tells me what wires go were. I want it to pulse a solenoid, but more difficult than you would imagine :) cheers
i could help you, if you want you can add my SKYPE ID: 0934948436 I'm LEE
My thoughts exactly!!!
i wonder if i could use this to lift my rf-45 mill head...another great video...thank you ! edit: this worked really well...will build bracket for nema 34 next...
Clear, concise, really useful info. Thank you.
Great tutorial.. The way I see it you are using a generator instead an Arduino for the project..
I tried it like in the video but I could not get it to work. Also the +5V is misleading I think. I watched some other videos and now I am able to make my stepper motor turn how I want it. Either you have a shared/common positive where you connect all (+) signal together or you use a shared negative and connect all (-) signal together.
So if you use com+ also called "shared positive" (like it is showed in this video but called +5v) connect ENA+ with DIR+ and PUL+ and use the shared positive output from the signal generator.
If you use com- connect ENA- with DIR- and PUL- and use the GND-output from the signal generator.
Depending on what I use the motor is on with the switch off for com+ and the motor is on with the switch on for com-.
Very helpful to me as I am trying to understand how to do this.
You mention 5V but I don’t see where the 5V comes from. Excellent video.
Are you sure about that wiring to the driver in the new PDF? You have the negative lead entering +VDC of the driver and positive to GND? Obviously, you wired the project correctly (cuz it works) and when I zoomed in on the actual wiring, you have positive to positive and negative to ground on the driver, so I THINK you maybe swapped them on the updated PDF link? Anyway, I ordered the controller and wired it up, waiting for delivery in a couple days. Thanks!
This was very helpful thank you. Looks like its going to be cheaper to buy a 2-phase motor than to get a 3-phase motor driver. How much voltage does this motor use? The current driver i have is rated for 3a and 36v.
Im busy with a diy racing sim and im busy implementing forced feedback. Would love if i can get the 2nm tourque.
Several questions if you have the time. I thought the control inputs on the driver required low voltage accounted for by the 5 volt connection at the the controller that in turn went to the driver control inputs. If so, is the driver producing the 5 volts for the controller? Is the potentiometer controlling the pulses that would drive the motor speed and therefore be at a higher voltage and amperage? If I am correct about the 5 volts necessary for the forward, reverse, and stop functions on the driver, can they be controlled by simple on/off switches from a 5 volt power supply to the inputs on the driver instead of controlling them with the control switches on the board? I'd like to use latching switches instead of the non-latching switches on the board. I hope I've been clear in my questions. Any help would be appreciated. Thanks.
Got this from a review of the PWM on Amazon. I was confused too.
"The yellow jumper changes the frequency range of PWM for a dc motor. It seems that also affects the pulse output for a stepper motor. I need more info on that. This is NOT a stepper motor driver but a controller to be connected to a stepper motor driver, it controls enable, direction and pulse.
If you refer to the terminal screws on the left looking at the terminals, those are 5-12v input to drive the PCB, next common positive, then common negative (GND).
The other three as you know are enable, direction and pul, polarity dependable of common positive of common GND.
The board can also be powered by the two terminals on the right, that is 15-160V. It uses the on board regulator IC. "
@@jaspermcconnell6417 Thanks! I'd kinda stopped working on it, but it's a good time to start again, so I appreciate the input.
Awesome video, I've had a Keling KL-4030 and a .09 step stepper motor, after watching this video, I bought a couple signal generators, and connected everything, only I'm not getting the smooth rotations. Could it be the DIP switch settings?
I am so sorry I didn't see your message. Did you ever get it solved?
Is there a way that an LCD can be attached to monitor RPM? Vid is brilliant and very clear.
Tyler, you rule for making this video.
Aw hey thanks!
What is the use of half current and full current?
Currently I am using dm542 and nema 17!
What pulse per revolution should I choose for nema17?
And does more pulse means more speed?
Great vid, thanks!
I have this working, but I'm using it to drive a powered Z-table for a CO2 Laser Cutter. It runs nice and smoothly. But can this controller be used for "pulse rotation" instead of smooth rotation? It would make it easier to get it just where I need it. Thanks for any input!
First great video I've seen on this. Most are very cryptic, out of focus, or don't show the wiring. Thanks. Are the jumpers set for frequency or PWM?
For a stepper motor the jumper should be set to frequency. PWM (pulse width modulation) is often used to control the speed of things such as variable frequency drive (VFD) that is running a 3 phase motor. VFDs can have speed control by external potentiometer, 4-20mA loops, PWM or a 0-10V (for example) signal. It depends on the make of VFD and internal VFD settings which is used. If you had a VFD that could only be controlled by PWM then this would be a useful way of controlling it.
Thank you, now I see why I had so much trouble, your video is short but very helpfull !
Thank you for the kind words Andre!
Hi Tyler,
thanks for posting this video that offers me the opportunity to understand something more
Unfortunately, however, I have to interface the same circuit you have (stepper motor through a signal generator) to a small 5V 28BYJ-48 stepper motor with 5 wires (4 coil + positive 5V) and I don't know if I have to use the driver interface ULN2003APG.
So I didn't understand if I can manage the engine directly from the Signal Generator card or even put ULN2003 in the middle
In case you can show me the scheme on how I have to connect it?
thank you very much
Great Video and it's in English,, wow ! By the way I got this far with your design, my problem is how to apply it to my diy dtg Epson printer? Thanks for your time..
Thank you for simplifying this!
You're welcome! I'm going to have a newer video next week showing a real world example using a Nema 34 motor.
Nice tutorial, how would you wire in two separate momentary buttons to control forward and reverse in place of the onboard buttons
Thanks you were easy to understand for beginners! Good video!
Glad it was helpful! Thank you!
Thanks for the Vid and the Where to Buy Links!
I dont see the links?
Hi can I ask ..I notice when it's going slowly...and you press the change of direction button it changes no problem...if you were to do the same at high speed would it do the same or damage the motor etc ? I'm not planning on doing it but I was wondering if you had to stop the action before changing direction ? Anyway great vid and simple solution...came here from Myfordboy.
Hey Berkeley, changing the direction at high speed will most likely stall out the motor, depending on the quality and specs of the stepper driver. I have done it and I got mixed results. Sometimes it just jerks the motor the other way and other times it stalls out. I find that it would be difficult to damage the motor however by changing direction at highspeed, I could possibly see unwanted electrical signals traveling back into the stepper driver therefore possibly reducing the life of the driver. Thanks for your comment!
Hi Tyler, I've connected everything exactly like your diagram but I still cant get the motor to turn, I've been messing with it for a few days and just can't get it to work.
Thanks,
Scott
Great video. Is there a signal generator with external switches and pot that could be used in place of this one?
can I do this with a servo motor and servo drive?
Very helpful. Thank you very much for the easy directions.
Do stepper motors run cooler with driver is set to less steps per revolution?
Do stepper motors run cooler with driver is set to less Amps?
I am using Nema 23 57x57x56mm, 23HS2430B, 57BYGH056
Using DM556 Driver
ZK-SMC01 stepper motor controller
AC 110v to 24v Power Supply 20A Max
Using on a machine that runs for hours at a time. Motors run feed screw at constant speed one direction then the other direction for 10 minutes before reversing then repeats. Driver is now set to 2.7A -1600
Thanks for the video Tyler. I need to have the motor about 75ft away from controller. So my quesiton is, is it better to have the driver closer to the motor, or have the driver / controller together with long cable lines to the motor?
Hey Jim, You'd probably be better having the driver / controller together with long cable lines to the motor.
This is what we required. Thanks a lot..
Wiring worked for me also ... thanks!
I am a bit confused the stepper driver is different in your pdf download then the one using in your demo, therefor the wiring do not match.. any take on that?
Updated
Also, does it provide power for holding torque, or does switching it off cut all power to the motor?
Are the switches on the frequency driver momentary or latching? Going to replace them with better switches that I can mount on a control panel.
Very cool, has simplified my life no end, I was going to go down the raspberry pi/arduino route, but now i don't need to. Thank you.
It does not cut all power from the motor, only to the step/dir signal. The driver keeps it's holding torque to the motor. The switches are latching. I'm glad I could help someone, I didn't think anyone would see it, so thank you!
@@TylerHarney @Darren Garden This has been really helpful for me too! thanks. And I'm needing to do what Darren says, that is, have a control panel and avoid mucking around with Arduino and writing code. @Darren Garden let me know how yours turns out. If you run into any gotchas that would be a huge help for me to know what you did to overcome. Cheers!
beautiful explanation simple and understandable, for which my thanks
Thank you for the video. How do I put an NPN Proximity Sensor in this loop? The above combination works fine as per your video but I can't make the sensor work.
great video and has allowed me to add a power feed to my milling machine, I want to add a remote forward and reverse and also a remote on/ off, (once the pulse generator is in a box you lose access to the on/off and reverse push switches)I have no idea how to wire this in, I've tried to figure it out and so far failed, can you suggest a wiring diagram, Cheers :)
You should be able to identify the onboard contacts for the switches and simply wire a second switch in parallel with them. If you want to add limit switches you would ignore the onboard direction reverse switch and direction output from the board. You would take the +5V and 0V to a suitable DPDT switch and then use that to supply either +5V or 0V to the stepper driver direction input. This setup would also allow you to add limit switches into the enable circuit that would stop the travel when it contacted the relevant limit switch but would also allow you to reverse away from the limit switch.
Hello Tyler. Thanks a lot for this informative video, which explains simply and clearly. I just want to ask you, is it possible to connect the stepper motor directly into the Frequency Drive without using a Motor Drive? If yes, how?
You can buy boards that drive a stepper motor directly but they do not have Enable, Direction and pulse outputs, they have the A+, A-, B+ and B- terminals the same as the stepper driver. However these types of board can only handle low currents and so are only suitable for small stepper motors.
Good tutorial. Is it posible to ad a foot pedal to turn on off the motor?
You probably could but would need to solder the connection to the START/STOP button on the controller board
good info Thank you, ;-) sayN hi from North O Boston
Thanks for checking out the video!
@@TylerHarney No, thank you,,, for posting up usefull info ;-)
Can you be more clear where the 5v comes form I am using the MD556 stepper driver with the very same controller shown in your video... thaks
Very good explanation, thank you
Hi, thanks for your video. Now I have 5 motor drivers. Can I connect all of them to one power supply? If cannot what should I do?
This is awesome thank you. I would like to run two motors with different frequency drives that start-stop and reverse at the same time with limit switches. Is this posable? Thank you for any help
This generator is probably not the best for that particular application, but I think it is possible. A PLC device might be a better option.
Nice demo!
What's the range of frequency of the signal used to drive this motor?
I'm pretty sure it was 5.4k-160khz, middle 540-16.6khz, low 80-2.4khz
Hey mate great vid but did you have any other pulse generator suggestion as both v1 and v2 are not available?
I cannot find the pdf for the schematic. Also do you have to change the dip switches on the driver?
superb, Arduino driver & controller model please
Great, thank you, exactly what I needed.
Hello friend, thanks for your video.
I made the same connections with a nema 17 motor + a 12v power supply and a tb6600 controller.
It works, but it doesn't spin as fast as yours. What I can do? Microstep settings? or could it be something else?
thank you.
Hey J, Most likely the microstep settings
jumpers for stepper frequency or pwm should be ? jumper
Schematic doesn't show power to the stepper driver, which is needed, and which you show later in video.
good catch, thank you. Will update
@@TylerHarney Positive to Ground? Really?
It’s not clear how did you wire the dir plus / sir minus and the pulse + / pulse - ? Can you clarify
Hi, will this circuit work with any stepper driver say a FMD2740C , or does it use the specific driver listed?? Also, with a 24vdc power supply connected, the terminal mentioned as 5v actually reads 12vdc??
sir
what is the maximum speed when we are giving 12 volts 1amp or 2amp current
please reply
Hi Tyler, great video! How do I test/connect a 5 wire EGR stepper motor? any idea? This is a linear stepper motor with a 5V supply to one of the pins. Thanks.
It can't rotate reverse direction when full speed condition. Why and how to resolve it?
Did you have to program anything with an arduino to get the motor to work?
No there's nothing to program.
I followed your diagram and it worked perfectly. But, now it is not. I am trying to troubleshoot. All connections aare solid and pass continuity test. changed out stepper motor and same no joy result. I've ordered replacement driver and sig gen to swap out for test. Can you think of any other reason for it to just stop working?
Figured it out. Too much voltage. Cut it down and all is well. Who knew...?
Thanks sir explained in detail.
Glad I could help!! :)
Hi is it possible to lock the motor in position so no direction enabled in the stop position.. as my lan is to use on a mill have it left and right but I can still rotate the spindle 🤷♂️
Just having the motor connected to the stepper driver and powered on, will lock the motor up.
Tyler Harney it Doesn’t seem to .. its good because I can free wheel it.. but I also need to lock it..
Good Job, what is the model Number for the Frequency generator Driver ?
Friend, when you reduce speed does it lose power or strength?
It shouldn't. It should be the reverse. The slower the speed, more torque/power, the faster the speed less torque/power
If it is possible to drive the stepper motor only with m860c stepper driver..??
Without any signal generator,plc and microcontroller
It is not. The stepper driver needs some kind of pulse signal to make the motor turn.
Hi sir
I m from India .I m unknown in micro controller .I am diploma engineer in industrial electronic .
I want to drive a stipper motor with 2000rpm for lab mixer with variable speed controller.
can be drive stipper motor without big driver as shown in your vedio, small driver can drive the stepper motor ?
please suggest the stepper motor and driver may be use in Lab mixer.
Nice project👍
Could you give me link or model of your step motor used?
Tank’s
Hey I have a question. The driver maximum input current is 5A (output 3.5/4.5A). Did you check out put of the power supply? Won't it damage the driver?
Hey there! Are you referring to the 1 axis signal generator? Or the Stepper driver itself?
@@TylerHarney stepper driver TB6600
@@TylerHarney waiting for your response
Grate video can this signal generator work with 12v PWM fan of 4 pin.
To be honest, I have no idea. :/
Is there a way to set up two of these with limit switches and make them reciprocate in time with each other? Thank you in advance for your help.
Maybe? I don't have any in stock to try out on my end tho. There is a forward and reverse button that you may be able to solder your limit switches to.
However, I would look into this 1 axis controller instead.
amzn.to/33hfo1E
Can we add infrared(remote)/bluetooth or wireless do control the stepper? Thanks
Hi We’ll explain, what about if want to add 1 limit switch? How diagram will be
Thank you. This controller would not be able to add a limit switch.
Hello Tyler, I'm asking you, I have to carry out the same project but the Nema motor always has to rotate in one direction, could you guide me on how to do it and if I need other components, thank you
Sorry for the delayed response, You could remove the direction signal wire. I'm pretty sure that would only make the motor move one direction.
How to choose voltage and current of DC power supply ? What will be suitable ?
Very usefull video ! Thank you
Thank you for sharing your tutorial. ^^
If i put this on a paralallel connection with the brakeout board, would this cause any problem?
I want to use my bench mill for simple producures without using my pc, just to make a pass allong the length of the table etc.
Wired it as per your drawing, all functions work except the start/stop button, any ideas why?
Hi Tyler, is it possible to run the stepper motor using the PWM shown using an L298N as the driver? How would this be wired?
Thanks,I want to operate the pwm through 1sensor and stop through other sensor plz advise
What is the name of your power supply
Hey Tyler! How are you?Any ideahow the wiring would go wiring a plc controller to frequency? Which wires would I use?
When the button is off on the controller, does the motor free spin or is it in “brake” mode?
Are you referring to the button on the signal generator/controller?
The motor should stay locked either way.
@@TylerHarney correct, I have a belt system that needs to stop and go on a continual basis. But it needs to stop in an instant. I was wondering if this holds the motor in a locked position
How many RPM's is this set up at minimum speed? Approximate answer is fine.
How can you add two limit switches so it stops at the ends if it trigger the switch, do you have a diagram or something?Thanks
This controller wouldn't be ideal for limit switches but the one I'm linking below would probably be a better fit. The 4th product photo shows inputs for switches. Unfortunately I don't have any time to grab one to test out at this time. I really need to cause it seems a lot of questions aim towards limit switches :/
amzn.to/48MFCJi
Hi,
In this circuit one rotation possible. If I press push button.
şef Potansiyometre yerine başka bir devre yapsak o hızı ayarlasa anlık veriyle motorun hızını ayarlayabilirmiyiz
what would cause the stepper motor to stall at high rpm?
Good video thinks
Can it control two stepper motors ?
Yep, as long as you have two drivers. Just connect your signal wires from the controller branched out to the drivers.
thanks for the video .could u tell me why my revers bottom does,nt work .it,s light is ok but when i press it nothing ,s happens. thanks keep up
is there a signal generator for sale at shopee?
can we perform analog speed control with tb6600 using arduino??? your help will be really appreciated.
Hi, I tried to open the link for the pdf schematic but it doesn't work, any chance to get another link, tanks
Hmm try this?
designconceptschi.files.wordpress.com/2020/02/single-axis-frequency-generator.pdf?force_download=true
If it doesn't work, email me at info@designconceptschi.com
Thanks Romano
Tyler I need your support, I have stepper motor 34 nema Driver Anaheim automation MLP 086441 but I have in the Driver firts Clock +,Clock-, Direcction +, Direction-, ON/Off +, ON/OFF -, I have the pulse generator like You are using en the video, but I dont know How connect the Pulse Gnerator with my Driver, can you help me?
Do you know what the resistance of the potentiometer is, I would like to replace it with a 10 turn wire wound with numbered indexing for repeatability.
The resistance of the pot is 92.6k ohms
Hi, In my case, the same settings bigger motor and driver, But no torque. When I speed up the motor it stops and makes sounds like noisy speaker.
Serkan Ozkan your driver should have some dip switches on it that control the torque settings. What driver do you have?
@@TylerHarney Hi, My Driver : DM 860 I am trying different settings using DIP Switches. Thank you for support.