ESP8266 + 墨水屏:打造桌面硬件监视器ESP8266 + ePaper: Creating a Desktop Hardware Monitor


AI free token/AI免费积分

本文来源:https://mp.weixin.qq.com/s/IotegPoYos78-Y4qzA84xg
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

一直以来都想搞一个桌面硬件监视器,能实时看到 CPU 温度、内存占用、硬盘活动这些信息,不用每次都切窗口看任务管理器。

墨水屏的长处很显著:功耗低、静态表明不耗电、看着舒服不刺眼。


代码已开源:https://gitee.com/nyit/temp-udp


拆解 & 改造

网上淘了几块二手的汉朔价签,2.13 寸黑白墨水屏,丝印型号:HINK-E0213A04

ESP8266 + 墨水屏:打造桌面硬件监视器

拆开外壳,把主控和蓝牙相关的电路芯片统统去掉,只保留墨水屏驱动部分。

ESP8266 + 墨水屏:打造桌面硬件监视器

飞线(图中绿圈那个引脚接 GND,四线 SPI 通信)。

ESP8266 + 墨水屏:打造桌面硬件监视器
ESP8266 + 墨水屏:打造桌面硬件监视器

涂上绿油绝缘保护。

ESP8266 + 墨水屏:打造桌面硬件监视器

焊接导线,固定好。

ESP8266 + 墨水屏:打造桌面硬件监视器
装上外壳,用302胶水粘牢,为了方便快速验证,先用 ESP8266 开发板来做测试。

接线

显示屏引脚 

ESP8266GPIO
SCLK
GPIO14
MOSI
GPIO13
CS
GPIO15
DC
GPIO4
RST
GPIO2
BUSY
GPIO5

墨水屏驱动使用了readguy 库。

PC 端

上位机用 C# WinForms 编写,逻辑很简单:


设备端固件

ESP8266 上电后的流程:

1. 自动连接已保存的 WiFi

2. 连接失败 → 自动进入 AP 配网模式(长按 IO0 键 3 秒也可进入配网页面)

3. 收到 UDP 数据后解析,表明到墨水屏

表明内容:

刷新逻辑:1.5 秒间隔,刷新后立即掉电,保持表明的同时几乎不耗电。

最终成效

ESP8266 + 墨水屏:打造桌面硬件监视器

放在表明器旁边,一抬眼就能看到电脑的运行状态,终于不用再切窗口了。

Source: https://mp.weixin.qq.com/s/IotegPoYos78-Y4qzA84xg If you have copyright issues, please contact: 13951431913#139.com or submit a comment on the right.

I've always wanted a desktop hardware monitor to see CPU temperature, memory usage, and disk activity in real-time without switching windows to task manager.

E-ink screens are great: low power, static display doesn't consume energy, and are easy on the eyes.

Code is open-source: https://gitee.com/nyit/temp-udp

Disassembly & Modification

I bought a couple of second-hand Hanshow price tags, 2.13-inch black-and-white e-ink displays, model: HINK-E0213A04

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

I opened the case and removed the main control and Bluetooth-related circuit chips, keeping only the e-ink driver section.

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

I jumpered (green circle indicates the pin connected to GND) for four-wire SPI communication.

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

I applied green sealant for insulation protection.

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

I soldered the wires and secured them.

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

I put the case back together and glued it with 302 adhesive. For quick verification, I'm using an ESP8266 development board.

Wiring

Display Pins

ESP8266 GPIO

SCLK

GPIO14

MOSI

GPIO13

CS

GPIO15

DC

GPIO4

RST

GPIO2

BUSY

GPIO5

The e-ink driver uses the readguy library.

PC Side

The upper computer is written in C# WinForms with simple logic:

Device Firmware

The ESP8266 flow upon power-up:

1. Automatically connects to the saved WiFi

2. If connection fails, it enters AP configuration mode (long press IO0 for 3 seconds also enters the configuration page)

3. Receives UDP data, parses it, and displays it on the e-ink screen

Display content:

Refresh logic: Interval of 1.5 seconds, cuts power immediately after refreshing to maintain the display with almost no energy consumption.

Final Result

ESP8266 + ePaper: Creating a Desktop Hardware Monitor

Placed next to the display, I can now see the computer's running status at a glance without switching windows.

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry