Shop OBEX P1 Docs P2 Docs Learn Events
SERIAL CONTROL OF BS2p24/PSC with BS2p40 — Parallax Forums

SERIAL CONTROL OF BS2p24/PSC with BS2p40

kennetkennet Posts: 33
edited 2008-07-08 20:46 in Robotics
Question? Can anyone tell me if it is possible to use· serial communication to control a Parallax Servo Controller/ BS2p24 combination with a BS2p40 in a Master/Slave setup? If it is possible,do you write commands to the BS2p24 or the
PSC? Also how would the command be written?

Thank You
Ken

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2008-07-07 19:27
    Yes, this is very practical.

    Check out the PSC "Serial" version documentation on the command strings needed to control it.
  • kennetkennet Posts: 33
    edited 2008-07-07 21:44
    Thanks for the prompt reply. What I really meant to say is that I want to send a serout command from the BS2p40 to the BS2p24,and not directly to the PSC. This way the BS2p24/PSC combo is running in the background.
    serout/serin and have the BS2p24· CASE/SELECT a command to the PSC.I've already wrote and tested the code now I need the BS2p40(MASTER) to control the BS2p24(SLAVE) CASE/SELECT.

    Thanks
  • ZootZoot Posts: 2,227
    edited 2008-07-08 13:15
    See "flow control" under SERIN/SEROUT in the Pbasic manual -- if you have the extra pin to spare on the master and slave, this will make it much much easier to have the two Stamps communicate via serial.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • kennetkennet Posts: 33
    edited 2008-07-08 20:46
    Your right! I forgot about that function.I'll check it out. Thanks Zoot.

    Ken
Sign In or Register to comment.