New Project


Arduino Making Robot Control Console Program

  • Page Views 926
  • Spread the love

    I will tell the program to redirect production console with various functions of the robot.We will control the robot wirelessly communicate via computer with the visual basic Arduino.

    Tools Required to our form:

    • 13 x Button
    • 2 xcombobox
    • 1 x TextBox
    • 1 x GroupBox
    • 1 x SerialPort

    Part of our Form Design:

    You can design in this way.

    The software portion of the form:

    • First, we add to the system library.
    'System Libraries
    Imports System.IO
    Imports System
    Imports System.ComponentModel
    Imports System.Threading
    Imports System.IO.Ports
    • We are adding to the loader section of the form serial port and baud rate values.
    'Partial Load
    myport = ıo.ports.serialport.getportnames ()
    Combobox2.ıtems.add (9600)
    Combobox2.ıtems.add (19200)
    Combobox2.ıtems.add (38400)
    Combobox2.ıtems.add (57600)
    Combobox2.ıtems.add (115200)
    For i = 0 To UBound (myport)
    Combobox1.ıtems.add (myport (i))
    Combobox1.text = combobox1.ıtems.ıte (0)
    Combobox2.text = combobox2.ıtems.ıte (0)
    Button12.enabled = False
    • We define the serial port object.
    Dim myPort As Array
    Delegate Sub SetTextCallback(ByVal As String)
    Shared _continue As Boolean
    Shared _serialPort As SerialPort
    • Connect Button

    Let’s connect button to define the task of the port.

    SerialPort1.PortName = ComboBox1.Text
    SerialPort1.BaudRate = ComboBox2.Text
    SerialPort1.Parity = IO.Ports.Parity.None
    SerialPort1.StopBits = IO.Ports.StopBits.One
    SerialPort1.DataBits = 8
    Button13.Enabled = False
    Button12.Enabled = True
    • Disconnect Buton

    Let us define the disconnect button to terminate the connection with the robot.

    Button13.Enabled = True
    Button12.Enabled = False
    • Serial Port ComboBox

    Let us define the ComboBox to see one of the open ports.

    If SerialPort1.IsOpen = False Then
    SerialPort1.PortName = ComboBox1.Text
    MsgBox(“It will not be changed while port open!”, vbCritical)
    End If
    • Baudrate ComboBox

    Let us define the ComboBox other to set the Baud Rate for our values.

    If SerialPort1.IsOpen = False Then
    SerialPort1.BaudRate = ComboBox2.Text
    MsgBox(“It will not be changed while port open!”, vbCritical)
    End If
    • Directional buttons

    We are doing our definition of the direction buttons.

    A value different from each serial port will send button we press the button. For example we press the forward button one value, you send two values we press the back button. Let us for example to define a button.


    Here, we print the value 2 serial ports.
    Other buttons will need to değerinideğiştirerek data only for identification.

    • Keyboard Key Assignments from

    Finally, it will be enough to change if you want to manage from your robot keyboard key priorities that part KeyDown the features section of the form true structure and the following description of the KeyDown of the form add these definitions is just a button içindir.dig button while the identification of button name and keyboard keys.

    If (e.KeyCode = Keys.A) Then
    Button1.BackColor = Color.Red
    TextBox1.Text = “Go Left”
    Button1.BackColor = Color.Yellow
    End If

    It also shows the status of the robot when the button is pressed, and we have done here in the definition to change the color of the button.


    One Comment For "Arduino Making Robot Control Console Program"

    Leave a comment

    Your email address will not be published. Required fields are marked *