>
> Hello all,
>
> I'm trying to get my oopic to talk to my cmucam2. I'm using the
> oSerialport object. I'm running a very basic program to see if I'm
> actually receiving anything. The most important command is:
>
> LCD.VString = Str$(s.Received)
>
> I get 0's on my LCD all the time. Except once, I went to lunch and
> when I came back it was 00001, I have no idea what happened.
>
> Anyway, the cmucam manual states that it uses 8 data bits, 1 stop bit,
> no flow control and no parity. I couldn't find any mention of stop
> bits for the oopic. Is this the problem?
>
> Other than that I'm quite certain the connections are right. If anyone
> could help I'd be very grateful.
>
> Ash
>
You could search the archives of this list for CMUcam. If you did,
you would find that this application is, at best, extremely difficult.
The problem is that the oSerialPort has a small buffer of just 4
bytes. As a result, your code has to be checking the port quite
often. In fact, the camera can send data much faster than the OOPic
can receive. Serial IO is not a strong point for the OOPic.
So, to implement color tracking, you need to issue commands to
abbreviate the camera response. Check the manual.'
You didn't say which OOPic you are using. The camera can use either
RS-232 or TTL. Make sure you are using the proper signal type. For
the R board you would use RS-232. For the S board you would use TTL.
Assuming of course that you are using oSerialPort and the hardware
serial port.
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:
No comments:
Post a Comment