DIY 一个温湿度计

Spoony 66.9m2021-01-212268 次点击
ESP8266+OLED小屏幕+DHT11+DS18B20 防水温度探头。
未来给 AWTRIX 用上。

![5c2dba6d6fc35576e3f3e1a2ad196cf4.jpg](https://ppmm.org/images/2021/01/21/5c2dba6d6fc35576e3f3e1a2ad196cf4.jpg)
收藏 ♥ 感谢
RaspiSQH 120.9m 2021-01-21 
dht时间长了湿度漂移很严重,我的买了两年的湿度已经挂了😂

我在树莓派上接了个am2301,现在还很准确。
Spoony 小组长 2021-01-21 
又加了个 DS18B20 对比,感觉两个都不准。考虑换成 DHT22
RaspiSQH 120.9m 2021-01-21 
@Spoony 看上去挺暖和。
是micropython还是lua或c?

我这里有am2301记录的数据,有的时候有错误和缺漏。窗台上测的,实际温度比这个低。
http://echocraft.top/dht/
Spoony 小组长 2021-01-21 
@RaspiSQH C 实现的。
你是用树莓派?
Spoony 小组长 2021-01-21  ♥ 1
手工焊了半成品



RaspiSQH 120.9m 2021-01-21 
@Spoony 嗯,是树莓派
Spoony 小组长 2021-01-21 
@RaspiSQH 可以考虑改用这个树莓派 :)
https://talk.quwj.com/topic/2008
RaspiSQH 120.9m 2021-01-21 
@Spoony 233现在能用mcu的都在树莓派上,树莓派经常宕机
Spoony 小组长 2021-01-25  ♥ 1
换成 DHT22 对比了一下 DHT11,温度基本上一致。湿度数值与 DHT11 相差 3%。


DHT11 vs DHT22
We have two versions of DHT sensor, they look a bit similar and have the same pinout, but have different characteristics. Here are the specs:

DHT11

Good for 20-80% humidity readings with 5% accuracy Good for 0-50°C temperature readings ±2°C accuracy No more than 1 Hz sampling rate (once every second)

Ultra low cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Body size 15.5mm x 12mm x 5.5mm
4 pins with 0.1" spacing
DHT22

Good for 0-100% humidity readings with 2-5% accuracy Good for -40 to 125°C temperature readings ±0.5°C accuracy No more than 0.5 Hz sampling rate (once every 2 seconds)

Low cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Body size 15.1mm x 25mm x 7.7mm
4 pins with 0.1" spacing
As you can see, the DHT22 is a little more accurate and good over a slightly larger range. Both use a single digital pin and are 'sluggish' in that you can't query them more than once every second (DHT11) or two (DHT22).
Spoony 小组长 2021-01-29 
外壳打样出来了。才发现 OLED 屏幕尺寸是 1.3 寸的,买小了。还是太年轻啊。
又重新订购屏幕,要是在广东就好了,搞硬件研发周期可以成倍缩小。

RaspiSQH 120.9m 2021-01-29 
@Spoony 店里面没有吗?
Spoony 小组长 2021-01-29 
@RaspiSQH 没有实体店,电子荒漠
RaspiSQH 120.9m 2021-01-30 
@Spoony 啥时候基金会在大陆开点店就好了

登录注册 后可回复。