Skip to the content
2 layers69 × 38 mmGps carrier v0, the printed circuit board in 3D

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

Size
69 × 38 mm
Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
40
Pads
48
Tracks, vias
26, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
31 Aug 2026
Updated
31 Aug 2026

Overview

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.

README

README.md

SpeedLimitTestESP32

基于 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 车速、当前限速、前方下一限速及沿道路的距离,单位为 mph / mi。
  • 有有效定位时显示绿色 GPS <纬度> <经度>,坐标采用度分秒格式、秒保留一位小数;无有效定位显示黄色 GPS NO DATA。
  • 无有效定位时车速为 --,有效定位且停留时为 00;正常车速为白色,超限速 5 mph 起为柔和红色、20 mph 起为鲜明红色。
  • 未知当前/下一限速显示 --,未知距离显示 IN -- MI。存在道路匹配、双向限速、SD 重试、前方变化表及施工数据相关实现。
  • 没有设置导航目的地时,岔路后的实际行驶道路无法预先确定。地图匹配和下一限速不是绝对可靠的预测。
  • OSM 缺少限速标签时保留未知;没有实现覆盖全美的法定默认限速推断。当前生成器还会将无单位的数值限速保留为未知,这是已知的覆盖率限制。
  • 施工数据来自离线 OSM 标签,不是实时、完整的州交通部门施工数据库。
  • 已收到行驶时速度更新迟滞的反馈,原因尚未查明。本次源码归档没有修复这一问题。
  • 板载 IMU 存在,但不能据此认为已实现惯性导航或路口转向预测。

Windows 编译与烧录

已有工程配置使用 ESP-IDF v6.0.2、目标 esp32s3、16 MB Flash。请先安装对应 ESP-IDF,并打开已经初始化环境的 ESP-IDF PowerShell/终端。仓库不包含 SDK 和编译器。

在仓库根目录运行:

powershell
cd outputs/road-speed-display-stage3
idf.py build

确认 USB 串口编号后再烧录(下面 COM3 仅为示例):

powershell
.\flash.ps1 -Port COM3

这会执行编译、烧录并打开监视器;Ctrl+] 退出监视器。烧录会替换设备当前应用,先保存所需备份。仅复制本仓库不会自动连接、重启或烧录设备。

接线

以下为已采用的接线定义。GPS 针号是物理针号,不是 ESP GPIO 编号。

ESP 原板 12PIN 插口Pico-GPS-L76K 物理针
1:GND3:GND
2:VBUS(USB 5V)39:VSYS,不是 40
10:RXD / GPIO442: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+ 环境安装工具依赖:

powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-tools.txt

生成和复制步骤见 地图工具说明。已有 microSD 道路包可以继续使用,无需因复制源码而重新生成。

当前固件查找的州目录为:

text
minnesota  iowa       missouri     wisconsin  illinois  michigan
indiana    kentucky   tennessee    ohio       west-virginia  pennsylvania

这些目录位于 SD 卡根目录的 ROADSPD/ 下。roads.bin、index.bin、horizon.bin 必须来自同一套数据;不要把不同重建批次的文件混用。

测试与辅助脚本

在仓库根目录用已安装依赖的 Python 运行:

powershell
.\.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 会覆盖当前字库源码,仅在有意重新生成字体时运行。

地图诊断脚本不再内置私人位置,需显式提供参数:

powershell
python work/inspect_current_road.py --state-dir PATH_TO_STATE --latitude LATITUDE --longitude LONGITUDE

work/backup_display_app.py 是针对既有应用分区布局的诊断备份工具,需另外安装兼容的 esptool 并提供串口、基准二进制与输出路径;执行时会连接和复位设备。它不是整片 Flash 备份工具。

KiCad 载板

打开 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 安装目录。原有预览和检查报告属于生成产物,不是源码;若未包含,请用工具重新生成并重新检查。

第三方资料与许可

  • Roadgeek 2014 字体及生成字形保留原 MIT 许可:许可文本、字体来源。字体源文件位于 work/roadgeek/。
  • 地图来源:OpenStreetMap,数据库许可为 ODbL;常用州级输入来自 Geofabrik。重新分发地图数据库时需遵守其许可和署名要求。
  • 硬件尺寸引用见各硬件目录的参考链接;原图及厂商资料权利属于原权利人。
  • 本次归档未替项目自有代码新增开源许可证;字体许可不代表全部项目都采用 MIT。若计划公开授权他人使用,应另行选择项目许可证。

Parts

7
QtyValueFootprintReferences
4M2 NPTHRoadSpeed:MountingHole_2.2mm_M2H1, H2, H3, H4
1ESP 5V + UARTRoadSpeed:ESP_JST_XH_4J1
1Pico-GPS-L76K socketRoadSpeed:Pico_GPS_2x20_SocketsJ2

The 6 most common of 7 parts.

More from PatrickWang7941/SpeedLimitTestESP32

1
  • 2 layers76 × 34 mmGps carrier v0, the printed circuit board in 3D

    Gps carrier v0

    PatrickWang7941/SpeedLimitTestESP32

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

    6 parts

Similar boards

  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

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

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

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

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    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.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

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

    7 parts1kGPL-3.0
  • 2 layersRj45 breakout, the printed circuit board in 3D

    Rj45 breakout

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    7 parts990GPL-3.0

Questions

How big is the Gps carrier v0 PCB?

It measures 69 × 38 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Gps carrier v0 use?

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.

Where can I download the Gps carrier v0 KiCad files?

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.

Can I use the Gps carrier v0 design in my own project?

Its repository states no licence, so its author keeps all rights: ask PatrickWang7941 before reusing the design.