arduino和visual basic之间的沟通 [英] communication between arduino and visual basic

查看:81
本文介绍了arduino和visual basic之间的沟通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的应用程序中的
我需要在vb中构建gui,其中每当led变高时都应该在vb中看到。

有人可以帮我解释一下代码对于相同的ai我是编码的新手。

谢谢

hi
in my application i need to build gui in vb wherein whenever led goes high it should be seen in vb.
can somebody please help me with the code for the same a i am new to coding.
thanks

推荐答案

没有人会为你编写代码。



您正在为此撰写两份申请。一个用于Arduino,一个用于PC。两者将通过串口进行通信。 Arduino必须通过串行连接将其状态数据发送到PC。然后,PC必须侦听该数据并解析它获得的数据,并更新为该状态提供的任何显示。



说真的,如果你是编程新手为微控制器编写代码不是学习的方法。学习如何首先编写代码,在PC上编写小应用程序等等。稍后转向微控制器,因为您将为编写该代码添加几层复杂性。
Nobody is going to write your code for you.

You're writing two applications for this. One for the Arduino and one for the PC. The two are going to communicate over a serial port. The Arduino has to send its state data over the serial connection to the PC. The PC then has to listen for that data and parse the data it gets and updating whatever display you provide for that state.

Seriously, if you're new to programming, writing code for a microcontroller is NOT the way to learn. Learn how to write code first, small applications on the PC and whatnot. Move to microcontrollers later because you're going to be adding a couple layers of complexity to writing that code.


这篇关于arduino和visual basic之间的沟通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