By continuing to use this site, you agree to our use of cookies. Find out more
Forum sponsored by:
Forum sponsored by Forum House Ad Zone

Stepper Motor Controls

All Topics | Latest Posts

Search for:  in Thread Title in  
ChrisH14/02/2019 19:44:40
1023 forum posts
30 photos

Electronics is one avenue I haven't been down for 40 + years, so stepper motors and their electronic control has passed me by. However, I now see a need to know some more about that latter subject as I can see an opportunity to employ a stepper motor drive.

I have been looking on the internet for information on stepper motor control but either what I have seen asks more questions than it answers or, more usually, the authors seem to be writing in another language!

So, can anybody suggest an idiots guide to stepper motor control, along the lines of "idiot to expert in no time at all", written in plain English to be readily understandable to someone without a degree in electronics and electronic control and a lifetime's experience in the subject.  And I mean idiot!

All suggestions will be gratefully appreciated! Thank you.

Chris
 

 

Edited By ChrisH on 14/02/2019 19:46:22

Emgee14/02/2019 19:56:01
2610 forum posts
312 photos

Chris, depends a lot on the power you need from the stepper but for light loads similar to the recent rotary table conversion you can drive with an Arduino, plug on display, stepper driver and power supply.

Read the conversion article for all the info needed.

Emgee

John Rudd14/02/2019 19:59:05
1479 forum posts
1 photos

Chris do a search on the net for Jones on stepper motor control. He is a well respected author on the subject...

Ian McVickers14/02/2019 20:07:48
261 forum posts
117 photos

Chris, what are you intending to do with the stepper motor? This will have an impact on what type of control you need.

ChrisH14/02/2019 22:10:39
1023 forum posts
30 photos

Emgee - is that the article in MEW 249?

John - is that Douglas W Jones , Uni of Iowa? Have just found that on t'net, some reading to do there! Thanks.

Ian - first job would be to 'automate' a shaper cross feed from manual.

Chris

Emgee14/02/2019 22:20:47
2610 forum posts
312 photos

Hi Chris, not sure about the actual MEW number but it was an article followed up on this forum, perhaps Michael G can find it, the name Ward is in my mind.

Your'e right about the Jones article, but it is very comprehensive !!

Emgee

David George 114/02/2019 22:30:26
avatar
2110 forum posts
565 photos

Hi Chris I was in the same position as you about powering my z axis mod and tried a DC motor and speed controller but found at low speed no power and came across CNC 4you talked to them at exhibition bought parts from them and there us a telephone line to call if you have problems. Cnc4you.co.uk is the web site call them and you can talk to them about options and there are all the wiring diagrams to download on line. I am not connected to them at all just satisfied with their help.

David

Emgee14/02/2019 22:39:49
2610 forum posts
312 photos

Chris, here is a link to HMEM forum with a good deal of Arduino info

**LINK**

I found cnc4u prices pretty high for a 1 off job, Arduino method is adequate for what you need to do, unless you are well heeled and not thrifty like me !!

Emgee

dcosta14/02/2019 23:42:06
496 forum posts
207 photos

Hello ChrisH,

I started building a system for lead screw control for my lathe but I have by now stopped its development.
The materials used and the point where the building is is as follows:
Motor: NEMA23 (double axle and long purchased at Arceurotrade)
Driver: tb6560 (around £10 in Amazon)
Controller: Arduino Mega (may be Arduino Uno)
Motor Power Supply: 24Volts, 6.5Amperes
Power supply for Arduino: 5Volts, 1.5Amperes

All connections are made (they are temporary) and the program on the Arduino already controls the motor.
I have tested the system with the engine running (without load) for many hours and it does not even heat up.

If you want I can make a very simple drawing of the connection diagram.

Regards
Dias Costa

Garth15/02/2019 06:22:26
24 forum posts

Hi ChrisH,

Here is a Utube link,

https://www.youtube.com/watch?v=AYkX1dA3LFM&t=11s

There are more of this type search around a picture is worth etc.

JasonB15/02/2019 07:23:56
avatar
25215 forum posts
3105 photos
1 articles
Posted by ChrisH on 14/02/2019 22:10:39:



Ian - first job would be to 'automate' a shaper cross feed from manual.

MEW 278 should have something to interest you Chris, about to drop.

John Haine15/02/2019 08:22:41
5563 forum posts
322 photos

If you're doing a shaper, looking at Joseph Noci's posts here may be enlightening too.

I.M. OUTAHERE15/02/2019 08:27:52
1468 forum posts
3 photos

