Shop OBEX P1 Docs P2 Docs Learn Events
Really simple VB control of Boe-Bot or anything else. — Parallax Forums

Really simple VB control of Boe-Bot or anything else.

GeorgeLGeorgeL Posts: 131
edited 2008-11-30 06:42 in BASIC Stamp
Hey guys, so I finished my small app in visual basic·2008. It is a simple four button app where through a serial port (COM 1) it will move the Boe-Bot.
Attached is the code for the boe-bot, and an executable. The source is just the code, and needs the Form to be built by hand.
Try it out and enjoy.
NOTE: The exe has to be in the same folder as the 2 DLL's. Otherwise it wont work.
Just open the .bs2 file and upload.

Comments

  • GeorgeLGeorgeL Posts: 131
    edited 2008-11-29 02:25
    Anyone have any ideas for using the new Serial Port command on VB08? I used to use vb6 but this one is different...
  • DownsDowns Posts: 30
    edited 2008-11-29 03:58

    Private
    Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ··· SerialPort1.Open()

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

    ··· Dim MSG As String = TextBox1.Text

    ··· SerialPort1.WriteLine(MSG)

    End Sub

    Configure the SerialPort1 Control via the Properties Pane with the Port #, BaudeRate.......ect. This is just a little example of how the SerialPort control·is used

  • GeorgeLGeorgeL Posts: 131
    edited 2008-11-29 04:00
    Ill try that right now, thanks!
  • GeorgeLGeorgeL Posts: 131
    edited 2008-11-29 04:07
    Ok, Wonderful. It works now! I had to modify this line in the .bs2 file
    to "SERIN 16,16780,[noparse][[/noparse]Dir] "
    and in the code for the button is just SerialPort1.WriteLine(1) instead of declaring MSG, to remove confusion.
  • DownsDowns Posts: 30
    edited 2008-11-29 14:29
    Good [noparse]:)[/noparse]· Yeah, the MSG variable was just an example of sending·a String that·was in TextBox1 to the stamp.
  • GeorgeLGeorgeL Posts: 131
    edited 2008-11-30 06:42
    Back to using the MSCOMM but im adding a infrared detection system to it. WIll be back with more
Sign In or Register to comment.