Optical Encoder
Archiver
Posts: 46,084
Hi,
Anyone know how to interface HEDA5650 shaft encoder and read the
signal with BSII ?
thx.
Anyone know how to interface HEDA5650 shaft encoder and read the
signal with BSII ?
thx.
Comments
>Hi,
>
>Anyone know how to interface HEDA5650 shaft encoder and read the
>signal with BSII ?
Felix -
What kind of output does it offer and/or who makes it ?
>thx.
Rgds
Bruce Bates
channel A, Channel B, Index
Made by Hewlett Packard
Anyone please tell me how to interface and program it with BSII ?
thx.
--- In basicstamps@egroups.com, Bruce Bates <bvbates@u...> wrote:
> At 07:17 AM Friday 12/15/2000 +0000, you wrote:
> >Hi,
> >
> >Anyone know how to interface HEDA5650 shaft encoder and read the
> >signal with BSII ?
> Felix -
>
> What kind of output does it offer and/or who makes it ?
>
> >thx.
> Rgds
>
> Bruce Bates
stamp will not be fast enough to keep count with all of your pulses. My
experience with encoders, quadrature type, like the type you are using, is
best interfaced with the stamp via a HCTL-2000, HCTL-2016 or HCTL-2020,
these chips will count your pulses for you and keep track of direction,
up/down etc....
Original Message
From: "Felix Chan" <flexchan@h...>
To: <basicstamps@egroups.com>
Sent: Friday, December 15, 2000 6:39 AM
Subject: [noparse][[/noparse]basicstamps] Re: Optical Encoder
> it is 3 channel incremental encoder:
> channel A, Channel B, Index
> Made by Hewlett Packard
>
> Anyone please tell me how to interface and program it with BSII ?
>
> thx.
>
>
> --- In basicstamps@egroups.com, Bruce Bates <bvbates@u...> wrote:
> > At 07:17 AM Friday 12/15/2000 +0000, you wrote:
> > >Hi,
> > >
> > >Anyone know how to interface HEDA5650 shaft encoder and read the
> > >signal with BSII ?
> > Felix -
> >
> > What kind of output does it offer and/or who makes it ?
> >
> > >thx.
> > Rgds
> >
> > Bruce Bates
>
>
>
>
>
>it is 3 channel incremental encoder:
>channel A, Channel B, Index
>Made by Hewlett Packard
>
>Anyone please tell me how to interface and program it with BSII ?
>
>thx.
>Hi Felix -
Searching the HP site and the Agilent site has produced no HEDA5650
Shaft Encoder, but most HP/Agilent Encoders seem to operate with 2
square wave quadrature outputs. Based on the presumption that yours is
the same, I would suggest examining the State machines on the following
web page from Tracey Allen's EME Systems website:
[noparse][[/noparse] http://www.emesystems.com/BS2fsm.htm ]
This should give you a good start on how quadrature input (of any sort) can
be processed quite neatly by any of the Stamps whose processor speed is
appropriate to your task.
Hope that gets you started.
Regards,
Bruce Bates
HCTL-2000 series chips?
Original Message
From: "Dan" <mcruz1@t...>
To: <basicstamps@egroups.com>
Sent: Friday, December 15, 2000 6:38 AM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Optical Encoder
> I'm not sure what your goal is with the encoder, but chances are that the
> stamp will not be fast enough to keep count with all of your pulses. My
> experience with encoders, quadrature type, like the type you are using, is
> best interfaced with the stamp via a HCTL-2000, HCTL-2016 or HCTL-2020,
> these chips will count your pulses for you and keep track of direction,
> up/down etc....
>
Original Message
> From: "Felix Chan" <flexchan@h...>
> To: <basicstamps@egroups.com>
> Sent: Friday, December 15, 2000 6:39 AM
> Subject: [noparse][[/noparse]basicstamps] Re: Optical Encoder
>
>
> > it is 3 channel incremental encoder:
> > channel A, Channel B, Index
> > Made by Hewlett Packard
> >
> > Anyone please tell me how to interface and program it with BSII ?
> >
> > thx.
> >
> >
> > --- In basicstamps@egroups.com, Bruce Bates <bvbates@u...> wrote:
> > > At 07:17 AM Friday 12/15/2000 +0000, you wrote:
> > > >Hi,
> > > >
> > > >Anyone know how to interface HEDA5650 shaft encoder and read the
> > > >signal with BSII ?
> > > Felix -
> > >
> > > What kind of output does it offer and/or who makes it ?
> > >
> > > >thx.
> > > Rgds
> > >
> > > Bruce Bates
> >
> >
> >
> >
> >
>
>
>
>
>
shift register.
The code should work, though it's been many years since I have worked with
it. The HCTL-2016 also requires a clock source, I typically use a HA7210
low power crystal oscillator from Harris semi.
pin assignments for the 597 shift register
PL_ con 7 ' Parallel load(597E) Normally high.
ST_ con 6 ' Storage latch(597E) Normally low.
Cl_ con 5 ' Stage recorder clock pin.
IN_ con 8 ' Stage recorder data pin.
pin assignments for the HCTL shift register
SEL_ con 4 ' Select pin. Normally high.
OE_ con 3 ' OE Bar pin. Normally high.
RST_ con 2 ' Resets encoder counter. Normally high.
Stage var word ' Holds stage value
stage_read:
low SEL_
low OE_
pulsout ST_,10
pulsout PL_,10
shiftin IN_,CL_,0,[noparse][[/noparse]Stage.highbyte]
high SEL_
pulsout ST_,10
pulsout PL_,10
shiftin IN_,CL_,0,[noparse][[/noparse]Stage.lowbyte]
high OE_
return
hope this helps some,
Steve
At 02:08 PM 12/18/2000 -0600, you wrote:
>Do you have and examples or details about interfacing a Stamp to the
>HCTL-2000 series chips?
>
>
>
>
Original Message
>From: "Dan" <mcruz1@t...>
>To: <basicstamps@egroups.com>
>Sent: Friday, December 15, 2000 6:38 AM
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Optical Encoder
>
>
>> I'm not sure what your goal is with the encoder, but chances are that the
>> stamp will not be fast enough to keep count with all of your pulses. My
>> experience with encoders, quadrature type, like the type you are using, is
>> best interfaced with the stamp via a HCTL-2000, HCTL-2016 or HCTL-2020,
>> these chips will count your pulses for you and keep track of direction,
>> up/down etc....
>>
Original Message
>> From: "Felix Chan" <flexchan@h...>
>> To: <basicstamps@egroups.com>
>> Sent: Friday, December 15, 2000 6:39 AM
>> Subject: [noparse][[/noparse]basicstamps] Re: Optical Encoder
>>
>>
>> > it is 3 channel incremental encoder:
>> > channel A, Channel B, Index
>> > Made by Hewlett Packard
>> >
>> > Anyone please tell me how to interface and program it with BSII ?
>> >
>> > thx.
>> >
>> >
>> > --- In basicstamps@egroups.com, Bruce Bates <bvbates@u...> wrote:
>> > > At 07:17 AM Friday 12/15/2000 +0000, you wrote:
>> > > >Hi,
>> > > >
>> > > >Anyone know how to interface HEDA5650 shaft encoder and read the
>> > > >signal with BSII ?
>> > > Felix -
>> > >
>> > > What kind of output does it offer and/or who makes it ?
>> > >
>> > > >thx.
>> > > Rgds
>> > >
>> > > Bruce Bates
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>>
>
>
>
>
DO YOU NOW HOW TO USE THE STAMP PLOT LITE?
AND OTHERONE
HOW CAN I DO TO USE THE STAMP 2 IN ORDER TH BE A RECIVER FROM A TV REMOTE
CONTROL?
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
I need to count, up/down, a quadrature encoder (that's 2 square waves
90 degrees out of phase) at up to about 1000 Hz, variable. I don't
think a do-loop is going to be fast enough - wouldn't I need to
generate an interrupt? I have a few Stamp D's and Stamp II's, but
would appreciate any advice pointing me to a faster(?) version.
Any ideas?
Thanks,
Gregg
Cincinnati Milacron, I was an instructor in the Robotics Group. The
hydraulics robot used this scheme for axis position. Best I remember
the circuit we had some quick instrument grade op amps that would detect
the edges of the two quadrature signals and use this info to start a
digital counter and another to stop it. By looking at the count after
the cycle, we can tell the phase shift between the signals. This is a
very simplest view, I haven't gone into much detail. Hope it helps.
Leroy
ghartc wrote:
>
> Hi,
>
> I need to count, up/down, a quadrature encoder (that's 2 square waves
> 90 degrees out of phase) at up to about 1000 Hz, variable. I don't
> think a do-loop is going to be fast enough - wouldn't I need to
> generate an interrupt? I have a few Stamp D's and Stamp II's, but
> would appreciate any advice pointing me to a faster(?) version.
>
> Any ideas?
>
> Thanks,
> Gregg
>
> 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/
very exercise - I don't remember if it had a circuit published, but all the
states of the state machine were well documented and explained.
Otherwise there is an IC (by Allegro I believe) that has a quadrature
decoder and IIRC a 12 bit counter on board. I can't recall the exact part
number, but there were only 3 similar ICs by that manufacturer. Farnell in
Aus sold the most expensive one for about US$30.
I am not familiar enough with the stamps, but a micro running at even 1MHz
should easily be able to decode a 1kHz signal, should it not?
HTH.
Luke.
On Mon, 25 Feb 2002, Leroy Hall wrote:
M> Might be easier to do this in hardware. Back in my younger days, at
M> Cincinnati Milacron, I was an instructor in the Robotics Group. The
M> hydraulics robot used this scheme for axis position. Best I remember
M> the circuit we had some quick instrument grade op amps that would detect
M> the edges of the two quadrature signals and use this info to start a
M> digital counter and another to stop it. By looking at the count after
M> the cycle, we can tell the phase shift between the signals. This is a
M> very simplest view, I haven't gone into much detail. Hope it helps.
M>
M>
M> Leroy
M>
M>
M> ghartc wrote:
M> >
M> > Hi,
M> >
M> > I need to count, up/down, a quadrature encoder (that's 2 square waves
M> > 90 degrees out of phase) at up to about 1000 Hz, variable. I don't
M> > think a do-loop is going to be fast enough - wouldn't I need to
M> > generate an interrupt? I have a few Stamp D's and Stamp II's, but
M> > would appreciate any advice pointing me to a faster(?) version.
M> >
M> > Any ideas?
M> >
M> > Thanks,
M> > Gregg
--
'80 (ex)KE38 '86 ST141 '84 AE86 '90 ST185
The BS2 might be able to do this at 2us resolution for the Pulsin
instruction. It will be more of a matter of how you handle the count data
with the stamp in-between detects, because of the deterministic way the
stamp runs. You would have to move the count to increment it, do your
compare, and react before the next pulse needed to be detected. It sounds
like at the speed you mention, multiple stamp2's might actually do this for
you.
Forget about doing this with one stamp - I'm only talking about reading the
encoder and incrementing with one stamp2- the rest of your process will
likely need to be done on another stamp or uC.
The faster 2P might be better suited for this, but I don't yet have the 2P
related sections of the manual committed to memory.
Chris
>
Original Message
> From: ghartc [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wfbiqEoOeCwHuseWpVg7RY0Iy9BDVQ35y7D1W9MgYvguYfIj8tMwz53BcZ7OgMRgJNzwtsbw]ghartc@y...[/url
> Sent: Monday, February 25, 2002 6:52 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Optical Encoder
>
>
> Hi,
>
> I need to count, up/down, a quadrature encoder (that's 2 square waves
> 90 degrees out of phase) at up to about 1000 Hz, variable. I don't
> think a do-loop is going to be fast enough - wouldn't I need to
> generate an interrupt? I have a few Stamp D's and Stamp II's, but
> would appreciate any advice pointing me to a faster(?) version.
>
> Any ideas?
>
> Thanks,
> Gregg
>
>
>
> 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/
>
>
great with their quad encoders and may interface with others as well.
I interfaced the chip to a stamp a few years ago. The LS7266 does
all the up/down counting so you don't miss any counts ( it is spec'd
to 10mhz). The internal counter is a preloadable with 24 bit resolution.
Each chip will interface 2 quad encoders. They also make a 7166 for
a single encoder. I don't recall prices off hand but they may have this
on their web site www.usdigital.com. They take credit cards and I don't
see a minimum order amount in their catalog.
I used the stamp as a serial interface to a PC for reading
telescope position movements.
Good luck,
Dennis
Hi,
>
> I need to count, up/down, a quadrature encoder (that's 2 square waves
> 90 degrees out of phase) at up to about 1000 Hz, variable. I don't
> think a do-loop is going to be fast enough - wouldn't I need to
> generate an interrupt? I have a few Stamp D's and Stamp II's, but
> would appreciate any advice pointing me to a faster(?) version.
>
> Any ideas?
>
> Thanks,
> Gregg
>
[noparse][[/noparse]Non-text portions of this message have been removed]
rotation Parallax (Futaba) motors?