You can make a simple unit with an old windscreen wiper motor as they usually have the intermittent wipe set up as an internal switch . you simply hook into that circuit and use a switch that is activated by the ram of your shaper . the older type windscreen wiper motors have an internal circuit that makes the motor do one revolution once activated but the newer units are controlled by the cars computer .

Feed rate is not adjustable though so you are stuck with what you set it up with in regards to drive ratios etc so if you set it up for 0.020 cross feed using drive ratios that is what you are stuck with as each time the motor is triggered it does one turn .

Next option is use an arduino to send pulses to a stepper driver but you will need to learn how to code and understand how steppers work - not hard but i cant judge your electronics ability . what you need is very similar to the code for the stepper drive rotary table but modify the code to suit , there is an equation in there that tells the micro how many pulses to output after reading the input from the keypad . i think your biggest problem is that you are searching for CNC equipment or the like to do this but it can be done much more simply .

There are many youtube videos on using stepper motors for various things so maybe you can gain some info from them and it doesn't matter how small the motor is in the video as the only thing that changes is the size of the motor and the driver needed to drive it as long as the driver can handle the logic level of the arduino which depending on which board you use will be either 5 volts or 3.3 volts .

looks like a few post were made while i was writing this , Joseph Noci is the man you need to talk to !

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Edited By XD 351 on 15/02/2019 08:30:50

David George 115/02/2019 09:24:57
avatar
2110 forum posts
565 photos

Have a look at Joseph Noci 1 posts particularly the shaper that returned - in NC style 10/08/2017 it's absolutely fabulous what he has done to the Alba2NS shaper.

David

Edited By David George 1 on 15/02/2019 09:25:42

ChrisH15/02/2019 10:26:35
1023 forum posts
30 photos

Many thanks to all for your replies - given me a lot of read and look at and some good pointers.

Dias - am sending you a pm.

I must be cracking up. Searched for threads on stepper motor controllers and found nothing, never thought to just do a search on stepper motors, did that this morning and a huge list appeared. Little grey cells certainly underperforming at the moment. Now even more to read! All it needs now is for the info to go in and be understood, hopefully, well it will be a first start anyway.

Chris

donkey15/02/2019 11:38:00
avatar
85 forum posts
5 photos

Hi Dias

I would like a copy of your connection diagram as I am also a bit of an old duffer with electronics but love to play.

I have the motor, power supply and the 6560 controller and am ready to roll although I am very slow so in the next few month. Lol

brian

SillyOldDuffer15/02/2019 11:54:24
10668 forum posts
2415 photos
Posted by ChrisH on 14/02/2019 19:44:40:

Electronics is one avenue I haven't been down for 40 + years, so stepper motors and their electronic control has passed me by. However, I now see a need to know some more about that latter subject as I can see an opportunity to employ a stepper motor drive.

I have been looking on the internet for information on stepper motor control but either what I have seen asks more questions than it answers or, more usually, the authors seem to be writing in another language!

So, can anybody suggest an idiots guide to stepper motor control, along the lines of "idiot to expert in no time at all", written in plain English to be readily understandable to someone without a degree in electronics and electronic control and a lifetime's experience in the subject. And I mean idiot!

All suggestions will be gratefully appreciated! Thank you.

Chris

 

Edited By ChrisH on 14/02/2019 19:46:22

Do you want to understand how they work, or just enough to use them? The former is difficult, the second a good deal easier. The same is true of most types of electric motor - not many on the forum could give you a detailed explanation of how AC motors actually work. Much more common is people who've learned enough to wire them up. I know this because I'm one of them.

A basic stepper motor has two windings. The motor isn't fed ordinary DC or ordinary AC. It works by applying particular sequences of DC pulses to both windings.

The motor doesn't turn smoothly, it steps. It can do one of three things per pulse-combination;

  • step one notch forward, or
  • one notch backwards, or
  • lock in the current position.

The number of pulses needed to make a single revolution vary, but 200 steps is common. However, another feature is that by manipulating the pulses fed to the motor, it is possible to move and hold the motor in small steps between the natural steps. A 200 step motor can be manipulated to take up to 6400 micro-steps per revolution.

The motors have good turning power and the spindle can be moved fairly accurately to any angular position. RPM is rather low compared with other motors.

It is not necessary for the user to understand the nature of the pulses, or how they are generated. This is done with a box full of rather complicated electronics like this:

 

 

stepunit.jpg

End of Part One

Dave

 

 

 

Edited By SillyOldDuffer on 15/02/2019 11:56:04

