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.

Friday, March 7, 2008

[oopic] Re: Using ultra sonic sensor with the oopic

--- In oopic@yahoogroups.com, "wku_mobile" <wku_mobile@...> wrote:
>
> The sensors can't be connect to the 31 Digital I/O lines and
> communicate with PW or RX?

The OOPic has no decent facility for using PW and serial I/O at 9600
baud would be iffy. You are pretty close in that a message is only 5
chars and, if you looped on receiving chars you MIGHT be able to get
a good message. Serial with the OOPic is a bad idea. If you want to
try, use oSerialPort on the only hardware UART. Using oSerialL on
any (or multiple) IO line(s) is doomed to fail.

>
> If I was to go with the A2D lines could I add a extension module to
> get more then 7 (I was thinking it was only 4)?

You could add an external analog multiplexer and still use one of the
OOPic A/D inputs. Try to find one that will operate with a single
supply of 5V. This one MIGHT work:

http://www.vishay.com/docs/72552/dg406b.pdf

> Is there any example code on how to program using A2D?

Read the OOPic documentation for the oA2D (or oA2D8 or oA2D10) object.

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: