BS2P help!
Five-sEvEn
Posts: 7
Hi, this is kinda stupid but, I bought a BS2P24 in August and only had time to full test it out now. For some reason it's clock or something seems messed up. I can transfer programs just fine, but when I try to run a simple motor program (to move forward) with my BOEbot it just spins in place, and with the same code on my BS2 it works just fine. Also running the communication test program with the BS2P24 and my CMUcam doesn't work either, while it works just fine with BS2
Testing it late is kinda stupid because I can't return it or anything now (past the 90 days already), and I was just wondering if anyone else had the same or similar problems?
Testing it late is kinda stupid because I can't return it or anything now (past the 90 days already), and I was just wondering if anyone else had the same or similar problems?
Comments
I went back to the BS2 I got the BS2P for LCD Drive
The Stamp Manual shows that it is meant for the PULSOUT Command
I wanted to post the same message
Thank You
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Even if that timing error in the PULSOUT command accounted for my programs not running quite straight, what would explain the lack of communication between the CMUcam and the BS2p? I changed the Baudmode (value = 240) on "Program 1" and it still fails to run.
Here's what happens basically:
CMUcam starts up
BS2p sends "reset" command to CMUcam
BS2p recieves "ack" from CMUcam
BS2p sends "tracking LED on" command to CMUcam
--Program Freezes here--
Never recieves "ack" from CMUcam
If I remove the SERIN commands from the BS2p then it works. I guess it likes to talk but never wants to listen. If I route the SERIN commands through Pin 16 (serial port) and manually send the "ack" commands it works though.
Anyone might know what the problem here is?
Post Edited (Five-sEvEn) : 12/15/2004 6:31:58 AM GMT
Can you post the code that went with it? I tried hacking into your computer to get it, but then decided it'd be easier to ask.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
The original code works just fine with my BS2 but the BS2p stops after sending the "Turn on track LED" command. If i'm not mistaken, the PAUSE and serial commands don't require any other timing changes except for the Baudmode in the serial commands case.
I just checked some sample CMUCam code from the Parallax web site, and it contains the following initialization code which is not included in the code you have provided:
' Pause 1 second for CMUcam startup
PAUSE 1000
' Send "reset" to sync CMUcam and Stamp
SEROUT 10, 84, [noparse][[/noparse]"RS", CR]
SERIN 9, 84, [noparse][[/noparse]WAIT (":")]
If you have not initialed the CMUCam, you may wish to included the code above with the appropriate modifications for your specific implementation. In the limited code snippet you have included, it doesn't appear as there are any other statements which need to be changed due to the speed differences between the two Stamp platforms.
Regards,
Bruce Bates
·· Sometimes I don't even make sense to myself!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
I'm not sure if you can see it or not but, the first 6 lines of code that I provided are the exact initialization code for the CMUcam with Baudmode modifications for the BS2p.
Chris:
The SERIN commands have WAIT modifiers in them. Granted, this is the first time i'm messing with serial communication, but i'm gonna go ahead say that if it waits for an ascii ":" then it should stay on that command and continue to wait untill the "ACK:" signal from the CMUcam.
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office