HOME > > ELECTRONICS MAIN PAGE     Delicious.Com Bookmark this on Delicious    StumbleUpon.Com Recommend to StumbleUpon

The wheels on the bus go round and round (ec1ShaftEncoder.htm)

A shaft encoder is a sensor.

It is attached to something like a wheel which goes around and around. Or the shaft of a motor which is, say, turning a solar panel to face towards the sun. Or the shaft the cups of an anemometer turn.

The sensor creates an electrical signal which can be read by, say, an Arduino, or Pi.

Some shaft encoders are really simple... just a normally-open switch. Each time the shaft rotates to a particular point, the switch closes. Reed switches or Hall effect switches are often used.

One pulse per revolution. And you can't tell which way the shaft is turning. Pretty crude.

From there, various enhancements are available. Most immediately obvious are the enhancements which improve resolution... more than one pulse per revolution.

There are also ways to make the sensor tell you which way the shaft is turning. The simplest require two signals from the sensor.

But all of the above don't really tell you where whatever is rotating has got to. They are relative position sensors. "Relative to where we were before, the shaft has turned xx degrees."

This is all we need for some jobs, but it isn't enough for all jobs.

Another sort of shaft encoder would suit the mechanism of a weather vane, a sensor for the wind direction.

This would have to tell you the absolute amount of rotation from some reference direction, e.g. north.

Such shaft encoders typically require more than one wire to carry the signal, if it is to be a digital signal. Of course, many years ago, such things were done, essentially, by attaching the vane to a potentiometer. The analog voltage was an indication of wind direction.

A middle ground, suitable for some projects, is to have the shaft turn to a "home" position when the device is started up, and then simple "how far" and "which direction" outputs can be integrated, to give you knowledge of where the shaft has got to, since start up.

   Search this site                 powered by FreeFind
Site Map    What's New    Search

Ad from page's editor: Yes.. I do enjoy compiling these things for you... hope they are helpful. However.. this doesn't pay my bills!!! If you find this stuff useful, (and you run an MS-DOS or Windows PC) please visit my freeware and shareware page, Sheepdog Software (tm), download something, and circulate it for me? At least (please) send an 'I liked the parallel port use page, and I'm from (country/ state)' email? (No... I don't do spam.) Links on your page to this page would also be appreciated!
Click here to visit editor's freeware, shareware page.

Here is how you can contact this page's editor. This page and contents (c) TK Boyd 8-15. If you would like to use the material in some way, I have a FAQ about that, and about translating my material for other audiences.
Click here to go up to general page about electronics by editor of this page.
Click here to go up to general page about electronic projects by editor of this page.
Why does this page have a script that loads a tiny graphic? I have my web traffic monitored for me by eXTReMe tracker. They offer a free tracker. If you want to try it, check out eXTReMe's site. The Google panels and the search panel are also script based.

Valid HTML 4.01 Transitional Page tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org

....... P a g e . . . E n d s .....