Shop OBEX P1 Docs P2 Docs Learn Events
C# and Robotics Studio — Parallax Forums

C# and Robotics Studio

RICoderRICoder Posts: 91
edited 2009-01-11 08:11 in General Discussion
Using a Boe-Bot USB version.
Stamp Editor, Visual C# Express 2008 and Robotics Studio 2008 all installed.

I'm looking for a nudge in the right direction here. I love the bot and stamp editor is cool, but I'd honestly rather be using C# (or any C derivative as that is my preferred language and I want to develop both the bot and a desktop controller app). Anyhow, on to the point.

What I would like is some sample code either in C# or the VPL that programs the BS2 (say flips a pin to high for an LED).

I've been coding for 25 years in just about every language, so even the simplest sample will be enough to get me going. I did run the VPL and manage to add a BoEBot object which did something, but i have no idea what.

Any help would be greatly appreciated.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-01-10 22:33
    The stamp understands pbasic and that is what you use to program it. You can talk to the stamp over a serial connection and send instructions to do things like turn on an LED but you need to write the code on both ends. The stamp listens for serial input and then does something depending on what was sent and your PC program (written in the language of choice) sends data over the serial port to command the stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • RICoderRICoder Posts: 91
    edited 2009-01-10 22:39
    Don't take this the wrong way, but you are sure that is the case? If so, I'm failing to see the point of Robotics Studio, since that just makes it a glorified serial communication tool, which I could just as easily have written myself.

    Also, that being the case, I'm pretty much going to have to write an interpreter on the chip for different serial commands, which I suppose is pretty straight forward. Food for thought...more input would be great.
  • jmbertoncelli@USAjmbertoncelli@USA Posts: 48
    edited 2009-01-10 22:55
    Well, the idea with robotics studio is to use it for the robotic logic and of course the PBASIC code should be designed to execute command(s) received from MSRS and then feedback any kind of information collected by the BOE-BOT sensors, actuators,....· There is a book about MSRS that could help you to jump start at MS-Press.

    jm.
  • RICoderRICoder Posts: 91
    edited 2009-01-11 03:35
    I'm getting it now. I've spent a couple of hours reading around and such, and its starting to click. Maybe when I'm all done I'll put a simple, streamlined example together and post it someplace so no one else has to suffer.
  • RICoderRICoder Posts: 91
    edited 2009-01-11 04:45
    (check) STEP 1: Get the most recent version of MSRS (2008) - http://www.microsoft.com/downloads/details.aspx?familyid=84c5b49f-0f9c-4182-a267-a951328d3fbd&displaylang=en
    (check) STEP 2: Get some BS2 code for MSRS (don't bother searching parallax, you can't find it, maybe someone should fix that) - http://www.parallax.com/dl/src/prod/BluetoothControlledRobot.zip
    (I am here) STEP 3: In my case modify BoeBotControlForMsrsCtp2.bs2 to use USB (COM4)
  • RICoderRICoder Posts: 91
    edited 2009-01-11 08:11
    STEP 4: Dump robotics studio as it is way to complicated for what I want to do and write my own application. (I got it working in 20 minutes).

    I'm going to stop now, but I will make another post when I am done if anyone else is interested.
Sign In or Register to comment.