Stepper Control
exarkun@r... wrote:
Steppers are easy. Use the circuit with the uln2003 as shown in the
manual (2 pins needed) (coils heat up as two are constantly energized)
or simply step each of the coils in the order shown using 4 pins from
the stamp)
--
Best Regards
Tom Rose
President ETA
For Opacity Training and Measurement Services and Products Visit
http://www.eta-is-opacity.com
For Baghouse Monitors Visit
http://www.tartek.com
Steppers are easy. Use the circuit with the uln2003 as shown in the
manual (2 pins needed) (coils heat up as two are constantly energized)
or simply step each of the coils in the order shown using 4 pins from
the stamp)
--
Best Regards
Tom Rose
President ETA
For Opacity Training and Measurement Services and Products Visit
http://www.eta-is-opacity.com
For Baghouse Monitors Visit
http://www.tartek.com
Comments
I'm in major need of help on controlling steppers. I want to control
two steppers with 3 sensors. How exactly do i get started? Anyone
know any code examples for a Unipolar 4-coil stepper?
Paul
pages 43 and 101. If you don't have it, I believe it is
viewable/downloadable at the Parallax site. The book is definitely worth
buying.
Good luck,
Ray McArthur
Original Message
From: <exarkun@r...>
To: <basicstamps@egroups.com>
Sent: Saturday, April 15, 2000 12:03 AM
Subject: [noparse][[/noparse]basicstamps] Stepper Control
> Hello,
> I'm in major need of help on controlling steppers. I want to control
> two steppers with 3 sensors. How exactly do i get started? Anyone
> know any code examples for a Unipolar 4-coil stepper?
>
> Paul
>
>
>
>
control is mainly based around the Stamp I, and i need the stamp II.
I'm a big time newbie at all of this, and i don't have much time to
get my project completed. If anyone has any info or could help me get
started i would greatly appreciate it.
-Paul
--- In basicstamps@egroups.com, "rjmca" <rjmca@w...> wrote:
> A good start is the Stamp Manual. The version 1.9 manual has
examples on
> pages 43 and 101. If you don't have it, I believe it is
> viewable/downloadable at the Parallax site. The book is definitely
worth
> buying.
>
> Good luck,
> Ray McArthur
>
>
Original Message
> From: <exarkun@r...>
> To: <basicstamps@egroups.com>
> Sent: Saturday, April 15, 2000 12:03 AM
> Subject: [noparse][[/noparse]basicstamps] Stepper Control
>
>
> > Hello,
> > I'm in major need of help on controlling steppers. I want to
control
> > two steppers with 3 sensors. How exactly do i get started? Anyone
> > know any code examples for a Unipolar 4-coil stepper?
> >
> > Paul
> >
> >
> >
> >
If the 1.8 manual is like the 1.9, there are BS1 to BS2 conversions in the
back. The hardware hookup would be the same. This may be a quick start.
Ray McArthur
Original Message
From: <exarkun@r...>
To: <basicstamps@egroups.com>
Sent: Saturday, April 15, 2000 12:26 AM
Subject: [noparse][[/noparse]basicstamps] Re: Stepper Control
> I've got the 1.8 manual, and its been helpful, but the stepper
> control is mainly based around the Stamp I, and i need the stamp II.
> I'm a big time newbie at all of this, and i don't have much time to
> get my project completed. If anyone has any info or could help me get
> started i would greatly appreciate it.
>
> -Paul
>
> --- In basicstamps@egroups.com, "rjmca" <rjmca@w...> wrote:
> > A good start is the Stamp Manual. The version 1.9 manual has
> examples on
> > pages 43 and 101. If you don't have it, I believe it is
> > viewable/downloadable at the Parallax site. The book is definitely
> worth
> > buying.
> >
> > Good luck,
> > Ray McArthur
> >
> >
Original Message
> > From: <exarkun@r...>
> > To: <basicstamps@egroups.com>
> > Sent: Saturday, April 15, 2000 12:03 AM
> > Subject: [noparse][[/noparse]basicstamps] Stepper Control
> >
> >
> > > Hello,
> > > I'm in major need of help on controlling steppers. I want to
> control
> > > two steppers with 3 sensors. How exactly do i get started? Anyone
> > > know any code examples for a Unipolar 4-coil stepper?
> > >
> > > Paul
> > >
> > >
> > >
> > >
>
>
>
>
Here is my setup.
I have stepper driver card that drives a unipolar stepper motor.
I hook it up to the paralell port and the only data line I have to
strobe is data line 0 which is tied to the clock input of my stepper
driver card. I wrote code in Qbasic that will strobe data line 0
which is pin 2 on the db25. I strobe it 200 times and then stop.
it does a complete 360 then stop. The only other thing My board
accepts is enable and direction. But I do not strobe those inputs.
Now I am trying to strobe the clock input with my stamp.
It is working terrible. This is what I have programmed and wired.
I have pin2 of the db25 tied to data line 15 of my stamp.
then I have ground of my db25 tied to my vss of the stamp.
Is that much correct so far?
This is my simple program:
output 15
cycles var word
again:
for cycles = 1 to 200
out15=1
pause 100
out15=0
pause 100
next cycles
pause 10000
goto again
This should go around 360 degrees then pause then again and again.
I think my problem is in the hardware part.
I appreciate any and all the help I can get. Thank you in advance!
mike
Your message is a bit confusing -- this db 25 connector, is it located on
the stepper motor or is it located on the PC?
Also, the Basic Stamp cannot provide much drive to a device like a stepper
motor (a PC's printer port may be able to provide the current necessary to
move the stepper motor), so you need to use a driver transistor connected to
pin 15 of the Stamp to provide the necessary drive current.
There is a wealth of useful interfacing information available in the Stamp
Manual 1.9 on this subject. Your best bet is to download it from the
Parallax site and give it a good read! it's at http://www.parallaxinc.com
(be sure to download Adobe Acrobat as the manual is in PDF format!)
regards
Jim Cambron
Original Message
From: <russell1@p...>
To: <basicstamps@egroups.com>
Sent: Thursday, August 24, 2000 2:32 AM
Subject: [noparse][[/noparse]basicstamps] stepper control
> Hi, I am having a problem stepping my stepper motor with my bs2/sx
> Here is my setup.
>
> I have stepper driver card that drives a unipolar stepper motor.
> I hook it up to the paralell port and the only data line I have to
> strobe is data line 0 which is tied to the clock input of my stepper
> driver card. I wrote code in Qbasic that will strobe data line 0
> which is pin 2 on the db25. I strobe it 200 times and then stop.
> it does a complete 360 then stop. The only other thing My board
> accepts is enable and direction. But I do not strobe those inputs.
>
>
> Now I am trying to strobe the clock input with my stamp.
> It is working terrible. This is what I have programmed and wired.
>
> I have pin2 of the db25 tied to data line 15 of my stamp.
> then I have ground of my db25 tied to my vss of the stamp.
> Is that much correct so far?
>
> This is my simple program:
>
>
>
> output 15
>
> cycles var word
>
> again:
> for cycles = 1 to 200
> out15=1
> pause 100
> out15=0
> pause 100
> next cycles
>
> pause 10000
> goto again
>
> This should go around 360 degrees then pause then again and again.
> I think my problem is in the hardware part.
>
> I appreciate any and all the help I can get. Thank you in advance!
> mike
>
>
>
>
>
The first thing I noticed is that your for next loop uses next cycles. I
believe you only need to use next. Pause 100 might be a bit long because
that would place 100 mS between clocks which would make the motor turn prety
slowly. After you get things to work with this program, you might want to
change the cycles var word to cycles var byte. A byte will be able to count
to 255 but if you want to go higher, you will still need the word.
I hope this helps and asume also that your program sets the direction and
enable bits.
Best regards,
Gary
Original Message
From: <russell1@p...>
To: <basicstamps@egroups.com>
Sent: Thursday, August 24, 2000 2:32 AM
Subject: [noparse][[/noparse]basicstamps] stepper control
> Hi, I am having a problem stepping my stepper motor with my bs2/sx
> Here is my setup.
>
> I have stepper driver card that drives a unipolar stepper motor.
> I hook it up to the paralell port and the only data line I have to
> strobe is data line 0 which is tied to the clock input of my stepper
> driver card. I wrote code in Qbasic that will strobe data line 0
> which is pin 2 on the db25. I strobe it 200 times and then stop.
> it does a complete 360 then stop. The only other thing My board
> accepts is enable and direction. But I do not strobe those inputs.
>
>
> Now I am trying to strobe the clock input with my stamp.
> It is working terrible. This is what I have programmed and wired.
>
> I have pin2 of the db25 tied to data line 15 of my stamp.
> then I have ground of my db25 tied to my vss of the stamp.
> Is that much correct so far?
>
> This is my simple program:
>
>
>
> output 15
>
> cycles var word
>
> again:
> for cycles = 1 to 200
> out15=1
> pause 100
> out15=0
> pause 100
> next cycles
>
> pause 10000
> goto again
>
> This should go around 360 degrees then pause then again and again.
> I think my problem is in the hardware part.
>
> I appreciate any and all the help I can get. Thank you in advance!
> mike
>
>
>
>
>
or the Darlington Array? Can the Motor Mind B be used to control a
stepper?
Thanks
Pat
> or the Darlington Array?
Can you define "value" ? A trepper can be controlled useing a simply
darlington array costing a few dollars. The Little Step-U is a sophisticated
serial-interface device that is capable of profiling repeating patterns and much
more.
For someone who has a serious (industrial ?) application, the Litle Step-U is
an excellent value. For the experimenter who has not specific criteria, it may
be a little overkill.
As always, you application, timeframe and budget will determine what
represents the best value for you.
Can the Motor Mind B be used to control a stepper?
No. The Motor Mind is for DC motors.
Mark Hillier, VE6HVW
President, HVW Technologies Inc.
Canadian Distributors of Parallax Products and other Neat Stuff
Tel: (403)-730-8603 Fax: (403)-730-8903
See our NEW BASIC Stamp Prototyping tools !
http://www.hvwtech.com/stampstack.htm