Shop OBEX P1 Docs P2 Docs Learn Events
CMUcam communication problems — Parallax Forums

CMUcam communication problems

ArchiverArchiver Posts: 46,084
edited 2003-03-04 10:06 in General Discussion
I seem to be having problems with getting a CMU cam to communicate
with BoeBot. I have connected the wires according to the
documentation, transmit on pin 10 and receive on pin9 but for some
reason the program stalls on serin 9,240,[noparse][[/noparse]WAIT (":")] Anyone have
any ideas that could be causing this. I have the whole code below as
it isn't long and is part of the initial checks. The documentation
says something about installing jumper 2 and 3 but I have no clue
what they are talking about. I found jumper 2 on the camera board
but I can't find jumper 3.

-Michael

'{$STAMP BS2p}
'{$PBASIC 2.5}

'
Initialization beep
'
output 2
freqout 2, 2000, 2000

Main:
' Flash the tracking LED
' Send command - Turn on track LED
debug "LED test",CR
serout 10, 240, [noparse][[/noparse]"L1 1",CR]
debug "serout done",cr
serin 9, 240, [noparse][[/noparse]WAIT (":")]
debug "serin done",cr

debug "LED on ACK: received OK",CR
' Wait 1/2 second
Pause 500
' Send command - Set track LED back to auto mode
serout 10, 240, [noparse][[/noparse]"L1 2",CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
debug "LED off ACK: received OK",CR
' Wait 1/2 second
Pause 500
Goto Main

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-03-04 10:06
    I seem to be having problems with getting a CMU cam to communicate
    with BoeBot. I have connected the wires according to the
    documentation, transmit on pin 10 and receive on pin9 but for some
    reason the program stalls on serin 9,240,[noparse][[/noparse]WAIT (":")] Anyone have
    any ideas that could be causing this. I have the whole code below as
    it isn't long and is part of the initial checks. The documentation
    says something about installing jumper 2 and 3 but I have no clue
    what they are talking about. I found jumper 2 on the camera board
    but I can't find jumper 3.

    -Michael

    '{$STAMP BS2p}
    '{$PBASIC 2.5}

    '
    Initialization beep
    '
    output 2
    freqout 2, 2000, 2000

    Main:
    ' Flash the tracking LED
    ' Send command - Turn on track LED
    debug "LED test",CR
    serout 10, 240, [noparse][[/noparse]"L1 1",CR]
    debug "serout done",cr
    serin 9, 240, [noparse][[/noparse]WAIT (":")]
    debug "serin done",cr

    debug "LED on ACK: received OK",CR
    ' Wait 1/2 second
    Pause 500
    ' Send command - Set track LED back to auto mode
    serout 10, 240, [noparse][[/noparse]"L1 2",CR]
    serin 9, 240, [noparse][[/noparse]Wait (":")]
    debug "LED off ACK: received OK",CR
    ' Wait 1/2 second
    Pause 500
    Goto Main
Sign In or Register to comment.