
Lego gameboy main
greigs/OpenBrickGB
Functional / Playable Lego Game Boy Electronics - PCB Design Files

A wearable safety device for industrial environments. A worker wears a UWB tag; fixed anchor stations track its position in real time and a web dashboard shows where every worker is.
Grad project is an open-source printed circuit board by Eng-Youssef-Yassin, from the Eng-Youssef-Yassin/sos-wearable-device repository on GitHub. It is a 2-layer board with 44 parts on 89 nets, routed with 676 tracks and 93 vias.
It is built around the DWM3000, ESP32-S3-WROOM-1-N8 and BUTT-2, with the B2B-PH-K-S, BQ24040DSQR and ESD7104MUTAG among its other parts. Its parts include 15 resistors, 11 capacitors, 3 diodes, 3 connectors and 1 IC. It belongs with the ESP32 boards of this library.
A wearable safety device for industrial environments. A worker wears a UWB tag; fixed anchor stations track its position in real time and a web dashboard shows where every worker is. If the wearer falls or presses the SOS button, the dashboard raises an alarm with their location.
Built as a graduation project with Elsewedy Electric R&D and The Knowledge Hub Universities. Selected for the SPARK program. Grade: A.
┌──────────┐ UWB ranging (DS-TWR) ┌──────────────┐
│ TAG │ ◄──────────────────────► │ ANCHOR 1 │
│ (worn) │ ◄──────────────────────► │ ANCHOR 3 │
│ │ ◄──────────────────────► │ ANCHOR 2 / │
│ SOS btn │ │ GATEWAY │
│ fall det │ └──────┬───────┘
│ temp │ │ WiFi SoftAP
└──────────┘ ▼
┌──────────────┐
│ Dashboard │
│ 192.168.4.1 │
└──────────────┘The tag ranges against three fixed anchors. Anchor 2 doubles as the gateway: it collects all three distances, runs the position solution, and serves the dashboard over its own WiFi access point — so the system needs no existing network infrastructure on site.
hardware/ KiCad 7 schematic, PCB layout, footprints and BOM
firmware/ Arduino / ESP-IDF firmware for tag, anchors and gateway
FIX_LOG.md Debugging record — root-cause analysis of field failuresThe custom PCB is a 2-layer compact circular board designed for wearability, laid out for DFM with attention to grounding and EMI control.
| Part | Function |
|---|---|
| ESP32-C3-MINI-1U-N4 | Main controller, WiFi, BLE |
| ESP32-S3 | Anchor station controller |
| DWM3000 | UWB transceiver (IEEE 802.15.4z) |
| BQ24040DSQR | Li-ion battery charger |
| ESD7104MUTAG-7 | ESD protection on external lines |
Open hardware/grad-project.kicad_pro in KiCad 7 or later. The BOM is in
hardware/GRAD.csv.
| Sketch | Role |
|---|---|
TAG_CODE/ | Worn device — initiates ranging, reads sensors, sends uplink |
ANCHOR_CODE/ | Fixed anchor — responds to ranging, relays measurements |
ANCHOR_GATEWAY/ | Anchor 2 — as above, plus WiFi AP and dashboard |
SPI_MAX_SPEED_TEST/ | Bring-up utility for validating the DW3000 SPI link |
DW3000.cpp / DW3000.h / DW3000Constants.h are the shared transceiver
driver, modified from the community baseline for this application.
| Parameter | Value |
|---|---|
| Channel | 5 |
| Data rate | 850 kbps |
| Preamble | 2048 symbols (tag), 4096 (anchors) |
| PAC | 32 |
| STS | SP1, 128 symbols |
| Ranging method | DS-TWR (double-sided two-way ranging) |
| Update rate | ~18–22 Hz |
| Tested range | 30–40 m line-of-sight |
DS-TWR is used rather than single-sided ranging because it cancels the clock drift between tag and anchor, which otherwise dominates the error budget at these distances.
Raw UWB time-of-flight is not usable directly in a warehouse — reflections off racking and machinery produce non-line-of-sight (NLOS) readings that appear closer than the truth. Two stages handle this:
NLOS rejection in the CIR linear domain. Rather than comparing received power to first-path power in dB, the filter computes
nlos_lin = (CIR_PWR × 131072) / (f1² + f2² + f3²)which is the exact linear equivalent, and thresholds on that. A peak-symmetry check adds a penalty when the centre first-path sample is not the actual peak — a strong indicator of a reflected path arriving first.
Adaptive EMA smoothing. An exponential moving average smooths the accepted readings, with the alpha term adapting to measurement quality: noisier conditions use a higher alpha so the filter still converges in roughly ten readings instead of twenty.
Both stages were tuned specifically for long range, where RSSI falls to −100 to −110 dBm and the earlier thresholds were rejecting perfectly valid line-of-sight frames.
The gateway runs UWB ranging and WiFi on separate FreeRTOS tasks pinned to different cores. This matters: the WiFi stack blocks unpredictably, and sharing a core with the ranging task caused missed reception windows and dropped measurements.
Requirements: Arduino IDE with ESP32 board support, and the
ESPAsyncWebServer library.
Flash TAG_CODE to the wearable board.
Flash ANCHOR_CODE to anchors 1 and 3, changing ANCHOR_ID in each.
For the gateway, copy the credentials template and set your own values:
cd firmware/ANCHOR_GATEWAY
cp config.example.h config.hEdit config.h with your access point SSID, password and dashboard login.
This file is gitignored and never committed.
Flash ANCHOR_GATEWAY to anchor 2.
Connect a phone or laptop to the access point and open http://192.168.4.1.
Note on credentials. This is a self-contained demo access point that is not exposed to the internet, and the shipped values are placeholders. Set your own before using this anywhere that matters.
FIX_LOG.md documents real failures found during bring-up and how they were
diagnosed — including an intermittent anchor dropout that turned out to be a
startup race condition between SPI initialisation and the WiFi stack, where a
fatal SPI check was permanently deleting the UWB task instead of retrying.
It is probably the most useful file in this repository for understanding how the system actually behaves.
Youssef Yassin — Electrical & Electronics Engineering LinkedIn
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10k | Resistor_SMD:R_0603_1608Metric | R7, R10, R11, R15 |
| 4 | 1uf | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4 |
| 3 | 1k | Resistor_SMD:R_0603_1608Metric | R2, R3, R6 |
| 3 | BUTT-2 | SW_BUTT:SW_BUTT-2 | B1, B2, B3 |
| 3 | LED | LED_SMD:LED_0603_1608Metric | D1, D2, D3 |
| 2 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C6, C11 |
| 2 | 0.1uf | Capacitor_SMD:C_0603_1608Metric | C8, C9 |
| 2 | 2.2k | Resistor_SMD:R_0603_1608Metric | R13, R14 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R8, R9 |
| 1 | 100K | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 10uF | Capacitor_SMD:C_0603_1608Metric | C7 |
| 1 | 10uf | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric | R4 |
| 1 | 2.2nF | Capacitor_SMD:C_0603_1608Metric | C10 |
| 1 | 200k | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 540 | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | B2B-PH-K-S | Connector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical | J2 |
| 1 | BQ24040DSQR | BQ24040DSQR:SON40P200X200X80-11N | Q1 |
| 1 | Barrel_Jack | Connector_BarrelJack:BarrelJack_GCT_DCJ200-10-A_Horizontal | S1 |
| 1 | DWM3000 | RF_Module:DWM1000 | W1 |
| 1 | ESD7104MUTAG | ESD7104MUTAG-7:UDFN10_ONS | E1 |
| 1 | ESP32-S3-WROOM-1 | RF_Module:ESP32-S3-WROOM-1 | M1 |
| 1 | LOGO | New folder (3):HHH | G*** |
| 1 | LOGO | New folder (2):dddd | G*** |
| 1 | MPU-6050 | Sensor_Motion:InvenSense_QFN-24_4x4mm_P0.5mm | P1 |
| 1 | MTSW-104-10-S-S-605-LL | Library:SAMTEC_MTSW-104-10-S-S-605-LL | J1 |
| 1 | TLV75801PDRV | Package_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm | T1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | U1 |

greigs/OpenBrickGB
Functional / Playable Lego Game Boy Electronics - PCB Design Files


BirryGit/Battery-Powered-Meshtastic-Board
I want to learn how to make PCBs, and this seemed like a good idea. I originally was following the Stasis tutorial, but veered away from it significantly. I want to get into meshtastic, so this is awesome :)


cs99x/GasMonitorLoRaCloud
This project is a mobile and embedded application for a university course called "Mobile and Embedded Development".



SendhanS/ESP32-Sen
A compact ESP32-S3-MINI-1-N8 development board with USB-C (ESD protected), a 4-layer PCB stack-up (signal / GND / power / signal), and 3.3 V regulation using the TLV75801.
44 parts, built around the DWM3000, ESP32-S3-WROOM-1-N8, BUTT-2 and B2B-PH-K-S. 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 Eng-Youssef-Yassin/sos-wearable-device repository on GitHub, at the commit this page was made from: the board is hardware/grad-project.kicad_pcb and its schematic hardware/grad-project.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 Eng-Youssef-Yassin before reusing the design.