Boe-bot class project using BS2p24
mikeyjuno
Posts: 15
hello,
our class is doing a boe-bot based project as our final project. we all got assigned a boebot kit and have to "make it do things". basically if it drives (with interrupts such as the whiskers, or even the photo resistors) you get a B if it drives and can complete a task (literally any task) you get an A.
the problem is we havent been given any lessons on coding and are just using the boe-boe introduciton manual to program it. my current problem is that out of the 7 boe-bot kits that where assigned our group got a Bs2p24 chip (1 other group got this chip, the rest got the bs2). The basic code for like...centering the servo wheels (pulsout 750 and turning the servo till it stops) and just turning the servos on (pulsout a number thants not 750) seem to work but every other code i try from the manual doesnt work at all. Is there a simple conversion or something that i can put in with the code to make it run the bs2 codingthe two groups that got the bs2p24's are now very far behind the other groups because we cant even get the boe-bots to run forward for 3 seconds...
any help would be appreciated.
our class is doing a boe-bot based project as our final project. we all got assigned a boebot kit and have to "make it do things". basically if it drives (with interrupts such as the whiskers, or even the photo resistors) you get a B if it drives and can complete a task (literally any task) you get an A.
the problem is we havent been given any lessons on coding and are just using the boe-boe introduciton manual to program it. my current problem is that out of the 7 boe-bot kits that where assigned our group got a Bs2p24 chip (1 other group got this chip, the rest got the bs2). The basic code for like...centering the servo wheels (pulsout 750 and turning the servo till it stops) and just turning the servos on (pulsout a number thants not 750) seem to work but every other code i try from the manual doesnt work at all. Is there a simple conversion or something that i can put in with the code to make it run the bs2 codingthe two groups that got the bs2p24's are now very far behind the other groups because we cant even get the boe-bots to run forward for 3 seconds...
any help would be appreciated.
Comments
Also check out the Robotics with the BoeBot tutorial.
Look here and here.
Im lost as to what im looking for im looking for in the stamp reference manual.
"PULSOUT.bs2
' This program blinks an LED on for 25 ms at 1-second intervals. Connect an
' LED (active-low) to I/O pin 0.
' {$STAMP BS2}
' {$PBASIC 2.5}
#SELECT $STAMP
#CASE BS2, BS2E, BS2PE
Scale CON 500 ' to ms for 2 us per unit
#CASE BS2SX, BS2P, BS2PX
Scale CON 1250 ' to ms for 0.8 us per unit
#ENDSELECT
Flash CON 25 * Scale ' 25 milliseconds
Setup:
HIGH 0 ' make P0 high (LED off)
Main:
PULSOUT 0, Flash ' flash LED
PAUSE 1000 ' one second delay
GOTO Main
END"
that all seems way more confusing then
"' Robotics with the Boe-Bot – ServoP13Clockwise.bs2
' Run the servo connected to P13 at full speed clockwise.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
DO
PULSOUT 13, 650
PAUSE 20
LOOP
"
i think we will just have to borrow a bs2 chip from one of the other groups or see if the teacher can order one.
Edit:
http://forums.parallax.com/showthread.php?p=769250
the other group gave me this thread. Does this conversion work pretty well? anyone try this with a boe-bot and a bs2p
Instead of {$STAMP BS2} you have to use {$STAMP BS2P} otherwise the Stamp Editor thinks you have a BS2 and your program won't work.
well yeah the program actually detects what your using and offers to switch the program. all the ones ive been testing ive been using bs2p . my post above was just an example of how overly complicated this is seeming when using a different chip that should basically do the same thing.
' {$STAMP BS2P}
' {$PBASIC 2.5}
Your example programs shows {$STAMP BS2} as the directive, which would be wrong for the BS2P.
The IDE does not automatically find the version of Basic Stamp, you still have to tell it which version you have.
Once you select the correct version Stamp that you are using {$STAMP BS2P}, THEN the CASE statements takes over to select the parameters indicated in the CASE statements.
It's a little unclear if you are changing the the BS2 to BS2P in the program heading.
Jim
http://forums.parallax.com/showthread.php?p=769250
If you're truly desperate, you could find a dozen people here to trade you a vanilla BS2 for your -P24. That would solve your immediate problem, but it would eliminate the many potential advantages of your -P24. I suggest you try tweaking a smaller program to get a feel for how straightforward the process is.
You'll do the right thing!
Best, erco
Sorry that did not help the OP.
Jim