Shop OBEX P1 Docs P2 Docs Learn Events
I Need more variables, I need and other stamp, but how add a second BS2? — Parallax Forums

I Need more variables, I need and other stamp, but how add a second BS2?

JoeJoe Posts: 184
edited 2004-10-21 15:26 in BASIC Stamp
Hi stampers:

I need to add variables to my routine program.
I have an other stamp ( BS2-IC) and I would
like to know if it is possible to add a second Basic Stamp
in order to have more variables.

For example, I need to move some servos, and sensors
but I think that the servos could be moved using
the second BS2. Of course the first BS2 (main) must
have the control of all the routine.

Do you know where can I get some information about that?

Thanks, Joe

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2004-10-21 13:29
    You can use the SERIN/SEROUT commands to talk between stamps.
    This would let you have a 'master' BS2 to make decisions, and a 'slave' BS2 to control the servo's.
    But where is this documented.... Hmm...
  • JavalinJavalin Posts: 892
    edited 2004-10-21 13:32
    Hi Joe,

    An option would be to use a servo controller to offload the processing from the stamp. Parallax and several other vendors sell these, with interfaces to Serial or I2c etc. To add extra code and memory space you can purchase the BS2/P or /PE which have more code & variable space. For the sensors you may be able to find a bus expander chip (depending on what you are going to do), to offload and free up some stamp IO pins.

    Finally you could add external RAM / EEPROM to store memory data. Jon Williams has done several articles on all of these in his Nuts & Volts colums available for dowload from parallax.

    Have fun.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-21 13:33
    There is documentation in our manual/help file on using SERIN and SEROUT with two BASIC Stamps. I also wrote about it in my Nuts & Volts column; you can get a PDF reprint from out web site.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • JavalinJavalin Posts: 892
    edited 2004-10-21 13:34
    wow, three answers in three minutes!
  • DonDon Posts: 34
    edited 2004-10-21 15:26
    Joe said...
    I need to add variables to my routine program.
    When I needed extra RAM on a project,· I connected a 128x8 static RAM chip to the system.· Data was sent to and read from the external RAM using ShiftIn and ShiftOut.· It didn't take much extra circuitry because I already had other serial devices connected.· You can find schematics and code at the link below.

    http://www.kinzers.com/don/GenSet

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don Kinzer

    ·
Sign In or Register to comment.