Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello everyone

All I want to do is get a msgbox to show on my vb.net application that contains the message that the arduino leonardo sent via serial.

arduino code:

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.write("Hello");
}

I've heard that you have to do something different with the Leonardo in particular about the handshaking process. :/
Does anyone know of a vb.net code that i can use?

Thanks
Posted

1 solution

With aruduino, I am pretty sure you need to use the Serial.writeLN("Hello") Command.

and in vb.net you need to find out what comport your arduino is connected to.

then you csn set up a comport connection with serialPort and use that to communicate to the arduino.

here is a link with some serial comunication instructions for vb.net
Link to serial communications

Here is one for the Arduino side. LINK
 
Share this answer
 
Comments
[no name] 11-Aug-13 13:01pm    
The arduino link was no help at all, the Com port is COM3. Baud rate=9600. But what vb.net code do i use that works with the LEONARDO? it's different to other arduinos.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900