Previous in Forum: How to wire a 120VAC square D latching relay   Next in Forum: Infomercials - Late night fodder?
Close
Close
Close
11 comments
Rate Comments: Nested
Anonymous Poster

Help with a setup

01/10/2009 11:01 PM

I'm a student at the University of California of Irvine and am conducting some small antenna research. The antennas I will be testing are on average about 100-250g and will need to be rotated on a turntable which would then be mounted on a stepper motor. I would like to control the stepper motor from a distance away on my laptop using a program through C#. This is my first time getting involved with stepper motors and building an apparatus like this setup. At this point I need everything except a laptop and my C# program. What types of motors/encoders/controllers or parts would I need? These are the only other requirements I would like the setup to have: -have a step angle =< 1 degree -be compatible with C# -trying to fit into a cube chamber about 1.5"x1.5"x1".

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Power-User

Join Date: May 2006
Location: Bahama, NC. USA.
Posts: 270
Good Answers: 18
#1

Re: Help with a setup

01/10/2009 11:22 PM

Guest, I just read a thread on Globalspec the other day about a new product that can be inserted in a motor controler and alows for it to be accesed, monitord and altered through a cell phone from anyplace you have acess. This may save some time on R&D. Check the past 2 or 3 days on Globalspec, I to will check and post if I find it. J.Conway

__________________
For every great advancement in medicine there is an equal and opposite advancement in the denial of treatment.
Reply
Anonymous Poster
#2

Re: Help with a setup

01/10/2009 11:36 PM

i'm actually not really interested in that type of controller. I'll be controlling the setup from a laptop and program with C#. I believe i need a motor, encoder, and controller but I'm not sure which ones will be compatible with each other or will be appropriate for my project.

Reply
Power-User

Join Date: May 2006
Location: Bahama, NC. USA.
Posts: 270
Good Answers: 18
#3
In reply to #2

Re: Help with a setup

01/11/2009 12:54 AM

Guest, I know what your second post said but since I had stated I would follow up with this I am posting the link incase anyone following this thread is interested. http://www.abb.us/cawp/seitp202/2dd234daf5cc338285257519004db1f8.aspx. Best of luck with your project. J.Conway

__________________
For every great advancement in medicine there is an equal and opposite advancement in the denial of treatment.
Reply
Participant

Join Date: Dec 2008
Location: ....Ask
Posts: 4
Good Answers: 1
#4
In reply to #3

Re: Help with a setup

01/12/2009 1:17 AM

Hello Guest

I previously performed a projet similar to yours when I was a student on ODTU too. I can give you some tips.

First, if you will drive your motor form a computer, you will need a receiving circuitry on motor driver side. you will need a microprocessor or a smart device. My advice is to use a microcontroller (such as PIC16F877A which is very popular on student projects and very cheap.) This microcontroller shall have a serial interface (USART is very popular) to communicate with your computer.

Secondly: your notebook uses 12 V for logic "1" on serial port, but microprocessor or microcontrollers use 5 VDC. You will need a logic level coupler. the most popular one is MAX232. this IC couples the 12 V logic high of PC with 5 V logic high of microcontrollers.

Both PIC and MAX 232 datasheets will teach you many thing.

Third: the stepper motor issue. the step angle may be decreased with two methods. first is to use micro driving. miicro driving may be performed via the micrcocontroller. my advice is to use a second method. choose a stepper motor with a gear box. many kinds of gear boxes are available on the market. some are with plastic gears and some with steel. gear boxes can minimize the step angle and increase the total torque delivered to the load. but willl increase the power that system dissipate.

Another very important issue: if you use gear boxes with your motor, the motor will stopimmediately when you stop the power, and so you will not need a feedback line, and of course the encoder will not be needed. this can decrease your cost.

Lastly: the microcontroller output can be used with stepper motor driver ICs. this ICs are very usefull but a very common problem occurs, the ICs can stand only to 1 amps of current. and when you realy want to move something 1 amps is not enough. If you need big electric power to be delivered to the stepper motors, dont use driver ICS but use power transistors suc as TIP41 or 40 as amplifiers. (very cheap and common :) )

as a motor use a six pin (2 pins for supply voltage, 4 pins for driving), 8 pin motors are harder to driev since driver ICs for 8 pin are not common on market . If you are lucky and have money, maybe you can find a motor with step angle lesser then 1 degree, so you wont need the gear box or microdriving. If you dont want to use gear boxes or microdriving, please see Kumar's electromechanical energy conversion book's stepper motor chapter.

Summarizing the system that I advice you :

Laptop RS232 port --> Max232 --> PIC16F877A --> Amplifiers with power transistors.

many amplifier designs are available on web and its a very common and easy job. dont fear the amplifier side.

If you have any problem on circuitry side I can mail it to you. but as a student it will be better that you perform it yourself.

and one last point: there are many freeware porgramming interfeaces for PIC microcontrollers on web, you can use MPLabs free IDes etc... But you can not use C# on PIC programming, you will need to use the old c :).

I hope I could help you.

__________________
....Ask
Reply Score 1 for Good Answer
Guru
United Kingdom - Member - Not a new member!

Join Date: Jun 2008
Location: USA/Europe
Posts: 4547
Good Answers: 68
#5
In reply to #4

