小编Bha*_*dra的帖子

用于DHT 11温度传感器的Python GPIO代码在PI 2中失败

我正面临着使用Python2.7 GPIO 0.5.11在PI 2中运行DHT 11温度传感器的问题.我指的是http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ 示例代码.

相同的代码在PI 1 B +上正常工作.在PI 2中,我将"ERR_RANGE"视为错误.我试过调试问题好像数据读取@ GPIO引脚4需要增加.

将数据读取值增加到2000后,返回的温度和湿度值始终为255.有没有人遇到过这个问题,请帮我解决问题.

谢谢,Bharadvaj

python-2.7 raspberry-pi raspberry-pi2

7
推荐指数
2
解决办法
4万
查看次数

标签 统计

python-2.7 ×1

raspberry-pi ×1

raspberry-pi2 ×1