Tuesday, July 15, 2008

[oopic] 1 Hz Beep on Servo Position

Everyone --

I have just received my first ooPIC (ooPic-R) and I must say that I'm
impressed so far. I do have a question, however, on how to approach a
problem using Virtual Circuits (assuming this is the better that
Do-While, etc.)

I would like to make the buzzer on the ooPic-R beep every second (so
I've surmised that I need to incorporate the ooPic.Hz1 value) when my
motor is reversing (i.e. the servo position value is less that 32). I
think there is some math in there (less than) as well as the
conversion of a value (servo position) to a logic value. Any input or
general direction that could be given would be greatly appreciated, as
I'm still trying to understand the innerworkings of the virtual
circuits. I come from a VBA backround and use For/Next loops along
with If loops, but my understanding is that that is less than ideal on
the ooPic. Thanks in advance...

Jonathan


------------------------------------

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