项目作者: thanosa75

项目描述 :
ESP8266, e-Paper display and a DHT 11 sensor make a nice outdoors unit
高级语言: C
项目地址: git://github.com/thanosa75/dht11epaper.git
创建时间: 2018-12-27T15:57:17Z
项目社区:https://github.com/thanosa75/dht11epaper

开源协议:BSD 3-Clause "New" or "Revised" License

下载


dht11epaper

ESP8266, e-Paper display and a DHT 11 sensor make a nice outdoors unit
This simple DIY hack uses the following:

  • 1 x ESP8266 for the brains (WIFI disabled via deep sleep)
  • 1 x DHT11 (blue) for the temperature and humidity measurements
  • 1 x 1.54” e-Paper display from Waveshare
  • 3 x AA (1.5V) batteries for power-source

Strategy

To make this work for a long time (expected to last more than 1 yr) the e-Paper display is used only for a few seconds each time. The ESP boots up, starts the DHT library, reads (retry if necessary) the sensor to receive temperature and humidity. Finally, it powers on the e-Paper display and does 1 full write (required) and 1 partial write, drawing two rectangles and the temperature/humidity readings.

It then proceeds to go to deep sleep, making sure the wifi stays off next boot. Hopefully this will make it work.

Next steps

Use the ESP.getVcc() functionality to read available VCC and signal a low-battery case. Currently, the sensor can be seen operating every 15m by the screen refresh (not very user friendly.)