# 天气墨水屏 **Repository Path**: csecong/weather-ink-screen ## Basic Information - **Project Name**: 天气墨水屏 - **Description**: ESP8266多功能墨水屏,arduino开发,天气 时钟 阅读 配网 - **Primary Language**: C - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 275 - **Created**: 2021-09-03 - **Last Updated**: 2021-09-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 请勿用于大规模商业用途,禁止售卖资料! ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/V12-3.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/V12-4.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/V12-0.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/V12-1.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/V12-2.jpg) ## 4大功能已经完成 [点击下载](https://gitee.com/Lichengjiez/weather-ink-screen/releases) ## 前置光版本完成!开源PCB项目链接[https://oshwhub.com/jie326513988/tian-qi-mo-shui-ping](https://oshwhub.com/jie326513988/tian-qi-mo-shui-ping) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/qzg1.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/qzg3.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/qzg4.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/fhqzg.jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/fh.jpg) ### 介绍 * 默认支持2.9寸墨水屏,代号029A01
* 如需其他同尺寸的屏幕,请留言
* 观看视频:[https://www.bilibili.com/video/BV1e64y1Q7mA](https://www.bilibili.com/video/BV1e64y1Q7mA) * 使用Arduino开发,使用到的库GxEPD2、U8g2_for_Adafruit_GFX、NTPClient、ArduinoJson、ESP_EEPROM。
* 使用心知天气个人免费版KEY(20次/分钟),需要自己去申请,然后在配网界面输入即可。
* 提供适合3D打印的外壳文件
* 休眠电流0.08ma,工作电流120-70ma,瞬态电流500ma * 硬件使用[DUCK的天气墨水屏项目](http://oshwhub.com/duck/esp8266-weather-station-epaper)。
* 改良版硬件,地址 [https://oshwhub.com/HalfSweet/29-EPaper-Thermo-hygrometer](https://oshwhub.com/HalfSweet/29-EPaper-Thermo-hygrometer) (有BUG待修复) ### 功能简介 * 天气模式 * 天气实况、未来2天天气 * 紫外线强度、室外环境湿度、风力等级 * 中间显示一句话,网络获取或自定义 * 电量显示,电压或百分比 * 室内温湿度显示(需硬件支持sht30芯片) * 可选夜间不更新 * 阅读模式 * 多达2.8mb的使用空间,最多可存3本书 * 使用索引方式,准确计算页数,可任意跳转,无限上一页 * 记忆功能,自动恢复上一次看的书籍和页数 * 电量显示 * 时钟模式 * 超大数字显示,不必眼瞎 * 可调详尽显示或极简模式 * 每10分钟校准一次,无网则使用离线模式,但每天24点会强制联网 * 配网模式 * 自动、手动选择配置网络 * 配置天气KEY和城市 * 上传文件 * 文件管理器 * 设置自定义图片 * 丰富的设置项 * 屏幕实时消息回传提示,网络状况尽在掌握 * 预留OTA接口 * 自定义图片模式 * 显示自定义的bmp图片,需到配网-文件管理器启用 * 所有模式下低电量会提示并永久休眠,小于等于3.2V ### 按键操作逻辑 * 按住按键3不放,再短按一下复位按键,即可进入模式选择界面(按键3-GPIO5 按键2-GPIO0) * 所有界面的按键操作逻辑为: * a.单独短按为切换选项 * b.组合按键为确认操作或调出菜单:先按着按键3不放,再短按一下按键2,此时要释放按键3才会生效(已改所有界面统一) * 按键2不可按得太频繁,不能在屏幕刷新的时候按,会导致屏幕死机,原因是按键2与屏幕刷新共用一个io口 ### 注意事项,请耐心看完 * 观看视频 [https://www.bilibili.com/video/BV1kQ4y1d7Jj](https://www.bilibili.com/video/BV1kQ4y1d7Jj) * 原版U8g2_for_Adafruit_GFX库无法使用大字库,故更改了库,自行到码云或群里下载 * 其他库均可在库管理器下载的到 * 无法连接wifi可能是被路由器拉黑或网络差,天线附近需要净空不能有飞线,电池挡住天线也可能会有影响 * 无法获取天气信息请检查城市名是否填对,免费用户只能查看到地级市 * 误低压休眠的请检查电池测量电路是否正常,电池电压是否大于3.2V(搭板的玩家自己给A0加上分压电路接上5V,分压后不能超过1V,否则烧ADC) * 如原版的MOS管(排线附近)使用起来有问题可用cj3400代替,LDO使用ME6209A33PG代替 * 如无法连接8266的热点或无法打开配网页,请检查手机是否开启了智能选网模式 * ~~电压低于3.45V的时候上传文件和需要扫描周边网络模式的有机会卡死~~ 使用我的硬件电压低至3.3V仍然可以进行网络操作 * 电池可以用:902030-500mah,603759-1400mah(过大可能会影响天线信号) ### 使用到的库 * [GxEPD2](https://github.com/ZinggJM/GxEPD2),[该库适配大多数大连佳显屏幕](https://goodlcd.taobao.com/shop/view_shop.htm?spm=a230r.1.14.39.7a293567D3cz3Y&user_number_id=151859855) * [U8g2_for_Adafruit_GFX](https://github.com/olikraus/U8g2_for_Adafruit_GFX) * [ArduinoJson](https://github.com/bblanchon/ArduinoJson) * [NTPClient](https://github.com/arduino-libraries/NTPClient) * [ESP_EEPROM](https://github.com/jwrw/ESP_EEPROM) * [ClosedCube_SHT31D](https://github.com/closedcube/ClosedCube_SHT31D_Arduino) ### 已知BUG * 开机载入数据有小几率会重启系统,EXCCAUSE Code(3),加载或存储期间的处理器内部物理地址或数据错误? * 在配网页面连接无效的的WIFI会卡一段时间,有相应提示。可能是硬件问题,无法同时进行STA和AP的收发?等待提示连接失败即可操作其他。 * ~~电压低(小于3.45V?)会导致上传文件、扫描周边网络时卡死。~~ 使用我的硬件电压低至3.3V仍然可以进行网络操作 * 进入配网模式有几率重启,多试几次就好。 ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/%E7%83%A7%E5%BD%95%E8%AF%B4%E6%98%8E.png) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/peizhi.png) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/wenjianguanliqi.jpeg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/pw%20(1).jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/pw%20(2).jpg) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/%E7%94%B5%E9%87%8F%E6%B6%88%E8%80%97%E8%AE%A1%E7%AE%97%E8%A1%A8.png) ![](https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/qzg2.jpg)