Parallax - BoeBot - How to Toggle a single port -

Have a working connection to the BoeBot

Have a working SimpleDashboard with drive controls

I can drive the Boe Bot via dashboard - very cool.

I have made a lot of modifications to the Simple Dashboard and I want to set specific buttons to toggle specific ports to control things like lights/additional motors etc. I am having trouble finding the specific commands to toggle specific ports on the Stamp Controller.

Is there a secret decoder ring between Parallax's PBASIC commands and the corresponding commands from MSRS? I am looking for for commands like Pulseout, or Toggle Port B1, High B2 (set port B2 to 5V), Low B3 (set port B3 to 0 volts), IN7 (read value of port B7).

jeff

[730 byte] By [jghielme] at [2008-1-10]
# 1

Hi Jeff.

The "Boe-Bot BASIC Stamp 2" service is a very simple example of how to connect with the BasicStamp2. It reads "whiskers" and "infrared" sensors on hard coded pinouts, and applies power to the motors -- and that's it.

It would definitely be interesting to see a generic service for the Basic Stamp which maps more directly to the low level BasicStamp2 capabilities. We have no plans for such a service here, but since we have supplied all of the source code for this sample, our hope is that the BasicStamp2 community might take this as a starting point and extend it or even provide a full functioned replacement.

If you have been tinkering with the dashboard, and you are also familiar with the BasicStamp2 capabilities, you could probably just alter the existing code (both on the BS2 and the MSRS sample code) to add sensors or actuators to the BoeBot kit.


Let us know what you come up with.


Dave

DaveLee at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 2

David,

As always, I appreciate your help. I also get your point. It would be unreasonable for us to expect your group to publish and support all interfaces to all of the various systems. I am just searching for the actual link between the hardware and the software.

Usually, it is in the firmware on the device. We change the firmware, add the commands, and then access it via the application. The MSRS tool suite is so powerful that it integrates the hardware/firmware/software into a cohesive development tools which is very very cool but a bit difficult to reverse engineer.

I am looking for the place where, in the sample code, or the structure of MSRS, are that hard coded pinouts -- the part that does the following transaltions?

Go Fwd:

Stamp: PULSEOUT 12, 850 & PULSEOUT 13,850

translated to

MSRS : Forward

MSRS: _driveport.SetDrivePower(0.5,.5);

Read Port 2:

Stamp: IN2

MSRS: ?

Toggle Port 1:

Stamp: HIGH 1

MSRS: ?

Any suggestions on where to look?

jeff

As for creating a generic Stamp Service, I am happy to share whatever I create.

jghielme at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...

Microsoft Robotics Studio

Site Classified