
Gps carrier v0
PatrickWang7941/SpeedLimitTestESP32
基于 Waveshare ESP32-S3-LCD-2.8 与 Pico-GPS-L76K 的离线车速/限速显示器。使用原生 ESP-IDF,不使用 Arduino。

基于 Waveshare ESP32-S3-LCD-2.8 与 Pico-GPS-L76K 的离线车速/限速显示器。使用原生 ESP-IDF,不使用 Arduino。
Gps carrier v0 is an open-source printed circuit board by PatrickWang7941, from the PatrickWang7941/SpeedLimitTestESP32 repository on GitHub. It is a 2-layer board of 69 × 38 mm with 7 parts on 40 nets, routed with 26 tracks and 0 vias.
It belongs with the radio and wireless boards of this library.
基于 Waveshare ESP32-S3-LCD-2.8 与 Pico-GPS-L76K 的离线车速/限速显示器。使用原生 ESP-IDF,不使用 Arduino。
这是开发中的原型,不是经过认证的驾驶安全设备。限速数据可能缺失、过时或匹配到错误道路;以现场标志为准。调试和操作请在停车后进行。
| 路径 | 内容 |
|---|---|
outputs/road-speed-display-stage3/ | 当前固件入口;目录名保留为 stage3,内部包含后续阶段功能 |
outputs/road-speed-display-stage3/map_builder/ | PyOsmium 道路包、前方限速变化表、施工数据生成和校验工具 |
outputs/road-speed-display-stage1/、stage2/ | 早期版本,供历史参考,不是当前版本 |
hardware/road-speed-display-pcb-v0.3/ | 当前 KiCad 载板草稿、工程本地库及尺寸记录 |
hardware/road-speed-display-pcb-v0/ | 较早的载板草稿;文件夹名与内部版本编号不完全相同 |
work/ | 字体生成、坐标排版测试、地图诊断等辅助源码 |
snapshots/gps-coordinates/backup/ | 坐标状态栏修改前的源码片段,用作字库回归比较,不是独立可编译项目 |
本仓库是已有项目源码的整理快照,不含完整开发提交历史。原有子目录说明保留了部分历史阶段记录;当前状态以本页及实际源码为准。
GPS <纬度> <经度>,坐标采用度分秒格式、秒保留一位小数;无有效定位显示黄色 GPS NO DATA。--,有效定位且停留时为 00;正常车速为白色,超限速 5 mph 起为柔和红色、20 mph 起为鲜明红色。--,未知距离显示 IN -- MI。存在道路匹配、双向限速、SD 重试、前方变化表及施工数据相关实现。已有工程配置使用 ESP-IDF v6.0.2、目标 esp32s3、16 MB Flash。请先安装对应 ESP-IDF,并打开已经初始化环境的 ESP-IDF PowerShell/终端。仓库不包含 SDK 和编译器。
在仓库根目录运行:
cd outputs/road-speed-display-stage3
idf.py build确认 USB 串口编号后再烧录(下面 COM3 仅为示例):
.\flash.ps1 -Port COM3这会执行编译、烧录并打开监视器;Ctrl+] 退出监视器。烧录会替换设备当前应用,先保存所需备份。仅复制本仓库不会自动连接、重启或烧录设备。
以下为已采用的接线定义。GPS 针号是物理针号,不是 ESP GPIO 编号。
| ESP 原板 12PIN 插口 | Pico-GPS-L76K 物理针 |
|---|---|
| 1:GND | 3:GND |
| 2:VBUS(USB 5V) | 39:VSYS,不是 40 |
| 10:RXD / GPIO44 | 2:GP1,GNSS 数据输出 |
| 9:TXD / GPIO43(可选) | 1:GP0,GNSS 数据输入 |
串口为 9600 baud,逻辑电平为 3.3V。请按板上丝印及载板说明核对插合方向,不要按导线颜色猜针号。车载使用应先由合适的点烟器 USB 转换器提供稳压 5V;不得直接输入车辆 12V/24V。
为避免把数 GB 数据、下载缓存和私人定位记录放入 Git,仓库只包含生成源码,不包含 .osm.pbf、roads.bin、index.bin、horizon.bin 或 workzones.bin。
在普通 Python 3.12+ 环境安装工具依赖:
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-tools.txt生成和复制步骤见 地图工具说明。已有 microSD 道路包可以继续使用,无需因复制源码而重新生成。
当前固件查找的州目录为:
minnesota iowa missouri wisconsin illinois michigan
indiana kentucky tennessee ohio west-virginia pennsylvania这些目录位于 SD 卡根目录的 ROADSPD/ 下。roads.bin、index.bin、horizon.bin 必须来自同一套数据;不要把不同重建批次的文件混用。
在仓库根目录用已安装依赖的 Python 运行:
.\.venv\Scripts\python.exe work/test_gps_dms.py该测试仅适用于 Windows:验证度分秒换算模型、C 运行库格式化和实际字库布局,不等于运行 ESP32 固件,也不证明道路匹配或硬件刷新正常。生成结果位于 snapshots/gps-coordinates/,已加入 Git 忽略规则。
work/test_gps_header.py 是较早的十进制度版本测试,不适用于当前度分秒界面。work/dms_host/ 保存过往主机端 C 测试适配源码。work/generate_highway_fonts.py 会覆盖当前字库源码,仅在有意重新生成字体时运行。
地图诊断脚本不再内置私人位置,需显式提供参数:
python work/inspect_current_road.py --state-dir PATH_TO_STATE --latitude LATITUDE --longitude LONGITUDEwork/backup_display_app.py 是针对既有应用分区布局的诊断备份工具,需另外安装兼容的 esptool 并提供串口、基准二进制与输出路径;执行时会连接和复位设备。它不是整片 Flash 备份工具。
打开 v0.3 工程,保留整个目录以使用项目本地符号和封装库。
载板为 69 × 38 mm,仅整理 GPS 固定和接线。ESP 实测平面包络为 69.21 × 50 mm,70 × 51 mm 是外壳内部 XY 预留,不是已完成的外壳,也不包含高度、壁厚和插头空间。工程尚未打样验证,不能直接视作生产发布。
build_carrier.py 会覆盖现有 CAD,请勿对手动修改过的工程直接运行。生成脚本需使用含 pcbnew 的 KiCad Python 环境;Windows 上可设置 KICAD_HOME 为 KiCad 安装目录。原有预览和检查报告属于生成产物,不是源码;若未包含,请用工具重新生成并重新检查。
work/roadgeek/。| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | M2 NPTH | RoadSpeed:MountingHole_2.2mm_M2 | H1, H2, H3, H4 |
| 1 | ESP 5V + UART | RoadSpeed:ESP_JST_XH_4 | J1 |
| 1 | Pico-GPS-L76K socket | RoadSpeed:Pico_GPS_2x20_Sockets | J2 |
The 6 most common of 7 parts.

PatrickWang7941/SpeedLimitTestESP32
基于 Waveshare ESP32-S3-LCD-2.8 与 Pico-GPS-L76K 的离线车速/限速显示器。使用原生 ESP-IDF,不使用 Arduino。

byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.



AxxAxx/AxxSolder
STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power


jamro/tiny-engineer
A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

It measures 69 × 38 mm and has 2 copper layers, 1.6 mm thick.
7 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the PatrickWang7941/SpeedLimitTestESP32 repository on GitHub, at the commit this page was made from: the board is hardware/road-speed-display-pcb-v0.3/gps-carrier-v0.kicad_pcb and its schematic hardware/road-speed-display-pcb-v0.3/gps-carrier-v0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask PatrickWang7941 before reusing the design.