rotary position sensor
glider_mark
Posts: 3
I am looking for a rotational position sensor to use with a BS2 stamp.· Any recommendations?
Comments
I think the simplest method would be to have to pendulum break an IR beam. Unfortunately, you wouldn't be able to determine how high it is swinging, since a pendulum is always swinging at the same rate (for a given COM). So, the gyroscope option would be the easiest/best if you have the money for it. Otherwise, on to other solutions. You might be able to set up some sort of distance measuring device that is on the same axis that the pendulum swings on. Then, measure the distance to the pendulum, and do some trig to figure out where it is. Unfortunately, this would require a very accurate sensor. You might be able to get by with something like a Ping))), but you'll probably have to do all sorts of tricks to make the data right.
Thought: you could use an accelerometer. Then, simply measure the change in acceleration. There is a thread ( I think it's in the Stamps in Class forum) that uses a BS2 to measure tilt. A gyroscope would be good for short term measurements, and an acceleromete woudl be better for long term (days?).
Why is it I always forget the simple solutions? [noparse]:)[/noparse]
Ken Gracey
-Phil
This sensor question is being moved to the BASIC Stamp forum. Sorry for any inconvenience this has cause. The sensors forum is being removed. Please see announcements for further details. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Just a few PropSTICK Kit bare PCBs left!
If you can't stand any friction, you could use a lamp, two polarizers, and a light detector such as a photocell or photoresistor. Turn one polarizer with the pendulum, hold the other stationary, and the light going through the two polarizers is attenuated. The transmission through both polarizers will be most intense when they're aligned, and least intense when they're at right angles. It will vary as the cosine of the angle. Since the sensors may not be very linear, you ought to run a calibration curve for each 0.1 degree. Also, make sure your light source doesn't vary (an LED with a resistor, fed by a regulated source, ought to be steady enough).
As you will no doubt infer, sensitivity will be greatest (most change per degree rotation) when the sensors are nearly 90 degrees apart.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
Post Edited (Carl Hayes) : 11/19/2008 2:02:57 AM GMT
Senility is a lot like being drunk, as Larry Niven once wrote.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
Take a look in wikipedia under Harmonic Oscillator and this site under pendulum motion.
The "PING" is just another thought to Your project...
Take Carl at his word. There are non-harmonic pendulums. Compound pendulums are a prime example.
-Phil
For very small angles, sin Θ is approximately equal to Θ itself.· Thus, swinging through angles less than, say, 1/2 degree, a simple pendulum will exhibit motion that is very nearly harmonic.· For larger angles, the error that results·from treating the pendulum as a harmonic oscillator becomes progressively larger, and for angles more than a few degrees the error is rather great.
The original poster mentioned that accuracy of one degree could be lived with, although he would like 1/10 degree (6 minutes) much better.· If one-degree accuracy could be lived with, his pendulum must be swinging through at least several degrees, and so the approximation of harmonic motion would be a very poor approximation.
The article on pendulums, to which you give a link, is simply wrong.· Its saving grace is that in its first paragraph it does say that it is talking about approximate solution.· Since you like Wikipedia, you might check there under pendulum, where you will find [noparse]/noparse]under [i]pendulum (mathematics)[/i·there is an article that avoids the errors that seem to have persuaded you that you might reasonably give instruction.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
Post Edited (Carl Hayes) : 11/19/2008 5:34:28 AM GMT
I apologize for any misunderstandings or misuse of the phrase "pendulum/harmonic motion equations". I write what is to the best of my knowledge, and unfortunately, I am not an expert at physics (or electronics for that matter). If I can provide any sort of help, then great, and if I lead in the wrong direction, then, again, I am sorry.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 11/19/2008 6:16:34 AM GMT
No need to apologize. We all make mistakes here and learn from each other. Your generous contributions and youthful exuberance have been an asset to these forums since you first joined. To the extent that it doesn't interfere with your studies or an active social life, I hope to see it continue.
-Phil
Another way would be to use a non-metallic reflector on the bob to polarize the light by reflecting it at the appropriate angle. Of course a little brainstorming will yield many alternate approaches not nvolving polarized light at all. Sonar? Interferometry, either with light or with sound? The possibilities are endless.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
Post Edited (Carl Hayes) : 11/19/2008 3:04:19 PM GMT
The terminology is confusing, at best.· Most distortions produce harmonics of the fundamental frequency -- and the production of harmonics makes the vibration non-harmonic in the sense that it is no longer a purely harmonic (i.e. sinusoidal) vibration.
Piano strings are worse.· The distortion products in a piano string are not exact multiples of the fundamental frequency!· They are a little higher, which is what gives the piano its unique timbre, and which is also what makes piano tuning an art instead of a science.· You'd think that a piano string resonant at, say, 440 Hz (the tone A), would also resonate at the third harmonic, 1320 Hz.· Nope -- because of the effects of wire stiffness at the ends where it is constrained by the bridges, the third resonance is actually just a bit higher than 1320 -- and that's about all I know about that.
Returning to pendulums, centuries of clockmakers worked to try to make a harmonic pendulum.· They needed one, because a simple pendulum's period depends upon the angle through which it swings.· The higher it swings, the slower a pendulum clock will run.· Many schemes, some simple, some fancy, were devised to make the period vary less with differences in amplitude.· Eventually someone invented the oscillating balance-wheel movement, which is inherently a harmonic oscillator if the springs are linear enough.· Then all they had to do was reduce the distortion.· After that invention, pendulum clocks were seldom made (except for nostalgic reasons).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
Post Edited (Carl Hayes) : 11/19/2008 5:47:21 PM GMT
Also, where you REALLY needed an accurate clock was in ship navigation. And the motion of a ship made a pendulum useless. Thus the need for a spring-driven "balance wheel" movement, and lots of research into bi-metallic spring materials to make THEIR force consistent over different temperatures.
After that, the next big advance in time making occurred around rail-roads, which resulted in fixed "time-zones".
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i