Stepper motor
Archiver
Posts: 46,084
Please help anyone?
I am trying to make the Serial Stepper Controller as shown in page
99 of the Basic Stamp Manual 1.8, but it did not work. I was not able
to program the Microcontroller. Every time I try to load the program
in, error message such as "PIC16Cxx-PGM not found". Is there anyone
knows why? I am greatly appreciated for your help.
Ronald
I am trying to make the Serial Stepper Controller as shown in page
99 of the Basic Stamp Manual 1.8, but it did not work. I was not able
to program the Microcontroller. Every time I try to load the program
in, error message such as "PIC16Cxx-PGM not found". Is there anyone
knows why? I am greatly appreciated for your help.
Ronald
Comments
ancient dot matrix printer, and i need to know where to connect the
wires on the motor to use them.
I'm 90% sure the motor is unipolar, and it has 6 wires comming out
of it, red, blue, black, green, white and grey, in that order. The
black, red and white wires connect to the motor through a hole
slightly above the ones for the green, blue and grey ones.
I want to use an L293D (a simple H-Bridge) to control the motor so i
get half steps; I don't really need more than 8 steps in total anyway.
All i really need to know is where to connect the wires.
-Chris
> of it, red, blue, black, green, white and grey, in that order. The
> black, red and white wires connect to the motor through a hole
> slightly above the ones for the green, blue and grey ones.
>
> I want to use an L293D (a simple H-Bridge) to control the motor
With six wires the motor most likely is unipolar, so an H-Bridge is probably
not what you'd want to use to drive it (H-Bridges are typically used on
4-wire bipolar motors). You'll probably want to use a ULN2003A transistor
array, or else four NPN transistors (a schematic can be found in our
EDE1200 datasheet at http://www.elabinc.com in the EDExx IC Family section).
Use an ohmmeter to identify which two wires are the common wires. These
will be the connection for the motor positive voltage supply. The other
four will be grounded in turn by the drive transistors.
-Todd Peterson
E-Lab Digital Engineering, Inc.
(816) 257-9954 FAX: (816)257-9945
http://www.elabinc.com
they are unipolar motors. A 6 wire unipolar motor has 2 center tapped coils.
To use them as bipolar units you just use the ends of the coil and ignore
the center tap. You will normally get greater torque running in bipolar
mode, but will often have a lower maximum RPM than you would get with
equally sized motors constructed as bipolar units.
Just be careful on your current draw. If you measure the resistance of a
full coil and use Ohm's law with the voltage you are planning on using you
can find out if the L293D is up to the task.
Tim
[noparse][[/noparse]Denver, CO]
Original Message
From: Chris Rosney <c_rosney@y...>
To: <basicstamps@egroups.com>
Sent: Wednesday, May 17, 2000 3:06 PM
Subject: [noparse][[/noparse]basicstamps] Stepper Motor
> I've recently salvaged a pair of OKI Electric stepper motors from an
> ancient dot matrix printer, and i need to know where to connect the
> wires on the motor to use them.
>
> I'm 90% sure the motor is unipolar, and it has 6 wires comming out
> of it, red, blue, black, green, white and grey, in that order. The
> black, red and white wires connect to the motor through a hole
> slightly above the ones for the green, blue and grey ones.
>
> I want to use an L293D (a simple H-Bridge) to control the motor so i
> get half steps; I don't really need more than 8 steps in total anyway.
> All i really need to know is where to connect the wires.
>
> -Chris
>
>
>
>
>
1)· can a stepper motor's position be set with pwm? (yes i think)
2)· can you determine what position the motor is currently in? (yes i hope)
3)· can a stepper motor go all the way around an infinite amount of times (yes i hope)
thanks,
david
> I'M NOT TO FAMILIAR WITH STEPPER MOTORS, HOWEVER, BELIEVE THIS
> IS WHAT I NEED FOR A CURRENT PROJECT.1) CAN A STEPPER MOTOR'S
> POSITION BE SET WITH PWM? (YES I THINK)
> I might be off here, but PWM is better suited to servo and DC
> motors, than steppers.
> 2) CAN YOU DETERMINE WHAT POSITION THE MOTOR IS CURRENTLY IN?
> (YES I HOPE)
> You can as long as you count steps and save the count as a
> variable. Repeatability is often a concern and you may need to
> play with it a bit to reduce errors.
> 3) CAN A STEPPER MOTOR GO ALL THE WAY AROUND AN INFINITE
> AMOUNT OF TIMES (YES I HOPE)
> It will go around as long as it's receiving stepping pulses.
> THANKS,DAVID
it.
I use something like this:
'clockwise rotation
again:
dirs=%1111
outs=%0011
pause 2
outs=%0110
pause 2
outs=%1100
pause 2
outs=%1001
pause 2
goto again
***
I would like to know if there is other way to program
the secuence and how to tell the program to go reverse
the motor.
thank you
Alex
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
>I have a stepper motor Sankyo and I already control
>it.
>
>I use something like this:
>
>'clockwise rotation
>again:
>dirs=%1111
>outs=%0011
>pause 2
>outs=%0110
>pause 2
>outs=%1100
>pause 2
>outs=%1001
>pause 2
>goto again
>
>***
>
>I would like to know if there is other way to program
>the secuence and how to tell the program to go reverse
>the motor.
>
>
>thank you
>
>Alex
First I would swap the "again:" and "dirs%1111" statement to read...
'clockwise rotation
dirs=%1111
again:
outs=%0011
pause 2
outs=%0110
pause 2
outs=%1100
pause 2
outs=%1001
pause 2
goto again
To reverse direction, simply swap two of your sequences that are
180 deg out of phase...
'counter clockwise rotation
dirs=%1111
again:
outs=%1100 '<---Swap
pause 2
outs=%0110
pause 2
outs=%0011 '<---Swap
pause 2
outs=%1001
pause 2
goto again
You may also want to half-step...
'clockwise rotation half-steps
dirs=%1111
again:
outs=%0001
pause 2
outs=%0011
pause 2
outs=%0010
pause 2
outs=%0110
pause 2
outs=%0100
pause 2
outs=%1100
pause 2
outs=%1000
pause 2
outs=%1001
pause 2
goto again
'counter clockwise rotatio half-steps
dirs=%1111
again:
outs=%1000
pause 2
outs=%1100
pause 2
outs=%0100
pause 2
outs=%0110
pause 2
outs=%0010
pause 2
outs=%0011
pause 2
outs=%0001
pause 2
outs=%1001
pause 2
goto again
Beau Schwabe IC Mask Designer
National Semiconductor Network Products Division
500 Pinnacle Court, Suite 525 Mail Stop GA1 Norcross, GA 30071
Roger
At 02:01 PM 4/18/01 -0400, you wrote:
>At 10:14 AM 4/18/01 -0700, you wrote:
>>I have a stepper motor Sankyo and I already control
>>it.
>>
>>I use something like this:
>>
>>'clockwise rotation
>>again:
>>dirs=%1111
>>outs=%0011
>>pause 2
>>outs=%0110
>>pause 2
>>outs=%1100
>>pause 2
>>outs=%1001
>>pause 2
>>goto again
>>
>>***
>>
>>I would like to know if there is other way to program
>>the secuence and how to tell the program to go reverse
>>the motor.
>>
>>
>>thank you
>>
>>Alex
>
>First I would swap the "again:" and "dirs%1111" statement to read...
>
>'clockwise rotation
>dirs=%1111
>again:
>outs=%0011
>pause 2
>outs=%0110
>pause 2
>outs=%1100
>pause 2
>outs=%1001
>pause 2
>goto again
>
>To reverse direction, simply swap two of your sequences that are
>180 deg out of phase...
>
>'counter clockwise rotation
>dirs=%1111
>again:
>outs=%1100 '<---Swap
>pause 2
>outs=%0110
>pause 2
>outs=%0011 '<---Swap
>pause 2
>outs=%1001
>pause 2
>goto again
>
>
>
>You may also want to half-step...
>
>'clockwise rotation half-steps
>dirs=%1111
>again:
>outs=%0001
>pause 2
>outs=%0011
>pause 2
>outs=%0010
>pause 2
>outs=%0110
>pause 2
>outs=%0100
>pause 2
>outs=%1100
>pause 2
>outs=%1000
>pause 2
>outs=%1001
>pause 2
>goto again
>
>
>'counter clockwise rotatio half-steps
>dirs=%1111
>again:
>outs=%1000
>pause 2
>outs=%1100
>pause 2
>outs=%0100
>pause 2
>outs=%0110
>pause 2
>outs=%0010
>pause 2
>outs=%0011
>pause 2
>outs=%0001
>pause 2
>outs=%1001
>pause 2
>goto again
>
>
>
>
>Beau Schwabe IC Mask Designer
>National Semiconductor Network Products Division
>500 Pinnacle Court, Suite 525 Mail Stop GA1 Norcross, GA 30071
>
>
>
>
>
>
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
Roger Edberg
roger@industrialartist.com
http://www.industrialartist.com
also:
Technical Tree Service
I was wondering if anyone knew how to connect the transistor driver,
ULN2803A Darlington Array from parallax to the basic stamp and how to
connect it to the stepper motors. Any diagrams and source code would be
great. Thanks in advance
Travis
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
The ULN2803A has the same pinout as the ULN2003 described in Note 6: A
Serial Stepper Controller in the Parallax Basic Stamp Manual. If you build
this circuit, a good addition is to use an extra I/O channel of the ULN2803,
connected to a Stamp output pin, to turn the motor ON/OFF. The circuit
shown in the manual leaves the motor constantly ON.
Dennis
Original Message
From: Travis M [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=E7hNezUo-kj0Nz-2uoAKda9H9uJLBI6Fx9K0M5AhmSuNHnT_S_aNXgnQLyTVW0jq6zWoOHnOLavd7i6OmyQ]travis_m25@h...[/url
Sent: Saturday, June 02, 2001 1:07 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] stepper motor
Hello,
I was wondering if anyone knew how to connect the transistor driver,
ULN2803A Darlington Array from parallax to the basic stamp and how to
connect it to the stepper motors. Any diagrams and source code would be
great. Thanks in advance
Travis
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed with. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>Travis,
>
>The ULN2803A has the same pinout as the ULN2003 described in Note 6: A
>Serial Stepper Controller in the Parallax Basic Stamp Manual. If you build
>this circuit, a good addition is to use an extra I/O channel of the ULN2803,
>connected to a Stamp output pin, to turn the motor ON/OFF. The circuit
>shown in the manual leaves the motor constantly ON.
Not quite right but very close: the 2003 has 16 pins and 7 driver stages
whereas the 2803 is an 18 pin device with 8 driver stages. On the 2003,
pins 1-7 are inputs 1-7; pins 16-10 are outputs 1-7 (note that the outputs
line up directly across from the inputs); pin 8 is gnd; pin 9 is the diode
clamp.
On the 2803, pins 1-8 are inputs 1-8; pins 18-11 are outputs 1-8 (also
directly in line with their respective inputs); pin 9 is gnd; pin 10 is the
diode clamp.
In other words, the 2803 has 2 extra pins added to the end of the package
as compared to the 2003.
dwayne
Dwayne Reid <dwayner@p...>
Trinity Electronics Systems Ltd Edmonton, AB, CANADA
(780) 489-3199 voice (780) 487-6397 fax
Celebrating 17 years of Engineering Innovation (1984 - 2001)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.
could be very useful.
Dennis
Original Message
From: Dwayne Reid [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=VuwN81xCMeqAH2RcvTL8elheq74W-OEtmVWIXbNE_156csXkZg9KTrTrcR-ckazUZjgiM4y5HRQi9HkV4zTd_g]dwayner@p...[/url
Sent: Sunday, June 03, 2001 12:42 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] stepper motor
At 03:13 PM 6/2/01 -0700, Dennis P. O'Leary wrote:
>Travis,
>
>The ULN2803A has the same pinout as the ULN2003 described in Note 6: A
>Serial Stepper Controller in the Parallax Basic Stamp Manual. If you build
>this circuit, a good addition is to use an extra I/O channel of the
ULN2803,
>connected to a Stamp output pin, to turn the motor ON/OFF. The circuit
>shown in the manual leaves the motor constantly ON.
Not quite right but very close: the 2003 has 16 pins and 7 driver stages
whereas the 2803 is an 18 pin device with 8 driver stages. On the 2003,
pins 1-7 are inputs 1-7; pins 16-10 are outputs 1-7 (note that the outputs
line up directly across from the inputs); pin 8 is gnd; pin 9 is the diode
clamp.
On the 2803, pins 1-8 are inputs 1-8; pins 18-11 are outputs 1-8 (also
directly in line with their respective inputs); pin 9 is gnd; pin 10 is the
diode clamp.
In other words, the 2803 has 2 extra pins added to the end of the package
as compared to the 2003.
dwayne
Dwayne Reid <dwayner@p...>
Trinity Electronics Systems Ltd Edmonton, AB, CANADA
(780) 489-3199 voice (780) 487-6397 fax
Celebrating 17 years of Engineering Innovation (1984 - 2001)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed with. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
5804 on a scope and tested it, I had a perfect signal. This lead me to believe
that the motor was maxed out at 80 rpm. Im sure with ramping the motor and more
advanced electronics it would run faster but that was way past my knowledge. I
also tried the same motor on the little-stepu and had the same results.
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
[noparse][[/noparse]Non-text portions of this message have been removed]
Bruce
nothing about this except that I need to use the basic stamp along with some
controller of some sort. For this controller, I have my eye on the ULN2803A
Darlington Array. Where can I find the pin specifications for this thing (and if
anybody has a better approach to running a stepper motor, please let me know)
Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
ULN2803 -- and you can find the specs all over the Internet (Google it).
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: MP1428@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=xI1sjIynf_CvsMP9yuKERwlJPWCl7HxYwtoQIqapB_FVisNXf331zmmezNPIqF_180XWRw]MP1428@a...[/url
Sent: Tuesday, October 14, 2003 2:13 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Stepper Motor
I'm just now getting into the subject of running a stepper motor. I know
nothing about this except that I need to use the basic stamp along with
some
controller of some sort. For this controller, I have my eye on the
ULN2803A
Darlington Array. Where can I find the pin specifications for this thing
(and if
anybody has a better approach to running a stepper motor, please let me
know)
Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
MP1428@a... writes:
I'm just now getting into the subject of running a stepper motor. I know
nothing about this except that I need to use the basic stamp along with some
controller of some sort. For this controller, I have my eye on the ULN2803A
Darlington Array. Where can I find the pin specifications for this thing (and
if
anybody has a better approach to running a stepper motor, please let me know)
++++++++++++++++++=
www.google.com is usually a good source to find pin out diagrams of various
devices
http://www.controlord.fr/CONTRIB/uln2803.pdf
ken
[noparse][[/noparse]Non-text portions of this message have been removed]
> The black, red and white wires connect to the motor through a hole
> slightly above the ones for the green, blue and grey ones.
Hi Chris,
Sounds like pressed steel housing style steppers.
These should be about an inch and a half to maybe 2 inch diameter
with a spot welded flat plate for mounting ?
If it is one of these pressed can motors, try to google whatever you
can on the nameplate. Most often I find a site where a guy hacked
them and he posted the data. Since it seems most of these are custom
for the printer manufacturer, the actual motor manufacturer does not
post data for them.
Here's the bad news. the printer had everything you needed to drive
them. : (
and, unless they are listed, the voltage could be pretty much
anything and again, you can get that from the printer when you check
the power to the driver chip.
Since they are free, consider running them at either 5 or 12 volts
and as Tim said, ohm them to determine the amps at the voltage.
simplest way to run is in unipolar mode, power to the center tap with
a properly sized high wattage current limiting resistor.
then a couple darlingtons on the 4 wires.
For half or quarter step, you will need to get into the linear range
of the darlingtons and control them at different levels.
As Tim mentioned, Bi-Polar is the preferred method to get real
performance out of them but that requires a pretty sophisticated
power chopping circuit.
Have Fun !
Dave
> I'm just now getting into the subject of running a stepper motor. I
know
> nothing about this except that I need to use the basic stamp along
with some
> controller of some sort. For this controller, I have my eye on the
ULN2803A
> Darlington Array. Where can I find the pin specifications for this
thing (and if
> anybody has a better approach to running a stepper motor, please
let me know)
>
> Mike
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
Digi-key, put in ULN2803 and look up a part, then the data sheet.
alternatly just google ULN2803
as for the last question, there are some great ways to run a
stepper. I have some boards, multi layer, dozen+ IC's all surface
mount. 80 volts, 7 amps, chopper, microstepping, about $150.00 each.
Couple or 4 MOSFET's $1.25 each plus some related parts, less than
$5.00 a motor for light motors.
or a ULN2803 at $0.84 each.
It's like saying you wanna do some monitoring and controlling and
lighting some lights, what is a good micro ?
dave
(btw, had that on another list, after 3 or 4 replies he finally said
it was for a nuclear power generation facility MONITORING one of the
coolant lines)
" > Actually i have to check the capacitance across pipe.The pipe
> contains mixture of air bubbles and water and these pipes
> continously supply water to the nuclear reactor.
> I dont know about ESR. "
pretty scarry !
out the Allegro A3967SLB controller chip, and the demo board for it.
Yes, it is a SMT chip, but worth the hassle of soldering a 0.050 pitch
chip.
Dennis
Original Message
From: MP1428@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZY9QQAgyoLkfwNaojULeHRwmd5zLZc-KkHF0voiFUsvRKMHAxBKlzL7zt95Wz4jmOTDPcYer7M4]MP1428@a...[/url
Sent: Tuesday, October 14, 2003 12:13 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Stepper Motor
I'm just now getting into the subject of running a stepper motor. I know
nothing about this except that I need to use the basic stamp along with
some
controller of some sort. For this controller, I have my eye on the
ULN2803A
Darlington Array. Where can I find the pin specifications for this thing
(and if
anybody has a better approach to running a stepper motor, please let me
know)
Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
motors. (It has 8 high current outputs for any use.)It also serves as a
programming board and gives you a serial in and 7 other inputs for sensors,
etc. It supports all 24 pin stamps. Or, if you want two H-bridges for
bi-directional control instead of 8 individual outputs you want the (TFS-2).
http://www.geocities.com/jimforkin2003/
jim
Original Message
From: Dennis O'Leary [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_O7ijgLc0vWwBlCX92chUn_BibgZSRcyiBeT1hcCXzyVy1XFYRIaJvycPrsd3CopzJzuXkzadcz1ypOO4kRaWDc]doleary@p...[/url
Sent: Wednesday, October 15, 2003 12:54 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Stepper Motor
If you're running a bipolar stepper (and you probably should be) check
out the Allegro A3967SLB controller chip, and the demo board for it.
Yes, it is a SMT chip, but worth the hassle of soldering a 0.050 pitch
chip.
Dennis
Original Message
From: MP1428@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yOJBK57Qy6PByobB2iKh_9Gb3HGf6gIFK2SObjYcChfMO6APwnFjlPlc7ri3VtFm96yZ1Y0C36A]MP1428@a...[/url
Sent: Tuesday, October 14, 2003 12:13 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Stepper Motor
I'm just now getting into the subject of running a stepper motor. I know
nothing about this except that I need to use the basic stamp along with
some
controller of some sort. For this controller, I have my eye on the
ULN2803A
Darlington Array. Where can I find the pin specifications for this thing
(and if
anybody has a better approach to running a stepper motor, please let me
know)
Mike
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/