detecting rotation
Matthew
Posts: 200
Hello,
How would I mount Parallax's tilt sensor if I wanted it to detect rotation on a wheel? If I placed it on the wheel, with the wires going to the Stamp, wouldn't it tangle all of the wires?
Also, can Parallax's tilt sensor detect which way it is rotating? As in clock-wise or counter-clock-wise?
Thanks,
Matthew
How would I mount Parallax's tilt sensor if I wanted it to detect rotation on a wheel? If I placed it on the wheel, with the wires going to the Stamp, wouldn't it tangle all of the wires?
Also, can Parallax's tilt sensor detect which way it is rotating? As in clock-wise or counter-clock-wise?
Thanks,
Matthew
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
The Stamp needs to know if a single wheel is turning or not. And if so, in what direction. Although RPM does not matter (as it will be almost constant), it will be in the range of 1600 RPM. Any ideas?
I know Lego makes a rotational sensor for their Mindstorms line, would I be able to to find out what kind of outputs it gives off and use that?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
As I said, these can be mechanically coupled to a shaft for continuous rotation in your applcation without tangled wires.· If you just need speed/motion, you can use the other method, which involves bouncing an IR beam off the wheel, which may or may not need a reflective tape or something to bounce the IR light back.· The Parallax Optical Encoders do not require this if you're using the right wheels.
Hope this helps...If you need more information on encoders, you can also do a Google search.
BTW, here is the link to the Encoder Project Jon Williams did:
http://forums.parallax.com/showthread.php?p=519708
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
The wheel is controlled by a BS2. When the wheel spins one way, one LED turns on, when it spins the other way, a different LED turns. Each LED has its own photoresistor, which is connected to a BS1. Depending on which LED is on, the BS1 will know which way the wheel is spinning.
How does that sound?
Two Stamps will be needed anyways.
I work on weather radars, and we use synchro's to determine rotation.· (A synchro is basically 2 motors connected together....maybe that's too symplistic....but there are 3 main coils in a synchro.· When we put 120Vac, as a reference, we get a magnetic field set up....now when the shaft rotates it affects the magnetic field in a certain way (more voltage across combinations of the coils).· We monitoring these voltages with some A/D circuitry which then does all the math itself.)
Anyhow, these synchro's are connected to the main gearing of the radar with tiny gears and shafts.· I've seen one of these shafts snap which stops giving feedback to the control system.· The control system is tell the dish to turn at X speed in Z direction.· Since it has no feedback, it assumes the dish isn't rotating, so it applies more power to the motors....now the dish is flying around at stupid speeds.· Our system has a "no response" timeout...but during testing we had this option turned off and you probably could've put a propellor on the dish and flew to the moon!· Scary really!
So, I guess my long winded story is telling you to figure out a way to monitor the wheel instead of the control circuitry.· If connection to the motor fails (or the motor itself fails) you're LED's will still light, but the wheel wouldn't turn.
If you just want to no that it's rotating, then use a magnet on the wheel and a reed switch to give switch closures to the stamp.· If you want rotation....well....you COULD try a certain combination of magnets on the wheel, that would give a distinct closure pattern to say it's rotating CW or CCW.
Like, 2magnets 2" apart, then the next magnet 4" further down the line with the last magnet 8" along.· If you set this up this way, you'll know by the increase/decrease in closures of the direction of travel....and speed too if you measure the timing and the spacing properly.· Just an idea....not sure if it's practical.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
http://www.geocities.com/paulsopenstage
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
·· If you decide to go the quadrature encoder route ( or even use the magnet idea from the previous post), you may be interested in a neat bit of code I adapted from an old book by J. D. Nicoud.
· It will generate a direction indicator ( Forward or Reverse for instance ) and also do a great job of counting at pretty respectable speeds because the code is so small.
· I've attached the sample code for you to play with.
·Cheers,
· Tom