L293/Stepper Motor Help
I need help in my project .I USED IN THE PROJECT UNIPOLAR STEPPER MOTOR· ,5 WIRES ,48 STEPS EACH
·7.5 ,L293D chips ,WITH SPARTANT -3E STARTER KIT BOARD.
I HAVE TO USE ALL THESE THINGS TO LET THE STEPPR POINT TO SPECIFIC DIRECTION ,BUT THE
PROBLEM IN THE STEPPER I DO N'T·HOW CAN I RETURN TO THE OIGINAL POSITION OF THE STEPPER,I
MEAN· THERE MUST BE INITIAL POSITION FOR THE STEPPER·.·THIS POSITION MUST BE FIXED EVERY TIME I
HAVE TO START FROM IT.HOW CAN I DO IT????
please heeeeeeeelp me ???????![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
[noparse][[/noparse]Subject Changed By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 2/14/2007 3:43:46 PM GMT
·7.5 ,L293D chips ,WITH SPARTANT -3E STARTER KIT BOARD.
I HAVE TO USE ALL THESE THINGS TO LET THE STEPPR POINT TO SPECIFIC DIRECTION ,BUT THE
PROBLEM IN THE STEPPER I DO N'T·HOW CAN I RETURN TO THE OIGINAL POSITION OF THE STEPPER,I
MEAN· THERE MUST BE INITIAL POSITION FOR THE STEPPER·.·THIS POSITION MUST BE FIXED EVERY TIME I
HAVE TO START FROM IT.HOW CAN I DO IT????
please heeeeeeeelp me ???????
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
[noparse][[/noparse]Subject Changed By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 2/14/2007 3:43:46 PM GMT
Comments
I use some tiny steppers where they have an internal stop so you just rotate the stepper more than 360 degrees and the stop keeps the position at zero.
Many other methods can as well be deployed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
city that is constant for example if i am in any place in the world and i need to know the direction of ny
from my position ,ny is constant position every time.so i must get my current position from gps do some
calculation on it. And from the stepper must move to the direction of ny.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--
The hellinic (Greek) robots portal: Greekbotics
Many Projects and Schematics by the users·and also robotic news
(Translate using babelfish)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
the exact problem that i have that i want to know where is the current position of the stepper motor shaft to rotate it towards the north. of course we need a compass to know the exact direction,
But how could i know what is the current position of the shaft?
And if any one have an idea how to connect it to the compass to rotate it to the north?
thanx..
The device you need is called a rotary encoder. It is a feedback device which will report its rotary position when polled. Generally it will report in one of the following ways:
Enoding:
BCD, DECIMAL, HEX or Gray Code
Positional Range:
0-nn, 0-nnn, or 0 -nnnn
Data range:
0-15, 0-99, 0-255, 0-1024
·2^4,
,·· 2^8,·· 2^10
These can be directly attached to the stepper motor shaft (front or rear), or indirectly attached via a firm linkage like sproket and chain or 1:1 gearing.
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 2/14/2007 9:34:58 AM GMT
If you have the possibility of the stepper kipping steps because of unknown loads an encoder can gige you the feedback for each step of the motor. but just to return to a known position is easily done with a stop micro switch or a photo switch feedback at that known position.
Encoders are typically used on motors with no position feedback, a motor driving a belt on a machine for example being monitored by an encoder for its exact position so other processes can be done at those known positions for example.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
The reason people talke about "resetting home" (like when Chris mentioned "banging against the stop again", is that sometimes the steppers "slip", and even though you sent a pulse, the motor didn't move that incriment, or moved one to many. If an external force is applied to the motor that exceeds it's holding power, this can also put the motor "out of sync" from where the software counters think it should be.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
Edited:
Reading the thread again, there are a couple of choices for compasses. Dinsmore (?) makes one that the bearing pin/s goes high and (?) makes a much more accurate device that reads in actual degrees--outputs serial or PWM as I recall. Either might be mounted on an old CD (or similar) and spun, like a record, on the stepper shaft.
Post Edited (LSB) : 2/14/2007 11:49:40 PM GMT
. your program has calculated and sent the correct number of pulses to get it to point where you wanted it to point...
.· now get it to count back before today's shut-off.
. ready for tomorrow.