SillyOldDuffer15/02/2019 11:55:14
10668 forum posts
2415 photos

Part Two:

Although intimidating at first sight, taken one at a time, the controller is rather simple to use. The DC Power Input and motor are connected here, in the red box:

stepmotorconns.jpg

This particular controller works with between 9 and 40V. Check your motor's specifications for it's upper limit but generally stepper motors will run 'better' fed a high voltage rather than a low one. But they work across a wide voltage range - it's the current that matters. For the same reason it's 'better' to use a crude unregulated DC power supply than a fancy regulated unit; regulated power supplies tend not to perform well driving pulsed loads. However, I didn't understand that when I built my rotary table and it works perfectly well with a cheap 12vdc regulated LED power supply.

If you whack a lot of volts into the motor there's a risk of of heating it due to exceeding its power limit (again see spec for the maximum current a particular motor will take.). To avoid damage the controller provides switches (marked SW1 to SW6) that can be set to limit the maximum current delivered to the motor. Given an unknown motor, you can start with the lowest setting and move up the range until the motor works properly, ie turns without losing steps.

 

stepcurrent.jpg

The number of micro-steps needed for the motor to do a full revolution motor is set in the same way. The ends of the switches can just be seen in the red box at top of photo. The number of micro-steps is a compromise that depends on the application. Generally it is set to the lowest number of steps needed to achieve the required step accuracy. No point in simply going for the maximum number of steps, because there is no such thing as a free lunch. At high micro-step settings the motor is more likely to lose steps under load and the rpm is lower.

stepsteps.jpg

Finally the control connections. These occur in pairs working in the opposite sense to suit the electronics used to control the controller.  By convention these can either signal 'ON' by putting 5V on a connection, or signal ON by grounding a connection that has 5V on it already.

ENA is enable. The controller won't power the motor unless this is ON.

DIR is direction. When ON, pulses are generated to turn the motor clockwise, when OFF the motor turns anticlockwise.

PUL is Pulse aka Step. Each pulse applied to this input moves the motor one micro-step.

ENA and DIR can both be set with ordinary on/off switches but PUL requires a stream of pulses. These could be generated with a simple chip like the NE555 and a speed pot.  More likely something sophisticated like an Arduino or PIC micro-controller would be used. They can be programmed with whatever the user wants to do. For example, an Arduino could calculate the number of pulses needed to rotate the motor by an angle input by the user, then enable the motor, set direction, issue the right number of step pulses, and then dis-enable the motor. By keeping count of pulses and direction changes the micro-controller always knows where the motor is. A more sophisticated controller could translate G-Code to drive several stepper motors on a CNC machine. Controllers can be bought ready made in various shades of complexity.

What could possibly go wrong is another question!

Dave

Edited By SillyOldDuffer on 15/02/2019 12:03:46

Andy Carruthers15/02/2019 12:13:07
avatar
317 forum posts
23 photos

Perfect Dave

Now all we need is Parts 3 to 99+, Arduino wiring and code break down

ChrisH16/02/2019 14:19:24
1023 forum posts
30 photos

Jason - I await MEW 279 dropping through the letter box!

Dave (S O D) - many thanks for your last two posts - the explanations and photos were both illuminating and informative.

You are quite correct in splitting the knowledge requirement into either understanding how they work or how to make it work; I'm firmly with you in the second camp. What I really need to to know is: what bits do I need, how do I connect them all together, and how do I get it to do what I want it to do in each specific application.

Understanding how it works helps obviously in getting it to work properly but it is not essential, a prime example is the number of people who can drive cars without a clue as to what is actually going on.

Now I am also with Andy on this one too, in pursuance of putting it all together "Now all we need is Parts 3 to 99+, Arduino wiring and code break down" !! Look forward to future posts from you on this, hopefully???

Chris

All Topics | Latest Posts

Please login to post a reply.

Magazine Locator

Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!

Find Model Engineer & Model Engineers' Workshop

Sign up to our Newsletter

Sign up to our newsletter and get a free digital issue.

You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy

Latest Forum Posts
Support Our Partners
cowells
Sarik
MERIDIENNE EXHIBITIONS LTD
Subscription Offer

Latest "For Sale" Ads
Latest "Wanted" Ads
Get In Touch!

Do you want to contact the Model Engineer and Model Engineers' Workshop team?

You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.

Click THIS LINK for full contact details.

For subscription issues please see THIS LINK.

Digital Back Issues

Social Media online

'Like' us on Facebook
Follow us on Facebook

Follow us on Twitter
 Twitter Logo

Pin us on Pinterest

 

Donate

donate