no transmission from CMUcam system
Archiver
Posts: 46,084
I was wondering if anyone has dealt with integrating the Parallax
modified CMUcam and the BS2P stamp (on the BOE board, in
particular)? I am for some reason not recieving any transmission
about data acknowledgement from the camera. I have calculated the
baudmode to be 240 and even tried a slower number like 500 but the
program just stalls at the SERIN command waiting for a response. I
could implement a timeout feature but as I will need info from the
camera later on, that is a not a wise choice of action right now. I
have run the sample tutorial from Parallax but it stalls. The code
is below for reference. If anyone has an idea, please let me know.
thanks,
- Michael
'{$STAMP BS2p}
'{$PBASIC 2.5}
' CMUcam Boe-Bot Demo Program 1
' Copyright 2002 Seattle Robotics
' Basic Stamp 2P
' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
installed
' This program flashes the green tracking LED -
' on the CMUcam to show serial communication is OK
' Hardware setup:
' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 GND to CMUcam TTL level GND pin on -
' the main 13 pin .100 header just past jumper 3 position
' We only wait for the ":" character instead of the -
' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
' slow to receive - this works very well in practice
' Pause 1 second for CMUcam startup
pause 1000
' Send "reset" to sync CMUcam and Stamp
serout 10, 240, [noparse][[/noparse]"RS", CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
Main:
' Flash the tracking LED
' Send command - Turn on track LED
serout 10, 240, [noparse][[/noparse]"L1 1",CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
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
modified CMUcam and the BS2P stamp (on the BOE board, in
particular)? I am for some reason not recieving any transmission
about data acknowledgement from the camera. I have calculated the
baudmode to be 240 and even tried a slower number like 500 but the
program just stalls at the SERIN command waiting for a response. I
could implement a timeout feature but as I will need info from the
camera later on, that is a not a wise choice of action right now. I
have run the sample tutorial from Parallax but it stalls. The code
is below for reference. If anyone has an idea, please let me know.
thanks,
- Michael
'{$STAMP BS2p}
'{$PBASIC 2.5}
' CMUcam Boe-Bot Demo Program 1
' Copyright 2002 Seattle Robotics
' Basic Stamp 2P
' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
installed
' This program flashes the green tracking LED -
' on the CMUcam to show serial communication is OK
' Hardware setup:
' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 GND to CMUcam TTL level GND pin on -
' the main 13 pin .100 header just past jumper 3 position
' We only wait for the ":" character instead of the -
' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
' slow to receive - this works very well in practice
' Pause 1 second for CMUcam startup
pause 1000
' Send "reset" to sync CMUcam and Stamp
serout 10, 240, [noparse][[/noparse]"RS", CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
Main:
' Flash the tracking LED
' Send command - Turn on track LED
serout 10, 240, [noparse][[/noparse]"L1 1",CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
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
Just some thoughts, you may have already checked these:
* Do you have the serial Transmit and Receive lines swapped?
* Have you verified the correct CMUcam jumpers for baud rate?
* Have you verified that the correct pins on the CMUcam are connected to the
correct pins on the Stamp?
* Is your Stamp's pins (used for the CMUcam serial communications) known to
be operating correctly?
[noparse][[/noparse]Apply divide & conquer techniques to the problem] For testing, as this
program is just an attempt to verify the basic connections and hardware
operation, you might try a timeout on the SERIN's. This would allow the
commands from the Stamp to be sent to the CMUcam and if the SEROUT half is
operating correctly, you should see the expected LED activity on the CMUcam
board. For this test, consider just toggling the CMUcam LED (use the CMUcam
commands "L1 1" and "L1 0".
Exactly where does your program stall? At the CMUcam's RS command, or
somewhere in your loop?
HTH,
Daniel
Original Message
From: omnigroup_2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=E3SMbgplBhgE2i2lvqZnOi82IOxMRhWer4QNS3TU0wsT5YCbIQeRZij15FQKfMtrpOj_gWV0PqPMECc]ord_data@h...[/url
Sent: Wednesday, March 05, 2003 1:12 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
I was wondering if anyone has dealt with integrating the Parallax
modified CMUcam and the BS2P stamp (on the BOE board, in
particular)? I am for some reason not recieving any transmission
about data acknowledgement from the camera. I have calculated the
baudmode to be 240 and even tried a slower number like 500 but the
program just stalls at the SERIN command waiting for a response. I
could implement a timeout feature but as I will need info from the
camera later on, that is a not a wise choice of action right now. I
have run the sample tutorial from Parallax but it stalls. The code
is below for reference. If anyone has an idea, please let me know.
thanks,
- Michael
'{$STAMP BS2p}
'{$PBASIC 2.5}
' CMUcam Boe-Bot Demo Program 1
' Copyright 2002 Seattle Robotics
' Basic Stamp 2P
' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
installed
' This program flashes the green tracking LED -
' on the CMUcam to show serial communication is OK
' Hardware setup:
' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
' the main 13 pin .100 header just past jumper 3 position
' Wire 2 GND to CMUcam TTL level GND pin on -
' the main 13 pin .100 header just past jumper 3 position
' We only wait for the ":" character instead of the -
' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
' slow to receive - this works very well in practice
' Pause 1 second for CMUcam startup
pause 1000
' Send "reset" to sync CMUcam and Stamp
serout 10, 240, [noparse][[/noparse]"RS", CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
Main:
' Flash the tracking LED
' Send command - Turn on track LED
serout 10, 240, [noparse][[/noparse]"L1 1",CR]
serin 9, 240, [noparse][[/noparse]Wait (":")]
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
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I have tried some of you suggestions and I guess I will answer them
in order as you presented.
* I did think maybe the Transmit and Recieve lines were swapped so I
switched the wires and then absolutely nothing worked, so I know at
least the line from the stamp to the camera works.
* How do you verify the correct jumpers are set? Parallax removed
them from the board and there is no board schematic that I have found.
* The CMUcam came from Parallax with color coded wires that were
soldered and hot glued into place. I assume that they are in the
correct spots.
* I am in the process of changing to a different pin on the Camera
to Stamp communication line to see if the pin I am currently using is
malfunctioning or not.
As for timeouts, if I implement them right now, everything will work
because I am not getting any specific data from the CMUcam. However,
the SERIN will always timeout if I do implement that. As for the
stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"] command.
The RS command to the camera appears to work because the status light
will flicker real quick as the camera resets and then gets turned on
by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will implement
just the on/off flickering by using "L1 1" and "L1 0" instead.
Just for other info, I hooked up a multimeter to the wire going from
the camera to the stamp and it was reading a constant voltage of
about 4.77-4.8 V. This doesn't sound right to me, but maybe it is.
Michael
--- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
wrote:
> Michael,
>
> Just some thoughts, you may have already checked these:
>
> * Do you have the serial Transmit and Receive lines swapped?
> * Have you verified the correct CMUcam jumpers for baud rate?
> * Have you verified that the correct pins on the CMUcam are
connected to the
> correct pins on the Stamp?
> * Is your Stamp's pins (used for the CMUcam serial communications)
known to
> be operating correctly?
>
> [noparse][[/noparse]Apply divide & conquer techniques to the problem] For testing, as
this
> program is just an attempt to verify the basic connections and
hardware
> operation, you might try a timeout on the SERIN's. This would
allow the
> commands from the Stamp to be sent to the CMUcam and if the SEROUT
half is
> operating correctly, you should see the expected LED activity on
the CMUcam
> board. For this test, consider just toggling the CMUcam LED (use
the CMUcam
> commands "L1 1" and "L1 0".
>
> Exactly where does your program stall? At the CMUcam's RS command,
or
> somewhere in your loop?
>
> HTH,
> Daniel
>
>
Original Message
> From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> Sent: Wednesday, March 05, 2003 1:12 AM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
>
>
> I was wondering if anyone has dealt with integrating the Parallax
> modified CMUcam and the BS2P stamp (on the BOE board, in
> particular)? I am for some reason not recieving any transmission
> about data acknowledgement from the camera. I have calculated the
> baudmode to be 240 and even tried a slower number like 500 but the
> program just stalls at the SERIN command waiting for a response. I
> could implement a timeout feature but as I will need info from the
> camera later on, that is a not a wise choice of action right now. I
> have run the sample tutorial from Parallax but it stalls. The code
> is below for reference. If anyone has an idea, please let me know.
>
> thanks,
> - Michael
>
>
> '{$STAMP BS2p}
> '{$PBASIC 2.5}
>
>
> ' CMUcam Boe-Bot Demo Program 1
>
> ' Copyright 2002 Seattle Robotics
>
> ' Basic Stamp 2P
> ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
> installed
>
> ' This program flashes the green tracking LED -
> ' on the CMUcam to show serial communication is OK
>
> ' Hardware setup:
> ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> ' the main 13 pin .100 header just past jumper 3 position
> ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> ' the main 13 pin .100 header just past jumper 3 position
> ' Wire 2 GND to CMUcam TTL level GND pin on -
> ' the main 13 pin .100 header just past jumper 3 position
>
> ' We only wait for the ":" character instead of the -
> ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
> ' slow to receive - this works very well in practice
>
> ' Pause 1 second for CMUcam startup
> pause 1000
>
> ' Send "reset" to sync CMUcam and Stamp
> serout 10, 240, [noparse][[/noparse]"RS", CR]
> serin 9, 240, [noparse][[/noparse]Wait (":")]
>
> Main:
>
> ' Flash the tracking LED
>
> ' Send command - Turn on track LED
>
> serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> serin 9, 240, [noparse][[/noparse]Wait (":")]
>
> 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
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Disclaimer: I do not have a Parallax CMUcam; I'm waiting for a modified
CMUcam from SeattleRobotics.com.
Disclaimer 2: I might be wrong.
Parallax has a "modified" CMUcam, as described on their page
http://www.parallax.com/detail.asp?product_id=30051. The wording suggests
to me that the base processor board is similar to the "original" CMUcam.
The wording also suggests that SeattleRobotics.com may have been involved in
the derivation of the Parallax-branded CMUcam; you can find a CMUcam user
manual there at http://www.seattlerobotics.com/cmucam.htm.
You may also be aware of the CMUcam website
http://www-2.cs.cmu.edu/~cmucam/; there you can get a current manual for the
"original" CMUcam (http://www-2.cs.cmu.edu/~cmucam/downloads.html).
Take a look at the information in those manuals about the base processor
board layout, the manuals show you where the TTL serial lines and the baud
rate jumpers are located. Compare this information with the Parallax
manual. You may be able to infer something about the pin-out for the
Parallax CMUcam board--where the soldered & glued wires are anchored.
Check your (and my) assumptions twice before doing anything rash.
You measured 4.77-4.8 VDC "on the wire". Which wire (what is it color), and
what was the ground reference?
You say that with SERIN timeouts, "everything will work". If, by this, you
mean that you can command the CMUcam with SEROUT and it responds
appropriately, then you have a problem with the SERIN circuit, but not with
the SEROUT circuit.
Perhaps there is a bad socket on your bread-board.
Another, less likely possibility is a cold solder joint on the TTL serial
wires--if so, Parallax takes a keen interest in their product quality so
contact them.
I assume that you have followed the startup steps found in the Parallax
manual?
HTH,
Daniel
Original Message
From: omnigroup_2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Myth3aKwjHFm0XdeHbAk-O0S5N2III0kwJxDsuiMYjcAGZ1xxf5l_fYzQg29-z4PE51-SsAzs8WlcFc]ord_data@h...[/url
Sent: Wednesday, March 05, 2003 12:52 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
Daniel,
I have tried some of you suggestions and I guess I will answer them
in order as you presented.
* I did think maybe the Transmit and Recieve lines were swapped so I
switched the wires and then absolutely nothing worked, so I know at
least the line from the stamp to the camera works.
* How do you verify the correct jumpers are set? Parallax removed
them from the board and there is no board schematic that I have found.
* The CMUcam came from Parallax with color coded wires that were
soldered and hot glued into place. I assume that they are in the
correct spots.
* I am in the process of changing to a different pin on the Camera
to Stamp communication line to see if the pin I am currently using is
malfunctioning or not.
As for timeouts, if I implement them right now, everything will work
because I am not getting any specific data from the CMUcam. However,
the SERIN will always timeout if I do implement that. As for the
stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"] command.
The RS command to the camera appears to work because the status light
will flicker real quick as the camera resets and then gets turned on
by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will implement
just the on/off flickering by using "L1 1" and "L1 0" instead.
Just for other info, I hooked up a multimeter to the wire going from
the camera to the stamp and it was reading a constant voltage of
about 4.77-4.8 V. This doesn't sound right to me, but maybe it is.
Michael
--- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
wrote:
> Michael,
>
> Just some thoughts, you may have already checked these:
>
> * Do you have the serial Transmit and Receive lines swapped?
> * Have you verified the correct CMUcam jumpers for baud rate?
> * Have you verified that the correct pins on the CMUcam are
connected to the
> correct pins on the Stamp?
> * Is your Stamp's pins (used for the CMUcam serial communications)
known to
> be operating correctly?
>
> [noparse][[/noparse]Apply divide & conquer techniques to the problem] For testing, as
this
> program is just an attempt to verify the basic connections and
hardware
> operation, you might try a timeout on the SERIN's. This would
allow the
> commands from the Stamp to be sent to the CMUcam and if the SEROUT
half is
> operating correctly, you should see the expected LED activity on
the CMUcam
> board. For this test, consider just toggling the CMUcam LED (use
the CMUcam
> commands "L1 1" and "L1 0".
>
> Exactly where does your program stall? At the CMUcam's RS command,
or
> somewhere in your loop?
>
> HTH,
> Daniel
>
>
Original Message
> From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> Sent: Wednesday, March 05, 2003 1:12 AM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
>
>
> I was wondering if anyone has dealt with integrating the Parallax
> modified CMUcam and the BS2P stamp (on the BOE board, in
> particular)? I am for some reason not recieving any transmission
> about data acknowledgement from the camera. I have calculated the
> baudmode to be 240 and even tried a slower number like 500 but the
> program just stalls at the SERIN command waiting for a response. I
> could implement a timeout feature but as I will need info from the
> camera later on, that is a not a wise choice of action right now. I
> have run the sample tutorial from Parallax but it stalls. The code
> is below for reference. If anyone has an idea, please let me know.
>
> thanks,
> - Michael
>
>
> '{$STAMP BS2p}
> '{$PBASIC 2.5}
>
>
> ' CMUcam Boe-Bot Demo Program 1
>
> ' Copyright 2002 Seattle Robotics
>
> ' Basic Stamp 2P
> ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
> installed
>
> ' This program flashes the green tracking LED -
> ' on the CMUcam to show serial communication is OK
>
> ' Hardware setup:
> ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> ' the main 13 pin .100 header just past jumper 3 position
> ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> ' the main 13 pin .100 header just past jumper 3 position
> ' Wire 2 GND to CMUcam TTL level GND pin on -
> ' the main 13 pin .100 header just past jumper 3 position
>
> ' We only wait for the ":" character instead of the -
> ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
> ' slow to receive - this works very well in practice
>
> ' Pause 1 second for CMUcam startup
> pause 1000
>
> ' Send "reset" to sync CMUcam and Stamp
> serout 10, 240, [noparse][[/noparse]"RS", CR]
> serin 9, 240, [noparse][[/noparse]Wait (":")]
>
> Main:
>
> ' Flash the tracking LED
>
> ' Send command - Turn on track LED
>
> serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> serin 9, 240, [noparse][[/noparse]Wait (":")]
>
> 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
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Thank you for the manual references, I will take a look at them again
and see if I can draw any conclusions from the schematics. As for
the voltage of ~4.8 V, it was referenced from Vss on the board and
connected to the white wire which goes into pin9. Your assumption on
my meaning as "everything works" if I put in timeouts is exactly what
I was thinking. The SEROUT command is successfully transmitting data
but the SERIN doesn't seem to get the response it expects. I have
contacted both Parallas and SeattleRobotics. SeattleRobotics states
that the camera was tested with the BS2 and BS2sx but no the BS2p.
It should work but they referred to Parallax for support and I just
got a response from Parallax. All they did was to incorporate at
timeout feature of time 1 (and that is correct). However, I am
doubtful that the camera will return the data necessary. I am trying
their program and if all else fails, I will let them know again
because I think the possibility of a cold solder joint is pretty good.
- Michael
--- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
wrote:
> Michael,
>
> Disclaimer: I do not have a Parallax CMUcam; I'm waiting for a
modified
> CMUcam from SeattleRobotics.com.
>
> Disclaimer 2: I might be wrong.
>
> Parallax has a "modified" CMUcam, as described on their page
> http://www.parallax.com/detail.asp?product_id=30051. The wording
suggests
> to me that the base processor board is similar to the "original"
CMUcam.
> The wording also suggests that SeattleRobotics.com may have been
involved in
> the derivation of the Parallax-branded CMUcam; you can find a
CMUcam user
> manual there at http://www.seattlerobotics.com/cmucam.htm.
>
> You may also be aware of the CMUcam website
> http://www-2.cs.cmu.edu/~cmucam/; there you can get a current
manual for the
> "original" CMUcam (http://www-2.cs.cmu.edu/~cmucam/downloads.html).
>
> Take a look at the information in those manuals about the base
processor
> board layout, the manuals show you where the TTL serial lines and
the baud
> rate jumpers are located. Compare this information with the
Parallax
> manual. You may be able to infer something about the pin-out for
the
> Parallax CMUcam board--where the soldered & glued wires are
anchored.
>
> Check your (and my) assumptions twice before doing anything rash.
>
> You measured 4.77-4.8 VDC "on the wire". Which wire (what is it
color), and
> what was the ground reference?
>
> You say that with SERIN timeouts, "everything will work". If, by
this, you
> mean that you can command the CMUcam with SEROUT and it responds
> appropriately, then you have a problem with the SERIN circuit, but
not with
> the SEROUT circuit.
>
> Perhaps there is a bad socket on your bread-board.
>
> Another, less likely possibility is a cold solder joint on the TTL
serial
> wires--if so, Parallax takes a keen interest in their product
quality so
> contact them.
>
> I assume that you have followed the startup steps found in the
Parallax
> manual?
>
> HTH,
> Daniel
>
>
>
Original Message
> From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> Sent: Wednesday, March 05, 2003 12:52 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
>
>
> Daniel,
>
> I have tried some of you suggestions and I guess I will answer them
> in order as you presented.
>
> * I did think maybe the Transmit and Recieve lines were swapped so I
> switched the wires and then absolutely nothing worked, so I know at
> least the line from the stamp to the camera works.
>
> * How do you verify the correct jumpers are set? Parallax removed
> them from the board and there is no board schematic that I have
found.
>
> * The CMUcam came from Parallax with color coded wires that were
> soldered and hot glued into place. I assume that they are in the
> correct spots.
>
> * I am in the process of changing to a different pin on the Camera
> to Stamp communication line to see if the pin I am currently using
is
> malfunctioning or not.
>
>
> As for timeouts, if I implement them right now, everything will work
> because I am not getting any specific data from the CMUcam.
However,
> the SERIN will always timeout if I do implement that. As for the
> stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"] command.
> The RS command to the camera appears to work because the status
light
> will flicker real quick as the camera resets and then gets turned on
> by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will implement
> just the on/off flickering by using "L1 1" and "L1 0" instead.
>
> Just for other info, I hooked up a multimeter to the wire going from
> the camera to the stamp and it was reading a constant voltage of
> about 4.77-4.8 V. This doesn't sound right to me, but maybe it is.
>
> Michael
>
>
>
> --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
> wrote:
> > Michael,
> >
> > Just some thoughts, you may have already checked these:
> >
> > * Do you have the serial Transmit and Receive lines swapped?
> > * Have you verified the correct CMUcam jumpers for baud rate?
> > * Have you verified that the correct pins on the CMUcam are
> connected to the
> > correct pins on the Stamp?
> > * Is your Stamp's pins (used for the CMUcam serial communications)
> known to
> > be operating correctly?
> >
> > [noparse][[/noparse]Apply divide & conquer techniques to the problem] For testing, as
> this
> > program is just an attempt to verify the basic connections and
> hardware
> > operation, you might try a timeout on the SERIN's. This would
> allow the
> > commands from the Stamp to be sent to the CMUcam and if the SEROUT
> half is
> > operating correctly, you should see the expected LED activity on
> the CMUcam
> > board. For this test, consider just toggling the CMUcam LED (use
> the CMUcam
> > commands "L1 1" and "L1 0".
> >
> > Exactly where does your program stall? At the CMUcam's RS
command,
> or
> > somewhere in your loop?
> >
> > HTH,
> > Daniel
> >
> >
Original Message
> > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > Sent: Wednesday, March 05, 2003 1:12 AM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
> >
> >
> > I was wondering if anyone has dealt with integrating the Parallax
> > modified CMUcam and the BS2P stamp (on the BOE board, in
> > particular)? I am for some reason not recieving any transmission
> > about data acknowledgement from the camera. I have calculated the
> > baudmode to be 240 and even tried a slower number like 500 but the
> > program just stalls at the SERIN command waiting for a response.
I
> > could implement a timeout feature but as I will need info from the
> > camera later on, that is a not a wise choice of action right
now. I
> > have run the sample tutorial from Parallax but it stalls. The
code
> > is below for reference. If anyone has an idea, please let me
know.
> >
> > thanks,
> > - Michael
> >
> >
> > '{$STAMP BS2p}
> > '{$PBASIC 2.5}
> >
> >
> > ' CMUcam Boe-Bot Demo Program 1
> >
> > ' Copyright 2002 Seattle Robotics
> >
> > ' Basic Stamp 2P
> > ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
> > installed
> >
> > ' This program flashes the green tracking LED -
> > ' on the CMUcam to show serial communication is OK
> >
> > ' Hardware setup:
> > ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> > ' the main 13 pin .100 header just past jumper 3 position
> > ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> > ' the main 13 pin .100 header just past jumper 3 position
> > ' Wire 2 GND to CMUcam TTL level GND pin on -
> > ' the main 13 pin .100 header just past jumper 3 position
> >
> > ' We only wait for the ":" character instead of the -
> > ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
> > ' slow to receive - this works very well in practice
> >
> > ' Pause 1 second for CMUcam startup
> > pause 1000
> >
> > ' Send "reset" to sync CMUcam and Stamp
> > serout 10, 240, [noparse][[/noparse]"RS", CR]
> > serin 9, 240, [noparse][[/noparse]Wait (":")]
> >
> > Main:
> >
> > ' Flash the tracking LED
> >
> > ' Send command - Turn on track LED
> >
> > serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> > serin 9, 240, [noparse][[/noparse]Wait (":")]
> >
> > 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
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> Subject and
> > Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
You probably recall from the Stamp manual (in the SERIN entry) that the 9600
baud rate is noted to be potentially dicey on the BS2p, due to there being
no buffer. Even so, Parallax does hardwire their CMUcam to 9600, and seems
to indicate that it will operate with BS2 (the Boe-Bot), so it should
operate on a BS2p.
Hoping you get it figured out. Please consider posting a final result with
what you end up with.
Best Regards,
Daniel
Original Message
From: "omnigroup_2002" <ord_data@h...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, March 05, 2003 4:52 PM
Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> Daniel,
>
> Thank you for the manual references, I will take a look at them again
> and see if I can draw any conclusions from the schematics. As for
> the voltage of ~4.8 V, it was referenced from Vss on the board and
> connected to the white wire which goes into pin9. Your assumption on
> my meaning as "everything works" if I put in timeouts is exactly what
> I was thinking. The SEROUT command is successfully transmitting data
> but the SERIN doesn't seem to get the response it expects. I have
> contacted both Parallas and SeattleRobotics. SeattleRobotics states
> that the camera was tested with the BS2 and BS2sx but no the BS2p.
> It should work but they referred to Parallax for support and I just
> got a response from Parallax. All they did was to incorporate at
> timeout feature of time 1 (and that is correct). However, I am
> doubtful that the camera will return the data necessary. I am trying
> their program and if all else fails, I will let them know again
> because I think the possibility of a cold solder joint is pretty good.
>
> - Michael
>
> --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
> wrote:
> > Michael,
> >
> > Disclaimer: I do not have a Parallax CMUcam; I'm waiting for a
> modified
> > CMUcam from SeattleRobotics.com.
> >
> > Disclaimer 2: I might be wrong.
> >
> > Parallax has a "modified" CMUcam, as described on their page
> > http://www.parallax.com/detail.asp?product_id=30051. The wording
> suggests
> > to me that the base processor board is similar to the "original"
> CMUcam.
> > The wording also suggests that SeattleRobotics.com may have been
> involved in
> > the derivation of the Parallax-branded CMUcam; you can find a
> CMUcam user
> > manual there at http://www.seattlerobotics.com/cmucam.htm.
> >
> > You may also be aware of the CMUcam website
> > http://www-2.cs.cmu.edu/~cmucam/; there you can get a current
> manual for the
> > "original" CMUcam (http://www-2.cs.cmu.edu/~cmucam/downloads.html).
> >
> > Take a look at the information in those manuals about the base
> processor
> > board layout, the manuals show you where the TTL serial lines and
> the baud
> > rate jumpers are located. Compare this information with the
> Parallax
> > manual. You may be able to infer something about the pin-out for
> the
> > Parallax CMUcam board--where the soldered & glued wires are
> anchored.
> >
> > Check your (and my) assumptions twice before doing anything rash.
> >
> > You measured 4.77-4.8 VDC "on the wire". Which wire (what is it
> color), and
> > what was the ground reference?
> >
> > You say that with SERIN timeouts, "everything will work". If, by
> this, you
> > mean that you can command the CMUcam with SEROUT and it responds
> > appropriately, then you have a problem with the SERIN circuit, but
> not with
> > the SEROUT circuit.
> >
> > Perhaps there is a bad socket on your bread-board.
> >
> > Another, less likely possibility is a cold solder joint on the TTL
> serial
> > wires--if so, Parallax takes a keen interest in their product
> quality so
> > contact them.
> >
> > I assume that you have followed the startup steps found in the
> Parallax
> > manual?
> >
> > HTH,
> > Daniel
> >
> >
> >
Original Message
> > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > Sent: Wednesday, March 05, 2003 12:52 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> >
> >
> > Daniel,
> >
> > I have tried some of you suggestions and I guess I will answer them
> > in order as you presented.
> >
> > * I did think maybe the Transmit and Recieve lines were swapped so I
> > switched the wires and then absolutely nothing worked, so I know at
> > least the line from the stamp to the camera works.
> >
> > * How do you verify the correct jumpers are set? Parallax removed
> > them from the board and there is no board schematic that I have
> found.
> >
> > * The CMUcam came from Parallax with color coded wires that were
> > soldered and hot glued into place. I assume that they are in the
> > correct spots.
> >
> > * I am in the process of changing to a different pin on the Camera
> > to Stamp communication line to see if the pin I am currently using
> is
> > malfunctioning or not.
> >
> >
> > As for timeouts, if I implement them right now, everything will work
> > because I am not getting any specific data from the CMUcam.
> However,
> > the SERIN will always timeout if I do implement that. As for the
> > stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"] command.
> > The RS command to the camera appears to work because the status
> light
> > will flicker real quick as the camera resets and then gets turned on
> > by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will implement
> > just the on/off flickering by using "L1 1" and "L1 0" instead.
> >
> > Just for other info, I hooked up a multimeter to the wire going from
> > the camera to the stamp and it was reading a constant voltage of
> > about 4.77-4.8 V. This doesn't sound right to me, but maybe it is.
> >
> > Michael
> >
> >
> >
> > --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
> > wrote:
> > > Michael,
> > >
> > > Just some thoughts, you may have already checked these:
> > >
> > > * Do you have the serial Transmit and Receive lines swapped?
> > > * Have you verified the correct CMUcam jumpers for baud rate?
> > > * Have you verified that the correct pins on the CMUcam are
> > connected to the
> > > correct pins on the Stamp?
> > > * Is your Stamp's pins (used for the CMUcam serial communications)
> > known to
> > > be operating correctly?
> > >
> > > [noparse][[/noparse]Apply divide & conquer techniques to the problem] For testing, as
> > this
> > > program is just an attempt to verify the basic connections and
> > hardware
> > > operation, you might try a timeout on the SERIN's. This would
> > allow the
> > > commands from the Stamp to be sent to the CMUcam and if the SEROUT
> > half is
> > > operating correctly, you should see the expected LED activity on
> > the CMUcam
> > > board. For this test, consider just toggling the CMUcam LED (use
> > the CMUcam
> > > commands "L1 1" and "L1 0".
> > >
> > > Exactly where does your program stall? At the CMUcam's RS
> command,
> > or
> > > somewhere in your loop?
> > >
> > > HTH,
> > > Daniel
> > >
> > >
Original Message
> > > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > > Sent: Wednesday, March 05, 2003 1:12 AM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
> > >
> > >
> > > I was wondering if anyone has dealt with integrating the Parallax
> > > modified CMUcam and the BS2P stamp (on the BOE board, in
> > > particular)? I am for some reason not recieving any transmission
> > > about data acknowledgement from the camera. I have calculated the
> > > baudmode to be 240 and even tried a slower number like 500 but the
> > > program just stalls at the SERIN command waiting for a response.
> I
> > > could implement a timeout feature but as I will need info from the
> > > camera later on, that is a not a wise choice of action right
> now. I
> > > have run the sample tutorial from Parallax but it stalls. The
> code
> > > is below for reference. If anyone has an idea, please let me
> know.
> > >
> > > thanks,
> > > - Michael
> > >
> > >
> > > '{$STAMP BS2p}
> > > '{$PBASIC 2.5}
> > >
> > >
> > > ' CMUcam Boe-Bot Demo Program 1
> > >
> > > ' Copyright 2002 Seattle Robotics
> > >
> > > ' Basic Stamp 2P
> > > ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2 and 3
> > > installed
> > >
> > > ' This program flashes the green tracking LED -
> > > ' on the CMUcam to show serial communication is OK
> > >
> > > ' Hardware setup:
> > > ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> > > ' the main 13 pin .100 header just past jumper 3 position
> > > ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> > > ' the main 13 pin .100 header just past jumper 3 position
> > > ' Wire 2 GND to CMUcam TTL level GND pin on -
> > > ' the main 13 pin .100 header just past jumper 3 position
> > >
> > > ' We only wait for the ":" character instead of the -
> > > ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is to -
> > > ' slow to receive - this works very well in practice
> > >
> > > ' Pause 1 second for CMUcam startup
> > > pause 1000
> > >
> > > ' Send "reset" to sync CMUcam and Stamp
> > > serout 10, 240, [noparse][[/noparse]"RS", CR]
> > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > >
> > > Main:
> > >
> > > ' Flash the tracking LED
> > >
> > > ' Send command - Turn on track LED
> > >
> > > serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > >
> > > 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
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > Subject and
> > > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> Subject and
> > Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
I just got a response from Parallax where they don't specifically
identify why they came up with a potential fix, they just gave it.
Apparently, there is a timing error that occurs with the SEROUT
followed immediately by SERIN. Their fix to the problem is in this
form:
Main:
'perform regular commands
serout 10, 240, [noparse][[/noparse]"L1 1",CR]
GOSUB Get_Info
'perform other commands
END
Get_Info:
serin 9, 240, [noparse][[/noparse]Wait ":"]
Return
Essentially by doing this subroutine branch, the timing then works
and the SERIN recieves data. I'm not sure why this works but it is a
work around for the problem at hand rather than a fix. I hope it
works for you as well when you get your camera.
-Michael
--- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
wrote:
> Michael,
>
> You probably recall from the Stamp manual (in the SERIN entry) that
the 9600
> baud rate is noted to be potentially dicey on the BS2p, due to
there being
> no buffer. Even so, Parallax does hardwire their CMUcam to 9600,
and seems
> to indicate that it will operate with BS2 (the Boe-Bot), so it
should
> operate on a BS2p.
>
> Hoping you get it figured out. Please consider posting a final
result with
> what you end up with.
>
> Best Regards,
> Daniel
>
>
>
Original Message
> From: "omnigroup_2002" <ord_data@h...>
> To: <basicstamps@yahoogroups.com>
> Sent: Wednesday, March 05, 2003 4:52 PM
> Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
>
>
> > Daniel,
> >
> > Thank you for the manual references, I will take a look at them
again
> > and see if I can draw any conclusions from the schematics. As for
> > the voltage of ~4.8 V, it was referenced from Vss on the board and
> > connected to the white wire which goes into pin9. Your
assumption on
> > my meaning as "everything works" if I put in timeouts is exactly
what
> > I was thinking. The SEROUT command is successfully transmitting
data
> > but the SERIN doesn't seem to get the response it expects. I have
> > contacted both Parallas and SeattleRobotics. SeattleRobotics
states
> > that the camera was tested with the BS2 and BS2sx but no the BS2p.
> > It should work but they referred to Parallax for support and I
just
> > got a response from Parallax. All they did was to incorporate at
> > timeout feature of time 1 (and that is correct). However, I am
> > doubtful that the camera will return the data necessary. I am
trying
> > their program and if all else fails, I will let them know again
> > because I think the possibility of a cold solder joint is pretty
good.
> >
> > - Michael
> >
> > --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin"
<ddm@m...>
> > wrote:
> > > Michael,
> > >
> > > Disclaimer: I do not have a Parallax CMUcam; I'm waiting for a
> > modified
> > > CMUcam from SeattleRobotics.com.
> > >
> > > Disclaimer 2: I might be wrong.
> > >
> > > Parallax has a "modified" CMUcam, as described on their page
> > > http://www.parallax.com/detail.asp?product_id=30051. The
wording
> > suggests
> > > to me that the base processor board is similar to the "original"
> > CMUcam.
> > > The wording also suggests that SeattleRobotics.com may have been
> > involved in
> > > the derivation of the Parallax-branded CMUcam; you can find a
> > CMUcam user
> > > manual there at http://www.seattlerobotics.com/cmucam.htm.
> > >
> > > You may also be aware of the CMUcam website
> > > http://www-2.cs.cmu.edu/~cmucam/; there you can get a current
> > manual for the
> > > "original" CMUcam (http://www-
2.cs.cmu.edu/~cmucam/downloads.html).
> > >
> > > Take a look at the information in those manuals about the base
> > processor
> > > board layout, the manuals show you where the TTL serial lines
and
> > the baud
> > > rate jumpers are located. Compare this information with the
> > Parallax
> > > manual. You may be able to infer something about the pin-out
for
> > the
> > > Parallax CMUcam board--where the soldered & glued wires are
> > anchored.
> > >
> > > Check your (and my) assumptions twice before doing anything
rash.
> > >
> > > You measured 4.77-4.8 VDC "on the wire". Which wire (what is it
> > color), and
> > > what was the ground reference?
> > >
> > > You say that with SERIN timeouts, "everything will work". If,
by
> > this, you
> > > mean that you can command the CMUcam with SEROUT and it responds
> > > appropriately, then you have a problem with the SERIN circuit,
but
> > not with
> > > the SEROUT circuit.
> > >
> > > Perhaps there is a bad socket on your bread-board.
> > >
> > > Another, less likely possibility is a cold solder joint on the
TTL
> > serial
> > > wires--if so, Parallax takes a keen interest in their product
> > quality so
> > > contact them.
> > >
> > > I assume that you have followed the startup steps found in the
> > Parallax
> > > manual?
> > >
> > > HTH,
> > > Daniel
> > >
> > >
> > >
Original Message
> > > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > > Sent: Wednesday, March 05, 2003 12:52 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> > >
> > >
> > > Daniel,
> > >
> > > I have tried some of you suggestions and I guess I will answer
them
> > > in order as you presented.
> > >
> > > * I did think maybe the Transmit and Recieve lines were swapped
so I
> > > switched the wires and then absolutely nothing worked, so I
know at
> > > least the line from the stamp to the camera works.
> > >
> > > * How do you verify the correct jumpers are set? Parallax
removed
> > > them from the board and there is no board schematic that I have
> > found.
> > >
> > > * The CMUcam came from Parallax with color coded wires that
were
> > > soldered and hot glued into place. I assume that they are in
the
> > > correct spots.
> > >
> > > * I am in the process of changing to a different pin on the
Camera
> > > to Stamp communication line to see if the pin I am currently
using
> > is
> > > malfunctioning or not.
> > >
> > >
> > > As for timeouts, if I implement them right now, everything will
work
> > > because I am not getting any specific data from the CMUcam.
> > However,
> > > the SERIN will always timeout if I do implement that. As for
the
> > > stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"]
command.
> > > The RS command to the camera appears to work because the status
> > light
> > > will flicker real quick as the camera resets and then gets
turned on
> > > by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will
implement
> > > just the on/off flickering by using "L1 1" and "L1 0" instead.
> > >
> > > Just for other info, I hooked up a multimeter to the wire going
from
> > > the camera to the stamp and it was reading a constant voltage of
> > > about 4.77-4.8 V. This doesn't sound right to me, but maybe it
is.
> > >
> > > Michael
> > >
> > >
> > >
> > > --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin"
<ddm@m...>
> > > wrote:
> > > > Michael,
> > > >
> > > > Just some thoughts, you may have already checked these:
> > > >
> > > > * Do you have the serial Transmit and Receive lines swapped?
> > > > * Have you verified the correct CMUcam jumpers for baud rate?
> > > > * Have you verified that the correct pins on the CMUcam are
> > > connected to the
> > > > correct pins on the Stamp?
> > > > * Is your Stamp's pins (used for the CMUcam serial
communications)
> > > known to
> > > > be operating correctly?
> > > >
> > > > [noparse][[/noparse]Apply divide & conquer techniques to the problem] For
testing, as
> > > this
> > > > program is just an attempt to verify the basic connections and
> > > hardware
> > > > operation, you might try a timeout on the SERIN's. This would
> > > allow the
> > > > commands from the Stamp to be sent to the CMUcam and if the
SEROUT
> > > half is
> > > > operating correctly, you should see the expected LED activity
on
> > > the CMUcam
> > > > board. For this test, consider just toggling the CMUcam LED
(use
> > > the CMUcam
> > > > commands "L1 1" and "L1 0".
> > > >
> > > > Exactly where does your program stall? At the CMUcam's RS
> > command,
> > > or
> > > > somewhere in your loop?
> > > >
> > > > HTH,
> > > > Daniel
> > > >
> > > >
Original Message
> > > > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > > > Sent: Wednesday, March 05, 2003 1:12 AM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
> > > >
> > > >
> > > > I was wondering if anyone has dealt with integrating the
Parallax
> > > > modified CMUcam and the BS2P stamp (on the BOE board, in
> > > > particular)? I am for some reason not recieving any
transmission
> > > > about data acknowledgement from the camera. I have
calculated the
> > > > baudmode to be 240 and even tried a slower number like 500
but the
> > > > program just stalls at the SERIN command waiting for a
response.
> > I
> > > > could implement a timeout feature but as I will need info
from the
> > > > camera later on, that is a not a wise choice of action right
> > now. I
> > > > have run the sample tutorial from Parallax but it stalls. The
> > code
> > > > is below for reference. If anyone has an idea, please let me
> > know.
> > > >
> > > > thanks,
> > > > - Michael
> > > >
> > > >
> > > > '{$STAMP BS2p}
> > > > '{$PBASIC 2.5}
> > > >
> > > >
> > > > ' CMUcam Boe-Bot Demo Program 1
> > > >
> > > > ' Copyright 2002 Seattle Robotics
> > > >
> > > > ' Basic Stamp 2P
> > > > ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2
and 3
> > > > installed
> > > >
> > > > ' This program flashes the green tracking LED -
> > > > ' on the CMUcam to show serial communication is OK
> > > >
> > > > ' Hardware setup:
> > > > ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> > > > ' the main 13 pin .100 header just past jumper 3 position
> > > > ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> > > > ' the main 13 pin .100 header just past jumper 3 position
> > > > ' Wire 2 GND to CMUcam TTL level GND pin on -
> > > > ' the main 13 pin .100 header just past jumper 3 position
> > > >
> > > > ' We only wait for the ":" character instead of the -
> > > > ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is
to -
> > > > ' slow to receive - this works very well in practice
> > > >
> > > > ' Pause 1 second for CMUcam startup
> > > > pause 1000
> > > >
> > > > ' Send "reset" to sync CMUcam and Stamp
> > > > serout 10, 240, [noparse][[/noparse]"RS", CR]
> > > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > > >
> > > > Main:
> > > >
> > > > ' Flash the tracking LED
> > > >
> > > > ' Send command - Turn on track LED
> > > >
> > > > serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> > > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > > >
> > > > 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
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
> > > Subject and
> > > > Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > Subject and
> > > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
Thanks for the tip. Was there any indication that this problem was specific
to BS2p, or more general across the Stamp line?
Regards,
Daniel
Original Message
From: "omnigroup_2002" <ord_data@h...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, March 05, 2003 8:33 PM
Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> Daniel,
> I just got a response from Parallax where they don't specifically
> identify why they came up with a potential fix, they just gave it.
> Apparently, there is a timing error that occurs with the SEROUT
> followed immediately by SERIN. Their fix to the problem is in this
> form:
>
> Main:
> 'perform regular commands
>
> serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> GOSUB Get_Info
>
> 'perform other commands
>
> END
>
> Get_Info:
> serin 9, 240, [noparse][[/noparse]Wait ":"]
> Return
>
> Essentially by doing this subroutine branch, the timing then works
> and the SERIN recieves data. I'm not sure why this works but it is a
> work around for the problem at hand rather than a fix. I hope it
> works for you as well when you get your camera.
>
> -Michael
>
>
> --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
> wrote:
> > Michael,
> >
> > You probably recall from the Stamp manual (in the SERIN entry) that
> the 9600
> > baud rate is noted to be potentially dicey on the BS2p, due to
> there being
> > no buffer. Even so, Parallax does hardwire their CMUcam to 9600,
> and seems
> > to indicate that it will operate with BS2 (the Boe-Bot), so it
> should
> > operate on a BS2p.
> >
> > Hoping you get it figured out. Please consider posting a final
> result with
> > what you end up with.
> >
> > Best Regards,
> > Daniel
> >
> >
> >
Original Message
> > From: "omnigroup_2002" <ord_data@h...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Wednesday, March 05, 2003 4:52 PM
> > Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> >
> >
> > > Daniel,
> > >
> > > Thank you for the manual references, I will take a look at them
> again
> > > and see if I can draw any conclusions from the schematics. As for
> > > the voltage of ~4.8 V, it was referenced from Vss on the board and
> > > connected to the white wire which goes into pin9. Your
> assumption on
> > > my meaning as "everything works" if I put in timeouts is exactly
> what
> > > I was thinking. The SEROUT command is successfully transmitting
> data
> > > but the SERIN doesn't seem to get the response it expects. I have
> > > contacted both Parallas and SeattleRobotics. SeattleRobotics
> states
> > > that the camera was tested with the BS2 and BS2sx but no the BS2p.
> > > It should work but they referred to Parallax for support and I
> just
> > > got a response from Parallax. All they did was to incorporate at
> > > timeout feature of time 1 (and that is correct). However, I am
> > > doubtful that the camera will return the data necessary. I am
> trying
> > > their program and if all else fails, I will let them know again
> > > because I think the possibility of a cold solder joint is pretty
> good.
> > >
> > > - Michael
> > >
> > > --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin"
> <ddm@m...>
> > > wrote:
> > > > Michael,
> > > >
> > > > Disclaimer: I do not have a Parallax CMUcam; I'm waiting for a
> > > modified
> > > > CMUcam from SeattleRobotics.com.
> > > >
> > > > Disclaimer 2: I might be wrong.
> > > >
> > > > Parallax has a "modified" CMUcam, as described on their page
> > > > http://www.parallax.com/detail.asp?product_id=30051. The
> wording
> > > suggests
> > > > to me that the base processor board is similar to the "original"
> > > CMUcam.
> > > > The wording also suggests that SeattleRobotics.com may have been
> > > involved in
> > > > the derivation of the Parallax-branded CMUcam; you can find a
> > > CMUcam user
> > > > manual there at http://www.seattlerobotics.com/cmucam.htm.
> > > >
> > > > You may also be aware of the CMUcam website
> > > > http://www-2.cs.cmu.edu/~cmucam/; there you can get a current
> > > manual for the
> > > > "original" CMUcam (http://www-
> 2.cs.cmu.edu/~cmucam/downloads.html).
> > > >
> > > > Take a look at the information in those manuals about the base
> > > processor
> > > > board layout, the manuals show you where the TTL serial lines
> and
> > > the baud
> > > > rate jumpers are located. Compare this information with the
> > > Parallax
> > > > manual. You may be able to infer something about the pin-out
> for
> > > the
> > > > Parallax CMUcam board--where the soldered & glued wires are
> > > anchored.
> > > >
> > > > Check your (and my) assumptions twice before doing anything
> rash.
> > > >
> > > > You measured 4.77-4.8 VDC "on the wire". Which wire (what is it
> > > color), and
> > > > what was the ground reference?
> > > >
> > > > You say that with SERIN timeouts, "everything will work". If,
> by
> > > this, you
> > > > mean that you can command the CMUcam with SEROUT and it responds
> > > > appropriately, then you have a problem with the SERIN circuit,
> but
> > > not with
> > > > the SEROUT circuit.
> > > >
> > > > Perhaps there is a bad socket on your bread-board.
> > > >
> > > > Another, less likely possibility is a cold solder joint on the
> TTL
> > > serial
> > > > wires--if so, Parallax takes a keen interest in their product
> > > quality so
> > > > contact them.
> > > >
> > > > I assume that you have followed the startup steps found in the
> > > Parallax
> > > > manual?
> > > >
> > > > HTH,
> > > > Daniel
> > > >
> > > >
> > > >
Original Message
> > > > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > > > Sent: Wednesday, March 05, 2003 12:52 PM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
> > > >
> > > >
> > > > Daniel,
> > > >
> > > > I have tried some of you suggestions and I guess I will answer
> them
> > > > in order as you presented.
> > > >
> > > > * I did think maybe the Transmit and Recieve lines were swapped
> so I
> > > > switched the wires and then absolutely nothing worked, so I
> know at
> > > > least the line from the stamp to the camera works.
> > > >
> > > > * How do you verify the correct jumpers are set? Parallax
> removed
> > > > them from the board and there is no board schematic that I have
> > > found.
> > > >
> > > > * The CMUcam came from Parallax with color coded wires that
> were
> > > > soldered and hot glued into place. I assume that they are in
> the
> > > > correct spots.
> > > >
> > > > * I am in the process of changing to a different pin on the
> Camera
> > > > to Stamp communication line to see if the pin I am currently
> using
> > > is
> > > > malfunctioning or not.
> > > >
> > > >
> > > > As for timeouts, if I implement them right now, everything will
> work
> > > > because I am not getting any specific data from the CMUcam.
> > > However,
> > > > the SERIN will always timeout if I do implement that. As for
> the
> > > > stall location, it stalls on the SERIN 9, 240, [noparse][[/noparse]WAIT ":"]
> command.
> > > > The RS command to the camera appears to work because the status
> > > light
> > > > will flicker real quick as the camera resets and then gets
> turned on
> > > > by the first SEROUT 9, 240, [noparse][[/noparse]"L1 1", CR] command. I will
> implement
> > > > just the on/off flickering by using "L1 1" and "L1 0" instead.
> > > >
> > > > Just for other info, I hooked up a multimeter to the wire going
> from
> > > > the camera to the stamp and it was reading a constant voltage of
> > > > about 4.77-4.8 V. This doesn't sound right to me, but maybe it
> is.
> > > >
> > > > Michael
> > > >
> > > >
> > > >
> > > > --- In basicstamps@yahoogroups.com, "D. Daniel McGlothin"
> <ddm@m...>
> > > > wrote:
> > > > > Michael,
> > > > >
> > > > > Just some thoughts, you may have already checked these:
> > > > >
> > > > > * Do you have the serial Transmit and Receive lines swapped?
> > > > > * Have you verified the correct CMUcam jumpers for baud rate?
> > > > > * Have you verified that the correct pins on the CMUcam are
> > > > connected to the
> > > > > correct pins on the Stamp?
> > > > > * Is your Stamp's pins (used for the CMUcam serial
> communications)
> > > > known to
> > > > > be operating correctly?
> > > > >
> > > > > [noparse][[/noparse]Apply divide & conquer techniques to the problem] For
> testing, as
> > > > this
> > > > > program is just an attempt to verify the basic connections and
> > > > hardware
> > > > > operation, you might try a timeout on the SERIN's. This would
> > > > allow the
> > > > > commands from the Stamp to be sent to the CMUcam and if the
> SEROUT
> > > > half is
> > > > > operating correctly, you should see the expected LED activity
> on
> > > > the CMUcam
> > > > > board. For this test, consider just toggling the CMUcam LED
> (use
> > > > the CMUcam
> > > > > commands "L1 1" and "L1 0".
> > > > >
> > > > > Exactly where does your program stall? At the CMUcam's RS
> > > command,
> > > > or
> > > > > somewhere in your loop?
> > > > >
> > > > > HTH,
> > > > > Daniel
> > > > >
> > > > >
Original Message
> > > > > From: omnigroup_2002 [noparse][[/noparse]mailto[noparse]:o[/noparse]rd_data@h...]
> > > > > Sent: Wednesday, March 05, 2003 1:12 AM
> > > > > To: basicstamps@yahoogroups.com
> > > > > Subject: [noparse][[/noparse]basicstamps] no transmission from CMUcam system
> > > > >
> > > > >
> > > > > I was wondering if anyone has dealt with integrating the
> Parallax
> > > > > modified CMUcam and the BS2P stamp (on the BOE board, in
> > > > > particular)? I am for some reason not recieving any
> transmission
> > > > > about data acknowledgement from the camera. I have
> calculated the
> > > > > baudmode to be 240 and even tried a slower number like 500
> but the
> > > > > program just stalls at the SERIN command waiting for a
> response.
> > > I
> > > > > could implement a timeout feature but as I will need info
> from the
> > > > > camera later on, that is a not a wise choice of action right
> > > now. I
> > > > > have run the sample tutorial from Parallax but it stalls. The
> > > code
> > > > > is below for reference. If anyone has an idea, please let me
> > > know.
> > > > >
> > > > > thanks,
> > > > > - Michael
> > > > >
> > > > >
> > > > > '{$STAMP BS2p}
> > > > > '{$PBASIC 2.5}
> > > > >
> > > > >
> > > > > ' CMUcam Boe-Bot Demo Program 1
> > > > >
> > > > > ' Copyright 2002 Seattle Robotics
> > > > >
> > > > > ' Basic Stamp 2P
> > > > > ' CMUcam jumpered for Baud 9600 (BS2P code 240) - jumper 2
> and 3
> > > > > installed
> > > > >
> > > > > ' This program flashes the green tracking LED -
> > > > > ' on the CMUcam to show serial communication is OK
> > > > >
> > > > > ' Hardware setup:
> > > > > ' Wire 2 pin 10 to CMUcam TTL level serial Rcv pin on -
> > > > > ' the main 13 pin .100 header just past jumper 3 position
> > > > > ' Wire 2 pin 9 to CMUcam TTL level serial Xmt pin on -
> > > > > ' the main 13 pin .100 header just past jumper 3 position
> > > > > ' Wire 2 GND to CMUcam TTL level GND pin on -
> > > > > ' the main 13 pin .100 header just past jumper 3 position
> > > > >
> > > > > ' We only wait for the ":" character instead of the -
> > > > > ' entire "ACK:" (or "NACK:" if error) because the Stamp 2 is
> to -
> > > > > ' slow to receive - this works very well in practice
> > > > >
> > > > > ' Pause 1 second for CMUcam startup
> > > > > pause 1000
> > > > >
> > > > > ' Send "reset" to sync CMUcam and Stamp
> > > > > serout 10, 240, [noparse][[/noparse]"RS", CR]
> > > > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > > > >
> > > > > Main:
> > > > >
> > > > > ' Flash the tracking LED
> > > > >
> > > > > ' Send command - Turn on track LED
> > > > >
> > > > > serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> > > > > serin 9, 240, [noparse][[/noparse]Wait (":")]
> > > > >
> > > > > 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
> > > > >
> > > > >
> > > > > To UNSUBSCRIBE, just send mail to:
> > > > > basicstamps-unsubscribe@yahoogroups.com
> > > > > from the same email address that you subscribed. Text in the
> > > > Subject and
> > > > > Body of the message will be ignored.
> > > > >
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
> > > Subject and
> > > > Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> Subject and
> > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
There was no indication from Parallax or anyone that this is a
specific problem related to the BS2P or if it can affect all versions
of the stamp. However, the Basic Stamp Manual does state that the
BS2, 2e, 2sx, and 2p may have problems synchronizing with the input
serial stream due to a lack of a hardware input buffer. However, I
tried a slower baud and the same thing occurred. I assume this is
because the CMUcam is configured for 9600 baud and slowing down the
stamp would change the camera speeds. This data is on page 277 of
the Basic Stamp User Manual. Good luck with your project and thanks
for the suggestions.
Michael
--- In basicstamps@yahoogroups.com, "D. Daniel McGlothin" <ddm@m...>
wrote:
> Michael,
>
> Thanks for the tip. Was there any indication that this problem was
specific
> to BS2p, or more general across the Stamp line?
>
> Regards,
> Daniel
>
>
Original Message
> From: "omnigroup_2002" <ord_data@h...>
> To: <basicstamps@yahoogroups.com>
> Sent: Wednesday, March 05, 2003 8:33 PM
> Subject: [noparse][[/noparse]basicstamps] Re: no transmission from CMUcam system
>
>
> > Daniel,
> > I just got a response from Parallax where they don't specifically
> > identify why they came up with a potential fix, they just gave it.
> > Apparently, there is a timing error that occurs with the SEROUT
> > followed immediately by SERIN. Their fix to the problem is in
this
> > form:
> >
> > Main:
> > 'perform regular commands
> >
> > serout 10, 240, [noparse][[/noparse]"L1 1",CR]
> > GOSUB Get_Info
> >
> > 'perform other commands
> >
> > END
> >
> > Get_Info:
> > serin 9, 240, [noparse][[/noparse]Wait ":"]
> > Return
> >
> > Essentially by doing this subroutine branch, the timing then works
> > and the SERIN recieves data. I'm not sure why this works but it
is a
> > work around for the problem at hand rather than a fix. I hope it
> > works for you as well when you get your camera.
> >
> > -Michael
> >
> >