Thursday, January 17, 2008

[oopic] Re: Encoder Communication

--- In oopic@yahoogroups.com, zachwlewis <zwlewis21@...> wrote:
>
>
> I'm new to the OOPic scene, and I'm working on a movement system
for a robot.
>
> I'm using a US Digital S4-360 encoder
> [http://www.usdigital.com/products/s4/] with 2 channel quadrature
TTL
> squarewave outputs, and I'm using the oQencode object to monitor the
> encoder. All I want to do (now) is learn how this encoder works in
relation
> to the board. I've read through some sample robot servo and encoder
code
>
[http://www.nubotics.com/support/ww01/code/oopic/ww01_oopic2p_square.o
sc.php]
> and have attempted to modify it to fit my needs, but to no avail.
>
> All I want is for the OOPic to read the encoder. When I twist it a
specific
> amount (1 to 2 revolutions), I want it to beep, wait a second, then
reset
> and allow me to twist it again. Can anyone help me achieve this?
> --
> View this message in context: http://www.nabble.com/Encoder-
Communication-tp14936159p14936159.html
> Sent from the OOPic mailing list archive at Nabble.com.
>

There is a simple example in the Manual for the oQencode object. It
simply outputs the count to an oDIO8.

You can just look at the count in A and when it reaches some value do
whatever you want. Just make sure you stay in the loop.

Richard


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment