I am trying to learn how to program my BS2
Archiver
Posts: 46,084
I recently purchased a Grow Bot from Parallax. I am trying to learn
how to program it. I have heard that the best way to learn would be
to take it one step at a time. Right now I would just like to learn
how to program it to go forward and stop. If any one can help me out
with sample programs and things like that please e-mail me.
Luke Henry
how to program it. I have heard that the best way to learn would be
to take it one step at a time. Right now I would just like to learn
how to program it to go forward and stop. If any one can help me out
with sample programs and things like that please e-mail me.
Luke Henry
Comments
-William
Original Message
From: <luke_henry14@h...>
To: <basicstamps@egroups.com>
Sent: Monday, December 11, 2000 1:43 PM
Subject: [noparse][[/noparse]basicstamps] I am trying to learn how to program my BS2
> I recently purchased a Grow Bot from Parallax. I am trying to learn
> how to program it. I have heard that the best way to learn would be
> to take it one step at a time. Right now I would just like to learn
> how to program it to go forward and stop. If any one can help me out
> with sample programs and things like that please e-mail me.
>
> Luke Henry
>
>
>
>
>
'This program will make the bot travel a short distance forward than stop.
right_servo con 0 'This is which pin your servo is connected to, it tells
the stamp
left_servo con 15 'where the to locate the servo at. Change it to match
your setup.
i var byte 'Makes a var for the for...next loop.
for i = 1 to 100 'For...next loop. Set 100 higher or lower to change dist.
traveled.
pulsout right_servo,850 'This is the pulsout command, it is all you need to
make a servo run,
pulsout left_servo,650 'software wise that is. The numbers set how long the
pulse is, that
'setting is to make a Boe-Bot run, it should work with a Grow-Bot.
pause 20 'This is a short delay before continuing the program.
next 'This starts the loop again, until i = 100.
end 'This stops the program.
Hope this helps.
Chris Shuster
http://www.stas.net/cpuman/
Original Message
From: <luke_henry14@h...>
To: <basicstamps@egroups.com>
Sent: Monday, December 11, 2000 11:43 AM
Subject: [noparse][[/noparse]basicstamps] I am trying to learn how to program my BS2
> I recently purchased a Grow Bot from Parallax. I am trying to learn
> how to program it. I have heard that the best way to learn would be
> to take it one step at a time. Right now I would just like to learn
> how to program it to go forward and stop. If any one can help me out
> with sample programs and things like that please e-mail me.
>
> Luke Henry
>
>
>
>
>