Dial encoders and Basic Stamps
Archiver
Posts: 46,084
Ciao,
I'm looking for a solution to a problem: I need to interface a dial rotary
encoder (2-bit quadrature) to my BS2 so that I can vary some parameters (up and
down)that are displayed on a LCD.
I found something in the web, involving a two-states array and the lookup
statement, and it works, but at too slow speeds of my 50-steps encoder. And with
no accuracy.
Now I'm turning towards an absolute 8-bit encoder, but if somebody has the trick
in his pockets, please send an info.
Thanks in advance,
Alberto.
[noparse][[/noparse]Non-text portions of this message have been removed]
I'm looking for a solution to a problem: I need to interface a dial rotary
encoder (2-bit quadrature) to my BS2 so that I can vary some parameters (up and
down)that are displayed on a LCD.
I found something in the web, involving a two-states array and the lookup
statement, and it works, but at too slow speeds of my 50-steps encoder. And with
no accuracy.
Now I'm turning towards an absolute 8-bit encoder, but if somebody has the trick
in his pockets, please send an info.
Thanks in advance,
Alberto.
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
Please refer to "Nuts and Volts" column #8 for the answer to your problem. I
have been using this technique to control various ham radio equipment and
have found it to be very reliable.
Good luck.
KD6MZU
Original Message
From: Alberto Calderara [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=5pyCsfyznMDR_gxzdJ0fAMwOZUhc-dEWR8uGF1TOWW90_-NZlP41aBV5C4JSs_G6N-H4ZQHnqmsm0eSy0Ewu4C-s6N400YM]albertocalderara@t...[/url
Sent: Thursday, April 03, 2003 9:50 AM
To: Basicstamps group
Subject: [noparse][[/noparse]basicstamps] Dial encoders and Basic Stamps
Ciao,
I'm looking for a solution to a problem: I need to interface a dial rotary
encoder (2-bit quadrature) to my BS2 so that I can vary some parameters (up
and down)that are displayed on a LCD.
I found something in the web, involving a two-states array and the lookup
statement, and it works, but at too slow speeds of my 50-steps encoder. And
with no accuracy.
Now I'm turning towards an absolute 8-bit encoder, but if somebody has the
trick in his pockets, please send an info.
Thanks in advance,
Alberto.
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Alberto, IZ2EWV.
Original Message
From: "Leland Goertz" <kd6mzu@a...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, April 04, 2003 5:35 AM
Subject: RE: [noparse][[/noparse]basicstamps] Dial encoders and Basic Stamps
> Alberto,
>
> Please refer to "Nuts and Volts" column #8 for the answer to your problem.
I
> have been using this technique to control various ham radio equipment and
> have found it to be very reliable.
>
> Good luck.
>
> KD6MZU
If it will help I will forward to you the code I have developed to read
rotary encoders and dispatch program control. The speed at which the stamp
can access I/O limits the usability of rotary encoders to about 1 quadrature
pulse every 10 degrees (in my current application), which I have found to be
more than adequate. When this code is placed within an event loop and is
part of the routine event service, even 1 quad pulse is functional since the
stamp remembers the state of the last sample.
One of my applications calls for two encoders and 6 switches. The stamp has
NO problem servicing both encoders, even while there are other events to
service.
Good luck.
KD6MZU
Original Message
From: Alberto Calderara [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_UaZ9SQZBlnqhCW2Or8JTCdWh-2TEjxS0y1WKYh9vFhKhCvXwA9uP2FdPrg6i_3tGLV3a7qaY0kgNAWAwtWBj1wKLwA]albertocalderara@t...[/url
Sent: Sunday, April 06, 2003 8:40 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Dial encoders and Basic Stamps
Thanks Leland for the info, I will try that solution.
Alberto, IZ2EWV.
Original Message
From: "Leland Goertz" <kd6mzu@a...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, April 04, 2003 5:35 AM
Subject: RE: [noparse][[/noparse]basicstamps] Dial encoders and Basic Stamps
> Alberto,
>
> Please refer to "Nuts and Volts" column #8 for the answer to your problem.
I
> have been using this technique to control various ham radio equipment and
> have found it to be very reliable.
>
> Good luck.
>
> KD6MZU
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/