Shop OBEX P1 Docs P2 Docs Learn Events
Master/Slave — Parallax Forums

Master/Slave

ArchiverArchiver Posts: 46,084
edited 2004-04-07 21:29 in General Discussion
Hello All,

This is all in the dream stage...

I am looking to write a simple "controller" program for my BOE-BOT. I
have built a simple wander bot with the SR04 sonar. The idea is that it
would do it normal thing of wandering around and avoiding objects. But
on top of that, I wanted to write a simple command interface from the PC
where I could send the stamp simple instructions (such as "left",
"right", "stop", "avoid light", seek light", etc) which would
change/override its natural behavior. I don't want the stamp tethered
by serial cable. I'm thinking this could be done IR using a sort of
morse code. Is there a better way? Will IR work at all? Will it be
overly complicated?

I want to do the software myself, so I'm not looking for specific source
code to do this. I am looking for a code sample to do one way (pc to
stamp) IR communication.

Again, I haven't built or coded anything beyond a simple wandering
robot, so the "specs" are really wide open.

Any help would be appreciated,

Happy building...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-07 17:44
    > This is all in the dream stage...

    Dream on! ;-)

    > I am looking to write a simple "controller" program for my BOE-BOT. I
    > have built a simple wander bot with the SR04 sonar. The idea is that it
    > would do it normal thing of wandering around and avoiding objects. But
    > on top of that, I wanted to write a simple command interface from the PC
    > where I could send the stamp simple instructions (such as "left",
    > "right", "stop", "avoid light", seek light", etc) which would
    > change/override its natural behavior. I don't want the stamp tethered
    > by serial cable. I'm thinking this could be done IR using a sort of
    > Morse code. Is there a better way? Will IR work at all? Will it be
    > overly complicated?

    You can use one of the "standard" IR receiver cans to receive (serial) input
    from a standard TV remote and change your stamps behavior based on the 0-9
    keys (or fast-forward, rewind, etc.); You'll have to play a little to see
    what your remote sends for each key. Also pay attention that some remotes
    "auto repeat" keys that are held down where others don¹t.

    > I want to do the software myself, so I'm not looking for specific source
    > code to do this. I am looking for a code sample to do one way (pc to
    > stamp) IR communication.

    There's lots of PeeCee programs to output most remote IR codes to control
    TV's, VCR, DVD, etc. Or you could just use ASCII.

    > Again, I haven't built or coded anything beyond a simple wandering
    > robot, so the "specs" are really wide open.

    I kind of prefer the TV remote solution since I'm more of a desktop CPU guy
    and don't own a portable. If the BOE-BOT wanders out of my office and loses
    its IR connection I can grab the remote and "drive" it back. ;-)

    --
    Enjoy,
    George Warner,
    Schizophrenic Optimization Scientists
    Apple Developer Technical Support (DTS)
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-07 21:29
    I also have a Boe-Bot, and the SRF04 ultrasonic range finder. I'm using the
    Parallax Bluetooth, EmbeddedBlue Transceiver (eb500), for the
    communications with the pc. The eb500 user manual on the Parallax web site
    has the sample code that I used to get started.

    http://www.parallax.com/dl/docs/prod/comm/eb500.pdf

    _________________


    Original Message
    From: "Lance Rose" <lrose@p...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, April 06, 2004 12:20 PM
    Subject: [noparse][[/noparse]basicstamps] Master/Slave


    > Hello All,
    >
    > This is all in the dream stage...
    >
    > I am looking to write a simple "controller" program for my BOE-BOT. I
    > have built a simple wander bot with the SR04 sonar. The idea is that it
    > would do it normal thing of wandering around and avoiding objects. But
    > on top of that, I wanted to write a simple command interface from the PC
    > where I could send the stamp simple instructions (such as "left",
    > "right", "stop", "avoid light", seek light", etc) which would
    > change/override its natural behavior. I don't want the stamp tethered
    > by serial cable. I'm thinking this could be done IR using a sort of
    > morse code. Is there a better way? Will IR work at all? Will it be
    > overly complicated?
    >
    > I want to do the software myself, so I'm not looking for specific source
    > code to do this. I am looking for a code sample to do one way (pc to
    > stamp) IR communication.
    >
    > Again, I haven't built or coded anything beyond a simple wandering
    > robot, so the "specs" are really wide open.
    >
    > Any help would be appreciated,
    >
    > Happy building...
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
Sign In or Register to comment.