Shop OBEX P1 Docs P2 Docs Learn Events
Sumobot — Parallax Forums

Sumobot

Mr. BlondeMr. Blonde Posts: 3
edited 2007-04-19 19:26 in Robotics
Hello,
·
Can a Basic Stamp run two programs at the same time?
·
For example: I want to send always·an infrared signal of 36 kHz. And I want my sumobot to follow a line,... at the same time. Can he do that?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-19 18:49
    Yes. Because your sumbot motors are "modified servo's" -- meaning you give them a pulse to indicate what direction they should go, then have 20 mSec to do "other stuff" before you have to command them again.

    Oh, wait, that "always send" means continuous? Then you'll need a properly set up 555 timer chip, which you 'enable' with a BS2 pin.

    A BS2 is a single-tasking processor. It can 'hold' signals high or low, but it won't continuously generate a signal. Why continuous, anyway?
  • Mr. BlondeMr. Blonde Posts: 3
    edited 2007-04-19 19:26
    I don’t work with servo’s, but with DC motors. Because I want to built a sumobot with more power. I am going to control the motors with a motor relay.
    ·
    Don’t you have to send a signal all the time, so that your opponent can see you all the time?
Sign In or Register to comment.