Connecting 2 BS2 MC together
FxProgrm
Posts: 3
I am presently working on a project where I have a BS2 and a BS2pe controller linked together using 2 pins.· I am having intermitent problems with the serial communications working from the BS2pe (running sensor reading) and the BS2 (running walking logic).
This is the code in the BS2pe that is sending the message to the master controller:
SEROUT MSTDATA\MSTFLOW,Baud,SerDelay,NoMaster,[noparse][[/noparse]"R"] where MSTDATA is PIN13 and MSTFLOW is PIN12 and Baud is 4800 and SerDelay is a constant defined at 6000.
This is the code in the BS2 that is·reading the message·from the secondary·controller:
SERIN MSTDATA\MSTFLOW,Baud,[noparse][[/noparse]Letter] where MSTDATA is PIN13 and MSTFLOW is PIN12 and Baud is 4800 and SerDelay is a constant defined at 6000.
The BS2 also has serial communications going to the·Parallax Servo Controller·at 9600 baud.
The connections are configured as indicated in the parallax manual for the BS2 with a 1k pulldown/up resistor to ground.
This is all running on the Quad Crawler platform.
Any help or suggestions would be appreciated.
Thanks,
Mike E.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
==== Robotic Toy Box ====
QuadCrawler
This is the code in the BS2pe that is sending the message to the master controller:
SEROUT MSTDATA\MSTFLOW,Baud,SerDelay,NoMaster,[noparse][[/noparse]"R"] where MSTDATA is PIN13 and MSTFLOW is PIN12 and Baud is 4800 and SerDelay is a constant defined at 6000.
This is the code in the BS2 that is·reading the message·from the secondary·controller:
SERIN MSTDATA\MSTFLOW,Baud,[noparse][[/noparse]Letter] where MSTDATA is PIN13 and MSTFLOW is PIN12 and Baud is 4800 and SerDelay is a constant defined at 6000.
The BS2 also has serial communications going to the·Parallax Servo Controller·at 9600 baud.
The connections are configured as indicated in the parallax manual for the BS2 with a 1k pulldown/up resistor to ground.
This is all running on the Quad Crawler platform.
Any help or suggestions would be appreciated.
Thanks,
Mike E.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
==== Robotic Toy Box ====
QuadCrawler
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Thanks,
Mike E.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
==== Robotic Toy Box ====
QuadCrawler
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA