覆盆子PI光敏电阻 [英] Raspberry PI Photoresistor

查看:170
本文介绍了覆盆子PI光敏电阻的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以给我一些代码,根据光敏电阻是否检测到光线的变化来设置一些文字?在物联网方面我真的很陌生。我正在使用visual studio。我似乎找不到除Python以外的任何东西。

Can someone give me some code that will set some text based on if a photoresistor senses a change in light? I am really new to this on the IoT side. I am using visual studio. I can't seem to find any other than Python.

推荐答案

你好rlawrimore,

Hello rlawrimore,

如果你的 光敏电阻模块具有模拟输出,您可能需要在传感器模块和Raspberry Pi之间连接ADC模块。 ADC模块将模拟输出转换为数字信号,以便Raspberry Pi可以接收和处理它。

If your photoresistor module has analog output you may need a ADC module connect between the sensor module and Raspberry Pi. ADC module convert analog output to digital signal so that Raspberry Pi can receive and handle it.

如果您的光敏电阻模块支持GPIO,SPI,I2C等数字输出,您可以连接  ;您的光敏电阻模块直接连接到Raspberry Pi。 Windows IoT Core支持以上界面开箱即用。您可以轻松控制
设备。

If your photoresistor module support digital output like GPIO, SPI, I2C etc. You can connect the your photoresistor module directly to the Raspberry Pi. Windows IoT Core support above interface out of box. You can easily control your device.

对于某些相关示例(控制设备和更新UI),您可以参考  ms-iot/adafruitsample 和  Windows-iotcore-samples

For some related sample (control device and update UI) for you get started you can refer to ms-iot/adafruitsample and Windows-iotcore-samples.

如果有帮助请告诉我。

Bests问候,

Rita


这篇关于覆盆子PI光敏电阻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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