programming
does anyone know how (if possible) to move the boebot around a room sensing objects while in movement using the ping distance sensor and·without using the ir sensor? when i get both the boebot moving forward and the ping distance sensor displaying·measurements on the debug terminal, the boe bot drives forward in pulses instead of in a smooth drive·....how can i fix this problem??·heres the basic code i got for movements and distance detection:·· ...try it out and you will see what i mean..
' {$STAMP BS2}
'{$PBASIC 2.5}
time VAR Word
DO
· PULSOUT 13,850
· PULSOUT 12, 650
· PULSOUT 15, 5
· PULSIN 15, 1, time
· DEBUG HOME, "time = ", DEC5 time
· PAUSE 100
· time = time ** 2251
· DEBUG CR, "Distance = ", DEC4 time, " cm"
LOOP
' {$STAMP BS2}
'{$PBASIC 2.5}
time VAR Word
DO
· PULSOUT 13,850
· PULSOUT 12, 650
· PULSOUT 15, 5
· PULSIN 15, 1, time
· DEBUG HOME, "time = ", DEC5 time
· PAUSE 100
· time = time ** 2251
· DEBUG CR, "Distance = ", DEC4 time, " cm"
LOOP
Comments
There's a program for "roaming" using the PING sensor. I believe there's a link on the Parallax webstore page for the PING))) sensor.
When I read you question, the following two articles came to mind--perhaps they will be helpful: www.bluebelldesign.com/FSM_explain.htm which introduces a reference to www.bluebelldesign.com/Robot%20Subsumption%20DLC.pdf.
Another view is presented in www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol1/col/nv44.pdf;
The articles referenced may give you the hints needed to search further.
Daniel
Post Edited (daniel) : 11/11/2008 5:03:26 AM GMT
The servo pal can be found here
http://www.parallax.com/Store/Accessories/MotorServoControllers/tabid/160/CategoryID/35/List/0/Level/a/ProductID/481/Default.aspx?SortField=ProductName,ProductName
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,