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.

Sunday, March 30, 2008

[oopic] Oopic and CMUCAM 2

Hello all,

I'm trying to interface an oopic S with a cmucam 2 to make an object
following robot. I'm having difficulties, any help would be greatly
valued. Details follow:

I've got an LCD connected to the oopic and working fine. Camera TX
connected to oopic IO line 23, camera RX to oopic IO line 22. Also
have the camera connected to +5V and ground from the oopic (checked
with DMM).

Camera is on, serial jumper in place, jumper on pin 0 in place to
specify 9600 baud.

Code follows:

Delay = 1000

cmu As oSerialPort
LCD As oLCD(3,1,27,26,cvOn)
' Set camera settings
cmu.Init
cmu.Baud = 9600
cmu.Operate = 1

LCD.Init
LCD.Clear
LCD.Locate(1,2)

x:
cmu.Value = 65
If cmu.Received ==1
Then
LCD.VString = "Data received"
EndIf
Goto x


I get absolutely nothing on the LCD. Does the oopic use a stop bit in
serial transmission? Also, even if the baud/stop bit are wrong, there
should be SOMETHING in the received buffer, even if it is trash.

Thanks in advance
Ash


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

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: