Previous in Forum: Elevator control circuit   Next in Forum: Polorized capacitor re magnet charger
Close
Close
Close
10 comments
Rate Comments: Nested
Member

Join Date: Oct 2007
Posts: 5

Steppermotor

11/29/2007 6:47 PM

Stepper motor

I have a stepper motor with a driver. Here is the question i am not good at electrical engineering but i like to learn new thing.

I want to use a microcontroller to control the stepper motor in an open loop condition. These are what i am trying to control:

1- defining a home position for stepper motor

2- giving commands to stepper motor i mean move 2 degree right that 2 degree left and 5 degree right again then start looping until i click stop bottom ( switch).

What do u think i need ? Will microcontroller do the job?

Register to Reply
Pathfinder Tags: stepper motor
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#1

Re: Steppermotor

11/30/2007 12:43 AM

A stepper motor driver uses 2 signals to achieve movement (step and direction)these can be given by any programmable microcomputer.

However the default step distance for many steppers is as low as 1.8° and without micro-stepping 2 and 5 degrees will not be possible.

Even with micro-stepping exact movements may be impossible but by using drive / lead screws accuracies of 0,01mm (0.001 inch) can be obtained using normal steps.

For myself I prefer a 4mm lead screw yielding 100 steps per mm.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2

Re: Steppermotor

11/30/2007 4:01 AM

To re-state Hen's comments, if you really need 2° and 5° (rather than 1.8° and 5.4°), your options a microstepping (which will get you close) or gearing.

The home position is usually defined by a microswitch or (more accurate & repeatable) an optoswitch. Because of the hysteresis in either, you should always ensure that the motor is rotating in the same direction when defining the home position.

If you take these into account, a microcontroller will do the job. I'd go for gearing rather than microstepping.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#3

Re: Steppermotor

11/30/2007 7:50 AM

You didn't say - what type of driver is it? If a commercial brand, could you tell us the make & model?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Member

Join Date: Oct 2007
Posts: 5
#4
In reply to #3

Re: Steppermotor

11/30/2007 2:11 PM

The stepper motor driver that i use is called PDO 2035.

Lets explain the question again. I have 1.8degree resolution stepper motor with a driver PDO 2035. I already connect it. This is what i am trying to do. I want to use a microcontroller.

First question

Can i write codes in C++ and then uses these codes and burn them into the microcontroller.

If yes can i just do this in C++ let driver apply 2 pulses move stepper motor 1.8+1.8 =3.6degree clockwise than apply 1 pulse move stepper motor 1.8degree conterclock wise then 4.8degree clock wise and repeat the command again and again (looping).

Then i want to take these commands and burn them into microcontroller. After that, i want to make a switch on and off. when i push the switch button on it will go to home position and then start the looping commands again and again until i push the switch button.

Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#5
In reply to #4

Re: Steppermotor

12/01/2007 12:26 AM

Transfer of C++ code can be done (the burn enable on microcontroller must be selected - that's not my department and I do not know how)

I however cannot think of a reason why you wound want it to move in the particular mode.

A stepper motor actually overshoots the position and then return to the correct place. If the instructions comes too fast it will sound horrible and may jump.

If you need to smooth the stepping on slow moves you may have to reduce the voltage or use gearing.

For a test you can use 2+1 signals directly from the parallel printer port to drive the driver.

1 step

2 direction

+1 chip enable / select.

This can be done in C++.

I think it may also be possible to control the voltage that way.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Anonymous Poster
#6

Re: Steppermotor

12/01/2007 1:09 AM

It is matter of giving positive pulses or negative pulses. it has to work

Register to Reply
Guru

Join Date: Sep 2007
Posts: 1817
Good Answers: 7
#7

Re: Steppermotor

12/01/2007 5:55 AM

If you have limits to your movement, why don't you use a limit switch as your reference or home? This way you also protect from physical over run, which if it can possibly damage anything, you should do anyways. Electronics have a nasty way of finding the weak spots in your design. If it can run out of control it may just do that to spite you.

We use 1.8 and 0.9 degrees steppers which drive ball and lead screws. Different pitches combined with microsteps give us every conceivable position we need. We do not use a "home" as a refference but the 2 outer limits act as such.

Feedback encoders and error correcting eprom than enables repeatability to 0.2 microns.

We use C++ so I know it is possible but not my field. Cannot help you on that one. Ask me about the ball screws and I am your man.

Good luck

Register to Reply
Member

Join Date: Oct 2007
Posts: 5
#8
In reply to #7

Re: Steppermotor

12/01/2007 8:21 AM

Lets be more specific, I want to drive a stepper motor for 18o clockwise. I am using 1.8 degree stepper motor, that mean 10 pules in clockwise. Then, I want the stepper motor to stop, that all i want to do for now.

I want to build an circuit that can stop after 10 pules in clockwise. if microcontroller must be used please recommend website so i can read about microcontroller.

Btw, I am a senior mechanical interested in robotic and electrical engineeering is not my strong thing. Therefore i would appreciate any help in finding for me good website on micrcontroller.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#9
In reply to #8

Re: Steppermotor

12/01/2007 8:28 AM

Have a look at this thread

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#10

Re: Steppermotor

12/02/2007 12:25 AM

search for "robotics+GlobalSpec" , "robotics" or "gallil motion control" and you will find all you need or want to know.

Globalspec is also perfect for finding equipment (steppers, controllers and combinations)

Best of luck

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); case491 (1); Hendrik (3); JohnDG (3); uaefame (2)

Previous in Forum: Elevator control circuit   Next in Forum: Polorized capacitor re magnet charger
You might be interested in: Stepper Motors, Motor Controllers, Motor Coils

Advertisement