Arduino uno and VB.NET

Hi, I hope someone could help me. I'm very new to arduino and I'm trying to make a project using it along with VB.net. So this is my problem, I can't use both arduino and vb.net at the same time. What I want to do is when I run the vb.net I want to input some words to textbox, example "my first project to arduino". and after I clicked the button the input will automatically send to arduino. I want to view the output on the arduino IDE to the serial monitor. But like what I said I can't opened both. If ever I closed the vb.net there will be no output to the serial monitor.

Is it possible to connect them both using serial port or any other way to connect them ?

A long time ago I used C# to communicate with the Arduino via the Serial port object in VS.:

  • private System.IO.Ports.SerialPort serialPort1;*

I can't find the code right now, but I remember that the Arduino COM port needed to be closed, the message sent from VS, closing the port when done sending, and the usual Serial.available() call on the Arduino. This kinda suggests that the message being sent cannot be longer that the Arduino Serial buffer. Not much help, but a little Google time and the SerialPort keyword should produce some help.

Thanks for the help. :slight_smile:

Only one program can access the serial port at a time, there is no way around that.

Why don't you add another textbox in your vb application that shows the reply from the arduino?

thanks for the suggestion. you gave me an idea on how I will get response on arduino.

I want to view the output on the arduino IDE

You can't do that. The IDE does not read from the serial port. The Serial Monitor application does, but that is NOT the IDE.

Since you know that VB can write to the serial port, you are surely aware that it can read from the serial port, meaning that you do not need to use the Serial Monitor app.