
ESP32 与 ESP8266
基于 Inkplate 10 和 ESP32 打造的触摸屏电子墨水智能家居仪表盘
先列购物清单,因为这份清单很短。一块 Soldered 出品的 Inkplate 10(9.7 英寸电子纸,1200 x 825 像素,板载 ESP32,约 140 美元),一块用于安卓车载主机的 9.7 英寸替换电容触摸屏(在速卖通上约 30 美元),一块用于屏幕柔性排线的转接板,以及一台你网络上已有的 Home Assistant 服务器。这就是 YouTube 博主 GreatScott! 打造的这款桌面仪表盘的全部物料清单,而且其中任何一样都不需要回流焊炉。
他做了什么
满屋子的智能设备,到头来还是得掏出手机才能关上百叶窗。由于 GreatScott! 一天中大部分时间都坐在显示器前,他干脆把控制界面放在了显示器旁边。他之前制作的电子墨水家庭日历(可显示七天日程)让他爱上了这种纸张般的外观和近乎为零的待机功耗,所以这次他想要一块真正能用手点的屏幕。这个仪表盘有三个页面:传感器读数加上灯光、卷帘和恒温器的按钮;家庭用电量、太阳能发电量和电池状态;以及即将到来的日历事件。显示器上一个空闲的 USB 接口为整套装置供电,因此桌下不需要再多加一个电源适配器。
技术细节
触控输入:这款车载导航触摸屏有自己的控制器,通过 I2C 通信。将转接板上的 SDA、SCL、3.3 V 和 GND 接到 ESP32,轮询控制器就能得到 X/Y 坐标。难点在于排线的间距(pitch);如果不用转接板,你就无法获得可靠的焊点。
显示屏:一块便宜的裸露电子墨水屏用起来不太稳定,于是他换成了 Inkplate 10,它把 ESP32、电源管理、SD 卡槽和 GPIO 扩展器都集成在一个 Arduino 库背后。局部刷新是关键;该库只重绘发生变化的区域,因此一个新的传感器数值不会触发整块 9.7 英寸屏幕长达 1 秒的闪烁。
与 Home Assistant 的连接:双向 MQTT。ESP32 订阅每个实体的状态主题(state topic),并在你轻点按钮时向命令主题(command topic)发布消息,这样 Home Assistant 始终是唯一的数据源。
布局代码:他没有手工计算每个方框的像素坐标,而是让一个 AI 助手生成绘图例程和相应的触控区域。
外壳:一个 3D 打印的夹层结构将屏幕和电路板固定在一起,再用一根铝扁条把它挂到显示器上。
为什么电子墨水在这里很合适
电子纸不适合任何需要动画的场景;一次全屏刷新要将近一秒。而智能家居面板恰恰相反:同样的数字会停留好几分钟,偶尔一个数值变化,然后又归于平静——这正是局部刷新和微瓦级待机电流大显身手的地方。如果想要一个毕业论文预算版本,Inkplate 6(800 x 600)加上一块 6 英寸触摸屏更便宜,而 MQTT 技术栈完全相同。可以在 GreatScott! 的视频中观看完整制作过程;在画任何一个按钮之前,先让原始触控坐标以 115200 波特率通过串口打印出来。
常见问题
通过双向 MQTT。Inkplate 10 上的 ESP32 订阅 Home Assistant 的状态主题以刷新传感器数值,并在你轻点按钮时向命令主题发布消息,因此灯光、百叶窗和恒温器都能响应,而无需在 Home Assistant 端做任何自定义集成。
一块 Inkplate 10(9.7 英寸,1200 x 825 电子纸,带 ESP32、电源管理和 SD 卡槽,约 140 美元),一块作为安卓车载主机替换件出售的 9.7 英寸电容触摸屏(约 30 美元),一块用于其排线的转接板,以及一根用于供电的 USB 线。3D 打印外壳和一根铝扁条为可选配件,用于安装固定。
读取 I2C 触控控制器并将原始坐标映射到屏幕上的按钮,驱动电子纸显示屏实现局部刷新以保持快速更新,构建与 Home Assistant 的双向 MQTT 连接,以及用 Arduino 代码设计多页面 UI。这是一个很棒的物联网毕业设计项目,因为它将传感、用户输入、联网和低功耗显示技术整合在一台设备中。
本文来源:https://blog.circuit.rocks/touchscreen-e-ink-smart-home-dashboard-built-on-inkplate-10-and-esp32
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

ESP32 & ESP8266
Touchscreen E Ink Smart Home Dashboard Built on Inkplate 10 and ESP32
Shopping list first, because this one is short. An Inkplate 10 from Soldered (9.7-inch e-paper, 1200 x 825 pixels, ESP32 on board, roughly $140), a replacement 9.7-inch capacitive touch panel meant for Android car head units (about $30 on AliExpress), a breakout board for the panel’s flexible ribbon cable, and a Home Assistant server already on your network. That is the full bill of materials for the desk-side dashboard YouTuber GreatScott! put together, and none of it needs a reflow oven.
What he built
A house full of smart devices still means pulling out a phone to close the blinds. Since GreatScott! sits at a monitor most of the day, he parked the controls beside it. His earlier E Ink family calendar (seven days of events) sold him on the paper look and near-zero idle power, so this time he wanted a panel he could actually poke. The dashboard has three pages: sensor readings plus buttons for lights, roller blinds and the thermostat; household energy use, solar production and battery state; and upcoming calendar events. A spare USB port on the monitor powers the whole thing, so no extra wall wart under the desk.
The technical bits
Touch input: the car-navigation touch panel has its own controller that talks I2C. Wire SDA, SCL, 3.3 V and GND from the breakout to the ESP32 , poll the controller, and you get X/Y coordinates back. The gotcha is the ribbon cable pitch; skip the breakout and you will not get a reliable solder joint.
Display: a cheap bare E Ink panel turned out to be flaky, so he moved to the Inkplate 10, which bundles the ESP32 , power management, an SD slot and a GPIO expander behind one Arduino library. Partial refresh is the key call; the library redraws only the changed region, so a new sensor value does not trigger a full 1-second flash of the 9.7-inch screen.
Home Assistant link: MQTT in both directions. The ESP32 subscribes to state topics for each entity and publishes to command topics when you tap a button, so Home Assistant stays the single source of truth.
Layout code: instead of hand-computing pixel coordinates for every box, he had an AI assistant generate the drawing routines and matching touch regions.
Enclosure: a 3D-printed sandwich holds panel and board, and an aluminium flat bar hooks it onto the monitor.
Why E Ink makes sense here
E-paper is a bad fit for anything animated; a full refresh takes close to a second. A smart home panel is the opposite case: the same numbers sit for minutes, one value changes, then it goes quiet again, which is where partial refresh and microwatt idle current shine. For a thesis-budget version, an Inkplate 6 (800 x 600) plus a 6-inch touch panel costs less and the MQTT stack is identical. Watch the full build at GreatScott!’s video , and start by getting raw touch coordinates printing over Serial at 115200 baud before you draw a single button.
Frequently Asked Questions
Over MQTT in both directions. The ESP32 on the Inkplate 10 subscribes to Home Assistant state topics to refresh sensor values and publishes to command topics when you tap a button, so lights, blinds and the thermostat respond without any custom integration on the Home Assistant side.
An Inkplate 10 (9.7-inch, 1200 x 825 e-paper with ESP32 , power management and SD slot, around $140), a 9.7-inch capacitive touch panel sold as a replacement for Android car head units (about $30), a breakout board for its ribbon cable, and a USB cable for power. A 3D-printed enclosure and a strip of aluminium flat bar are optional for mounting.
Reading an I2C touch controller and mapping raw coordinates to on-screen buttons, driving an e-paper display with partial refresh so updates stay fast, structuring a two-way MQTT link to Home Assistant, and designing a multi-page UI in Arduino code. It is a strong IoT capstone because it combines sensing, user input, networking and low-power display tech in one device.
本文来源:https://blog.circuit.rocks/touchscreen-e-ink-smart-home-dashboard-built-on-inkplate-10-and-esp32
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。