esp8266-weather-station-epaper-master

所属分类:其他
开发工具:C/C++
文件大小:2699KB
下载次数:5
上传日期:2018-10-25 15:05:48
上 传 者xieahaha
说明:  duck大佬的电子墨水屏天气站,充一次电能使用很久,代码基于arduino比较容易上手。
(Duk's electronic ink screen weather station, charged with a long time use of electricity, code based on Arduino is relatively easy to start.)

文件列表:
EPD_drive.cpp (23810, 2018-10-15)
EPD_drive.h (7073, 2018-10-15)
EPD_drive_gpio.cpp (407, 2018-10-15)
EPD_drive_gpio.h (802, 2018-10-15)
LICENSE (1067, 2018-10-15)
STL (0, 2018-10-15)
STL\后支架.SLDPRT (73271, 2018-10-15)
STL\后支架.STL (39684, 2018-10-15)
STL\按钮.SLDPRT (103524, 2018-10-15)
STL\按钮.STL (112884, 2018-10-15)
STL\电纸屏外壳-对称-方形.SLDPRT (219927, 2018-10-15)
STL\电纸屏外壳-对称-方形.STL (474184, 2018-10-15)
TimeClient.cpp (4472, 2018-10-15)
TimeClient.h (1783, 2018-10-15)
WeatherStation-epaper.ino (11109, 2018-10-15)
bitmaps.h (13719, 2018-10-15)
data (0, 2018-10-15)
data\font10 (5120, 2018-10-15)
data\font12 (1572864, 2018-10-15)
data\font32 (32768, 2018-10-15)
data\weathericon (30720, 2018-10-15)
data\weathericon32 (7680, 2018-10-15)
data\weathericon80 (48000, 2018-10-15)
heweather.cpp (6882, 2018-10-15)
heweather.h (1875, 2018-10-15)
heweatherparser.cpp (779, 2018-10-15)
heweatherparser.h (409, 2018-10-15)
lang.h (1577, 2018-10-15)
library (0, 2018-10-15)
library\WiFiManager (0, 2018-10-15)
library\WiFiManager\LICENSE (1073, 2018-10-15)
library\WiFiManager\WiFiManager.cpp (21171, 2018-10-15)
library\WiFiManager\WiFiManager.h (9109, 2018-10-15)
library\WiFiManager\examples (0, 2018-10-15)
library\WiFiManager\examples\AutoConnect (0, 2018-10-15)
library\WiFiManager\examples\AutoConnect\AutoConnect.ino (1180, 2018-10-15)
library\WiFiManager\examples\AutoConnectWithFSParameters (0, 2018-10-15)
... ...

# Esp8266-weather-station-epaper 中文版说明在这里http://mxlu.com/2017/07/06/esp8266%E7%94%B5%E7%BA%B8%E5%B1%8F%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5%E7%AB%99/ ## Changelog 2015/5/28 1.change voltage divder resistor form 1M and 300K to 300K and 100K.(R6,R7) 2.change the equation for battery voltage caculation 3.when battery voltage is lower than 3.4V, no more updating, warning on screen. You'd better calibrate the adc yourself. ADC on esp is not that accurate. ## Summary Esp8266 is programed to display weather forecast on 2.9inch e-paper. You can get a 2.9inch e-paper display in Waveshare's shop. Buy it on taobao.com if you are in ***. https://detail.tmall.com/item.htm?id=550690109675&spm=a1z09.2.0.0.nyL5N4&_u=q2skmgl30cb Esp8266 is in deep sleeping after update the weather forecast to save battery. ![](https://github.com/duck531a***/esp8266-weather-station-epaper/raw/master/pics/20170715_113425.jpg) ![](https://github.com/duck531a***/esp8266-weather-station-epaper/raw/master/pics/20170715_152231.jpg) ![](https://github.com/duck531a***/esp8266-weather-station-epaper/raw/master/pics/20170715_152306.jpg) ## BOM 1. 2.9inch e-paper from Waveshare 2. Nodemcu or Wemos or integrated PCB( gerber files in /PCB folder) 3. Li-Po battery 4. 3d printed case(STL files in /3d folder still in revising ) ## Uploading code to esp8266 Add esp8266 to boards manager in arduino ide. Follow this guide https://github.com/esp8266/Arduino#installing-with-boards-manager. Don't forget to upload font files. Follow this guide to upload font files to spiff meomory. https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html#uploading-files-to-file-system. ## Multi language support modify the language in lang.h There is Strings for Chinese and English already. You can add you own. Weahter data supports zh,en,de,es,fr,it,jp,kr,ru,in,th ## Connect esp8266 to display module BUSY---->gpio4 RST---->gpio2 DC---->gpio5 CS---->gpio15 CLK---->gpio14 DIN---->gpio13 Connect gpio16 to rst on esp8266 to wakeup esp8266 from deep sleeping with internal timer. There will be two versions of my pcb. One without epaper driving components and One with driving components. I'm still testing them to make sure they are reliable. Also Mike is making that board, too. ## Send message to weather station you can set a client name for your weather station in the program and send message to it (http://duckweather.tk/client.php). Useful to please girls. ## Font I developped this tool to generate your own font (unicode ucs-2) https://github.com/duck531a***/font-generator Since arduino ide is compiling the code to utf-8 charset. There is a internal function to convert utf-8 to unicode ucs-2. Display strings typed in to arduino ide with function DrawUTF. Font files should be uploaded into spiff memory of esp8266. A full unicode ucs-s font with 16x16 size will be 2MB. So if you don't need to display multi language, just convert ascii characters. ## Low power issues Since regulator AMS1117 and CP2102 have a quiescent current about several mA, so nodemcu is not suitable for battery powered. A low quiescent current LDO is needed. I'm testing HT7333 now, see how long could my board works with a 400mAh battery. Esp8266 consumes about 20-25uA in deep sleeping mode. ## Weather Forecast Data I'm using api from heweather.com. Because Esp8266 don't have enough RAM to handle HTTPS connection, so I build a website on 000webhost.com to transmit the data via HTTP. To reduce the consumption of the 3000 free requests per day, I build a cache, you will get the same returns in 20 mins. Highly recommend you to build your own website. I can't guarantee mine will works forever. You can find php files in /php folder. ## Thanks Thanks to Mike Daniel Fred. They led me into the world of esp8266. Thanks to their work on esp8266 weahter stations, wifi manager, json parser and so on. Thanks to Mike, for now he's the only one which I could share and ask for help about electronic stuffs.

近期下载者

相关文件


收藏者