VB.net to Arduino via SerialPort

So I was doing my project using GSM shield for my arduino. And I want to use VB.net to send data to my arduino like who I want to message and my message contents.

This is my code for my Arduino.

Serial.begin(2400); //Baud rate of the GSM/GPRS Module Serial.print("\r"); delay(1000); Serial.print("AT+CMGF=1\r"); delay(1000); Serial.print("AT+CMGS=\"+63921xxxxxxx\"\r"); //Number to which you want to send the sms delay(1000); Serial.print("hello world - Arduino\r"); //The text of the message to be sent delay(1000); Serial.write(0x1A); delay(1000);

Can somebody help me on using VB interface and send commands to my Arduino via SerialPort. Please? Thanks.

The examples in Serial Input Basics should help point you in the right direction. The concept in the 3rd example would be the most reliable.

I am not familiar with VB but the general approach will need to be similar to the Python code in this Python - Arduino demo

…R

I have a couple of examples that may be useful:

Arduino and Visual Basic: Receiving Data From the Arduino

Arduino and Visual Basic: Controlling an Arduino