New guy with questions
ducktapeguy
Posts: 4
Hi, I'm very new to all electrical and computer stuff, so bear with me if these are dumb questions.· I've got a project where I need to control a couple of servos of a steering shaft.· I was trying to come up with a simple solution, when I friend recommended using a basic stamp to control it.· I started looking at the possibilities, and I think it might work.· However, since I'm completely ignorant at this, I had a few questions.
1)· Can I use the input from an optical or regular mouse to control it?· I think it is some sort of square wave, but I have no experience.· Anyone know?
2)· Assuming it is some sort of encoder that outputs a square wave, can a basic stamp be programmed to keep the position?· For example, the steering shaft is able to rotate 1080 degrees or so, but a servo only rotates for 180 degrees.· If I were to turn the steering wheel from center and move the servo, the servo will hit it's limit a lot sooner than the steering shaft.· When I turn it back, will it be able to keep track of where the original zero (i.e. centered position)·is?
3) Which basic stamp is best for this application?· I see a lot of choices for the basic stamp, and even a servo control kit which looks very similar to what I want, but will it work?· I already have servos and stuff,·but if it's easier to get everything in that package then I'd be willing to pay a little extra.· I just want to make sure this is possible before I start spending money.
·
1)· Can I use the input from an optical or regular mouse to control it?· I think it is some sort of square wave, but I have no experience.· Anyone know?
2)· Assuming it is some sort of encoder that outputs a square wave, can a basic stamp be programmed to keep the position?· For example, the steering shaft is able to rotate 1080 degrees or so, but a servo only rotates for 180 degrees.· If I were to turn the steering wheel from center and move the servo, the servo will hit it's limit a lot sooner than the steering shaft.· When I turn it back, will it be able to keep track of where the original zero (i.e. centered position)·is?
3) Which basic stamp is best for this application?· I see a lot of choices for the basic stamp, and even a servo control kit which looks very similar to what I want, but will it work?· I already have servos and stuff,·but if it's easier to get everything in that package then I'd be willing to pay a little extra.· I just want to make sure this is possible before I start spending money.
·
Comments
kelvin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Having hacked mice before to try to use them for other things I can tell you that a clean simple square wave is not so easy to get. The chip in the mouse puts out a rather complex serial code every time the mouse is moved that has position and direction data. The output from each chopper·sensor is (if I recall correctly) undulating DC the peaks of which vary in frequency and amplitude with the speed of motion. That's where I stopped. It was just going to be more work than my applicatiion justified.
Bruce
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Name: Bruce Clemens
Work:· Clemensb@otc.edu
Good Stuff on my Bolg: http://theDeadBug.journalspace.com
As for the second part of my question, I'll try and describe what I mean. Imagine if I'm moving the mouse over a flat surface. And for every inch of mouse movement my servo moves 90 degrees. So if I start out at a zero position, and move my mouse 10 inches to the left, the servo will only respond for the first inch of movement, after that, it will have reached it's limit. Now I'm 10 inches to the left, if I start moving it back to the right, will the servo start moving immediately and I will reach the nominal position at 9 inches? Or can I program it to keep track in such a way that will will know to start moving again only AFTER I have moved 9 inches to the right and therefore return to the nominal position when I hit zero again? I guess in mechanical terms that would be considered hysteresis.
Deadbug,
I was doing more research, is it possible to use the outputs straight from the mouse, without hacking it down to the optical encoder level? According to one website, the mouse sends out 3 bytes of information everytime it moves. Will the basic stamp be able to read those? Like I said, I'm not too familiar with all this stuff, I come from strictly a mechanical background.
Jon,
When you talk about load times for the basic stamp, does that mean an optical mouse overloads it with information that it can't keep up? And does that depend on how fast the mouse is moving? I won't need much speed for this application, nor that much precision,so I don't know if that helps any. And I'll look at some of those other chips mentioned.
Thanks for all the help, I appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Maximize your chance for success by doing this in small manageable increments and you will be solving only one problem at a time.
Good luck,
Bruce
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Name: Bruce Clemens
Work:· Clemensb@otc.edu
Good Stuff on my Bolg: http://theDeadBug.journalspace.com
http://www.awce.com/pak11.htm
I might get a Basic or Javelin stamp anyway because I think I want to try and learn this stuff.
Jon,
Is this what your coworker worked on?
http://www.parallax.com/javelin/applications.asp#AN010
I'm trying to read it but it's almost like reading a foriegn language for me.·
Thanks for the help, I appreciate it.· I'll probably be asking a lot more questions in the future.
Post Edited (ducktapeguy) : 3/2/2005 4:52:34 AM GMT
I've taken a break from this project, but now I'm starting working on it again.
Just to clarify what my original intentions were, I'm trying to control a servo using an optical mouse. From the responses here and on some other posts, it seems that the Basic stamp can't handle the input from the mouse. But, there are other boards I can use to make this possible?
PAK-XI
http://www.awce.com/pak11.htm
or this?
http://www.awce.com/gp5.htm
It seems like PAK-XI is cabable of doing this, but is it easier if I use the GP5? Seems like the GP5 would output a simple position command that I can input to the stamp, at this point I'm willing to spend the extra money if it makes my life easier.
And I also found this
http://www.multilabs.net/ezMOUSE.html
I'm still not clear what the ezMouse does though, but it seems like it would help
I know the SX chip was recommended for this, but I'm having enough trouble trying to learn how to use the Basic stamp, I think I would have even more trouble learning the SX one.
Thanks again