简体   繁体   English

如何通过串行端口将字符串输入从Visual Basic发送到Arduino?

[英]How to send string input from Visual Basic to Arduino over serial port?

I'm trying to get a string input received in Visual Basic to print out on an LCD monitor on my Arduino. 我试图在Visual Basic中接收字符串输入以在Arduino的LCD监视器上打印出来。 I know I will need to the console.write function for VB, and the lcd.writeline for Arduino, but how do I send the string from Visual Baisc to the Arduino over a serial port? 我知道我需要VB的console.write函数和Arduino的lcd.writeline函数,但是如何通过串行端口将字符串从Visual Baisc发送到Arduino?

in vb2010 expres edition drag a com port on your project, configure a proper bautrate here a handy page http://tiktakx.wordpress.com/2010/11/21/serial-port-interfacing-with-vb-net-2010/ 在vb2010 expres版本中,将com端口拖到您的项目上,在此处方便的页面上配置适当的波特率http://tiktakx.wordpress.com/2010/11/21/serial-port-interface-with-vb-net-2010/

For arduino side use this reference check commands on the right side of the page here: http://arduino.cc/en/Reference/Serial 对于arduino端,请在此页面右侧使用此参考检查命令: http : //arduino.cc/en/Reference/Serial

You might as well join their forum you get excellent help there too. 您不妨加入他们的论坛,在那里也能获得出色的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM