Shop OBEX P1 Docs P2 Docs Learn Events
I am trying to learn how to program my BS2 — Parallax Forums

I am trying to learn how to program my BS2

ArchiverArchiver Posts: 46,084
edited 2000-12-11 22:43 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-12-11 20:42
    www.stampsinclass.com
    -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
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-12-11 22:43
    Here some sample code, I added remarks on what each part does.

    '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
    >
    >
    >
    >
    >
Sign In or Register to comment.