Re: Help with a setup

01/12/2009 1:25 AM

Hello Avionics:

Hope you are well?.........I think you may well have more input to this thread. But what you have done so far is worth a GA to you!

Take care, and happy new year..........

__________________
Take it easy, bb. >"HEAR & you FORGET<>SEE & you REMEMBER<>DO & you UNDERSTAND"<=$=|O|=$=>"Common Sense is Genius dressed in its Working Clothes"<>[Ralph Waldo Emerson]
Reply Score 1 for Good Answer
Participant

Join Date: Dec 2008
Posts: 3
#6

Re: Help with a setup

01/12/2009 11:47 AM

If you can't make it happen with C use Basic. I use the parralel port. It's as simple as writing and receiving numbers to and from the port.

Reply
Participant

Join Date: Dec 2008
Location: ....Ask
Posts: 4
Good Answers: 1
#7
In reply to #6

Re: Help with a setup

01/12/2009 12:07 PM

Yes, Parallel port and basic are good choices too. serial port has some advantages and disadvantages for me;

first of all: most of the new commercial notebooks does not include a serial port. the mass prodcution commercial computer companies generally prefered to eliminate the serial port for preventing the home build application development on last 5 years. there are some USB to serial converters, I tried a few of them but none of them are efficient. and there has been many years that I did not use the parallel port. the concern is existence; which one exist on the laptop of the guest.

secondly If you dont want too write an interface software for your computer to send the data to the motor driver, you can simply send the data from the "hyperlink" tool of windows. Just tune the baud rate and parity bit, write the data and click enter, easy. a good advantage of serial port.

thirdly: I dont know to program in basic language :)

I will try to see if I have time to send some driver circuitry, which can be very helpful. even some pic.c or micro.c codes whom are previously used by me with micrcontrollers, I want to send but this is a matter of time. I will try.

and some ICs which are previously been tried and found successfull, I can advice too.

Lastly: thank you for your kindness babybear :)

happy new year to you all too

__________________
....Ask
Reply
Active Contributor

Join Date: Jul 2007
Location: US and India
Posts: 10
#9
In reply to #7

Re: Help with a setup

01/13/2009 2:15 PM

Hi Avionics,

I am a mech engr trying to get familiar with machine and motion control.

I will be thankful for guidnace about reading material etc on this subject and clearing possible doubts.

How can i message u private . my email....ssujeer@yahoo.com

Jooka

Reply Off Topic (Score 5)
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#8

Re: Help with a setup

01/12/2009 1:52 PM

Stepping motor 101.

Unlike many other motors, all stepping motors require driver electronics to control the 2, 3, 4, or 5 phase stator field. (This driver is not a C subroutine that ports data from one format to another.) Some manufacturers incorporate this driver inside the motor chassis ( http://www.imshome.com/ ) some sell separate external drivers and some leave it up to designer to locate suitable electronics. So as far as your C# program and laptop is concerned, its the choice of driver electronics that define your coding. Some primitive drivers take just simple bit control of step and direction to step the motor. (Faster step pulse means faster motion.) Some intelligent motor drivers can be talked to with RS232, RS422, Ethernet and even some newer wireless communication. These more intelligent drivers get configured to handle many parameters that your laptop would no longer have to contend with like acceleration rate and curve, peak rotational velocity, running power and idle power and where is the rotor shaft now. Some intelligent motors integrate a built in encoder to operate the motor in a closed loop fashion. Most of these drivers require an external DC power supply to provide power for the motor. This is one of the few times that an unregulated power supply is actually preferred.

I use the less intelligent motors from the company web page above. They make fully intelligent drivers and ones that take simple step and direction bit signals. They also build motors with integrated encoders of varying resolution but I don't think that they do a closed loop mode. You will likely need to do quadrature decoding of the encoder signal to determine position.

Since you will be specifically doing antenna testing I strongly suggest you use a motor with a built in driver. The chopper electronics that permit micro-stepping movement can produce significant EMI. Putting the driver electronics inside the motor chassis means the smallest loop antenna to transfer the harmonic energy into free space.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Active Contributor

Join Date: Jul 2007
Location: US and India
Posts: 10
#10
In reply to #8

Re: Help with a setup

01/13/2009 2:18 PM

Hi Redfred,

I am a mech engr trying to get familiar with machine and motion control.

I will be thankful for guidnace about reading material etc on this subject and clearing possible doubts.

How can i message u private . my email....ssujeer@yahoo.com

Jooka

Reply
Guru

Join Date: Feb 2006
Location: Piney Flats, Tennessee
Posts: 1740
Good Answers: 23
#11

Re: Help with a setup

02/03/2009 6:33 AM

Contact your local U.S. Farm Services Agent. They have programs going to help farmers bring farming online and you can access all kinds of info there.

__________________
If you never do anything you never have problems.
Reply
Reply to Forum Thread 11 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); Avionics (2); babybear (1); dadw5boys (1); dogov (1); Jerrell Conway (2); jooka (2); redfred (1)

Previous in Forum: How to wire a 120VAC square D latching relay   Next in Forum: Infomercials - Late night fodder?
You might be interested in: Stepper Motors, Linear Motors, Brushless Motors

Advertisement