DHT11 + Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C#UWP [英] DHT11 + Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C# UWP

查看:106
本文介绍了DHT11 + Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C#UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是b $ b我需要使用C#UWP App阅读,DHT11 / DHT22传感器可以获得温度,而arduino可以连接到Arduino UNO。

我可以使用"digitalRead"吗?在传感器PIN码并使用C#库转换价值 

'ensals.dht'?或者我需要更改FirmataStandard草图以包含dht库并接收值"clean"&b

Hello,
I need to read with C# UWP App, a DHT11/DHT22 sensor to get temperature and the arduino is conected to an Arduino UNO.
Can I use "digitalRead" at sensor PIN and converte the values using C# library 
'sensors.dht'? Or I need to change the FirmataStandard sketch to include dht library and receive the values "cleaned"?

项目:Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C#UWP(VS2017)

Project: Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C# UWP (VS2017)

非常感谢!

推荐答案

您好,Michel

Hello, Michel

我认为您可以使用SerialPort直接连接Arduino UNO和Raspberry Pi 3。因为Raspberry Pi 3具有板载SerialPort。然后你可以参考GitHub上的官方示例项目:

I think you can directly connect Arduino UNO and Raspberry Pi 3 with SerialPort. Because Raspberry Pi 3 has on-board SerialPort. Then you can refer to the official sample project on GitHub:

https://developer.microsoft.com/en-us/windows/iot/samples/serialuart

此外,如果您使用原始操作系统Raspbian for Raspberry,你可以在GitHub上参考这个项目:

Furthermore, if you use the original OS Raspbian for Raspberry, you can refer to this project on GitHub:

https:// github.com/Azure/connectthedots/blob/master/GettingStarted.md

此项目使用与上述相同的硬件。

This project use the same hardware as you described above.


这篇关于DHT11 + Arduino UNO + Raspberry pi3 + Windows 10 iot Core + Windows Remote Arduino + C#UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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