如何使用串行端口从Kinect的信息发送到Arduino的? [英] How to use the serial port to send information from kinect to arduino?

查看:290
本文介绍了如何使用串行端口从Kinect的信息发送到Arduino的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拨弄与周围的Kinect的SDK和Arduino的,我已经看过了网络上找到一种方法,从Kinect的信息传递到Arduino。我只是想传递一些非常简单的信息(即,如果Kinect的识别手势,Arduino的做到这一点),我发现人们谈论使用串口做到这一点。我看了看文档和人民code,但我很新的C#和并不真正了解串行端口是如何工作的。我有Kinect的为Windows v1和我试图将信息传递给一个botboarduino。如果有人可以解释如何设置串行端口,这将大大AP preciated!

I have fiddled around with the Kinect SDK and arduino, and I have looked around the web to find a way to pass information from the Kinect to the arduino. I'm only trying to pass some very simple information (i.e. if the kinect recognizes a hand gesture, the arduino do this) and I have found people talking about using the serial port to do this. I looked at the documentations and people's code, but I'm very new to C# and don't really understand how the serial port works. I have the Kinect for Windows v1 and am trying to pass information to a botboarduino. If someone can explain how to set up the serial ports that would be greatly appreciated!

PS。我在Visual Studio中工作了2015年社会对Kinect和在Arduino的IDE,用于Arduino的。

PS. I have been working in Visual Studio 2015 community for the Kinect and in the Arduino IDE for the arduino.

推荐答案

这个例子部分: https://msdn.microsoft.com/en-us/library/system.io.ports .serialport(v = vs.110)的.aspx MSDN页面提供了所有您需要获得串口起来,并在数据分析的功能。当然,你需要你的串行口打开,将设定在Arduino的正确校验结束接收要发送和处理它所需的数据 - 但也有足够多这样的例子

The examples section of this: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx MSDN page offers all the functions you require to get the serial port up, and parse in data. You'll of course need your Serial port open, set to the correct parity on the Arduino end to receive the desired data you want to send and process it - but there are more than enough examples of that.

这篇关于如何使用串行端口从Kinect的信息发送到Arduino的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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