This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Thursday, January 17, 2008

[oopic] Encoder Communication

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.osc.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.


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: