Update README.md for EPD42 project details and links

This commit is contained in:
Peter
2025-01-08 18:04:54 +08:00
parent 532d1ac8da
commit cbc0ec9ddb
4 changed files with 108 additions and 29 deletions

7
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"spellright.language": [],
"spellright.documentTypes": [
"latex",
"plaintext"
]
}

View File

@@ -1,55 +1,58 @@
# EPD-nRF51
# EPD42
4.2 寸电子墨水屏固件,带有一个[网页版上位机](https://tsl0922.github.io/EPD-nRF51/),可以通过蓝牙传输图像到墨水屏。
[English](README_EN.md)
4.2 寸电子墨水屏固件,带有一个[网页版上位机](https://pengwon.github.io/epd42/),可以通过蓝牙传输图像到墨水屏。
理论上支持所有 nRF51 系列 MCU内置 3 个微雪 4.2 寸墨水屏驱动(可切换),同时还支持自定义墨水屏到 MCU 的引脚映射支持睡眠唤醒NFC / 无线充电器)。
## 支持设备
- 老五 4.2 寸价签,黑白双色版本
硬件是对电商平台上4.2寸墨水屏价签hack而来可以[点此购买](https://item.taobao.com/item.htm?ft=t&id=874071462547),支持黑白双色和黑白红三色两种版本
```
MCUnRF51822
RAM16K
ROM128K
- 黑白双色版本
驱动UC8176 (EPD_4in2)
屏幕引脚0508090A0B0C0D
线圈引脚07
```
```
MCUnRF51822
RAM16K
ROM128K
![](html/images/1.jpg)
驱动UC8176 (EPD_4in2)
屏幕引脚0508090A0B0C0D
线圈引脚07
```
- 老五 4.2 寸价签,黑白红三色版本
![](html/images/1.jpg)
```
MCUnRF51802
RAM16K
ROM256K
- 黑白红三色版本
驱动UC8276C (EPD_4in2b_V2)
屏幕引脚0A0B0C0D0E0F10
线圈引脚09
LED引脚03/04/05 (有三个 LED任选一个使用
```
```
MCUnRF51802
RAM16K
ROM256K
![](html/images/2.jpg)
驱动UC8276C (EPD_4in2b_V2)
屏幕引脚0A0B0C0D0E0F10
线圈引脚09
LED引脚03/04/05 (有三个 LED任选一个使用
```
![](html/images/2.jpg)
默认驱动和引脚映射为黑白双色版本,其它版本需要切换驱动并修改引脚映射。
## 上位机
地址https://tsl0922.github.io/EPD-nRF51/
地址https://pengwon.github.io/epd42/
![](html/images/0.jpg)
本项目自带一个基于浏览器蓝牙接口实现的网页版上位机,可通过上面网址访问,或者在本地直接双击打开 `html/index.html` 来使用
扫描上方二维码加入微信群,获取更多信息
## 开发
> **注意:**
> - 必须使用 [Keil 5.36](https://img.anfulai.cn/bbs/96992/MDK536.EXE) 或以下版本nRF51 SDK 只支持 V5 版本的 ARM 编译器,从 5.37 版本开始 Keil 已经不再内置 V5 版本编译器。
> - `sdk10` 分支为旧版 SDK 代码归档(不再维护),好处是蓝牙协议栈占用的空间小一些,对于小 ROM 芯片友好一点点。
> - 必须使用 [Keil 5.36](https://img.anfulai.cn/bbs/96992/MDK536.EXE) 或以下版本nRF51 SDK 只支持 V5 版本的 ARM 编译器,从 5.37 版本开始 Keil 已经不再内置 V5 版本编译器,需要手动安装
项目配置有几个 `Target`
@@ -69,5 +72,4 @@
## 致谢
- 屏幕驱动代码来自微雪 [E-Paper Shield](https://www.waveshare.net/wiki/E-Paper_Shield)
- 网页版上位机代码来自 [atc1441/ATC_TLSR_Paper](https://github.com/atc1441/ATC_TLSR_Paper)
- 本项目基于 [EPD-nRF51](https://github.com/tsl0922/EPD-nRF51) 分叉而来,感谢原作者的分享和贡献。

70
README_EN.md Normal file
View File

@@ -0,0 +1,70 @@
# EPD42
[中文](README.md)
4.2 inch e-ink screen firmware with a [web-based upper computer](https://pengwon.github.io/epd42/) that can transfer images to the e-ink screen via Bluetooth.
Theoretically supports all nRF51 series MCUs, built-in 3 micro-snow 4.2 inch e-ink screen drivers (switchable), also supports custom e-ink screen to MCU pin mapping, supports sleep wake-up (NFC / wireless charger).
## Supported Devices
The hardware is hacked from a 4.2 inch e-ink price tag available on e-commerce platforms, you can [click here to buy](https://item.taobao.com/item.htm?ft=t&id=874071462547), supports both black and white dual-color and black, white, and red tri-color versions.
- Black and White Dual-Color Version
```
MCU: nRF51822
RAM: 16K
ROM: 128K
Driver: UC8176 (EPD_4in2)
Screen Pins: 0508090A0B0C0D
Coil Pins: 07
```
![](html/images/1.jpg)
- Black, White, and Red Tri-Color Version
```
MCU: nRF51802
RAM: 16K
ROM: 256K
Driver: UC8276C (EPD_4in2b_V2)
Screen Pins: 0A0B0C0D0E0F10
Coil Pins: 09
LED Pins: 03/04/05 (three LEDs, any one can be used)
```
![](html/images/2.jpg)
The default driver and pin mapping are for the black and white dual-color version, other versions need to switch drivers and modify pin mapping.
## Upper Computer
Address: https://pengwon.github.io/epd42/
![](html/images/0.jpg)
Scan the QR code above to join the WeChat group for more information.
## Compilation Targets
- `nRF51822_xxAB`: Used to compile nRF51822 firmware, with built-in black and white dual-color version configuration
- `nRF51802_xxAA`: Used to compile nRF51802 firmware, with built-in black, white, and red tri-color version configuration
- `flash_softdevice` Target: Used to flash the Bluetooth protocol stack (only needs to be flashed once)
You can use J-Link or DAPLink as the programmer (you can use [RTTView](https://github.com/XIVN1987/RTTView) to view RTT logs).
**Flashing Process:**
> If you do not modify the code, it is recommended to download the binary firmware from [Releases](https://github.com/tsl0922/EPD-nRF51/releases) for immediate use.
1. Erase all (if Keil cannot erase, try using the programmer's upper computer software to erase)
2. Switch to the `flash_softdevice` Target corresponding to the MCU, **do not compile, just download** (only needs to be flashed once)
3. Switch to the Target corresponding to the MCU, compile first, then download
## Acknowledgements
- This project is forked from [EPD-nRF51](https://github.com/tsl0922/EPD-nRF51), thanks to the original author for sharing and contributing.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 454 KiB