Skip to the content
2 layers243.8 × 264.2 mmNarabeta, the printed circuit board in 3D

server and utilities for 7-segment LED display panel

Size
243.8 × 264.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
313
Nets
768
Pads
3,312
Tracks, vias
7,388, 348
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Aug 2025
Updated
1 Oct 2026

Overview

Narabeta is an open-source printed circuit board by 7m4gmh, from the 7m4gmh/7seg-panel repository on GitHub. It is a 2-layer board of 243.8 × 264.2 mm with 313 parts on 768 nets, routed with 7,388 tracks and 348 vias.

Its parts include 192 ICs and 72 connectors. It belongs with the lEDs and displays boards of this library.

README

README.md

7-Segment LED Panel Video Player

A series of tools for playing videos on a custom display panel composed of I2C-connected 7-segment LED modules.

i2cで駆動する自作の7セグメントLEDパネルで、動画を再生するプロジェクト。


Note (platform): Developed and tested primarily on Raspberry Pi 3 and Radxa ROCK 5B. It also works on Raspberry Pi 4/5 if I2C is enabled and dependencies are installed (bus numbers/device names may differ).

macOS Support: The project includes emulator mode for macOS development and testing. Physical LED panels are automatically simulated with accurate segment rendering and audio synchronization.

注記(プラットフォーム): 本プロジェクトは主に Raspberry Pi 3 および Radxa ROCK 5B 向けに作成・検証しています。I2C を有効化し依存関係を整えれば Raspberry Pi 4/5 でも動作します(バス番号やデバイス名が異なる場合があります)。

macOS対応: 本プロジェクトはmacOSでの開発・テスト用にエミュレータモードを搭載しています。物理的なLEDパネルを自動的にシミュレートし、正確なセグメント描画と音声同期を実現します。

Languages:

English | 日本語 | 繁體中文


Module Mapping (モジュールマッピング)

You can define per-module physical mappings in config.json to accommodate different wiring or digit order of hardware modules. Use a simple column-reversal flag (module_column_reverse) or an explicit logical→physical index map (module_index_map). See docs/module-mapping.md for details and examples.

ハードウェア毎に桁順や配線が異なる場合、config.json でモジュール単位のマッピングを定義できます。簡易的に列方向を反転する module_column_reverse(真偽値)を使うか、論理インデックス(左上から行優先)からモジュール内の物理インデックスへ明示的に変換する module_index_map(配列)を定義してください。優先順位は module_index_map → module_column_reverse → 既定順(row-major)です。詳しい書き方とテスト手順は docs/module-mapping.md を参照してください。

実機縮退モデルでのデモ動画

実機縮退モデルでのデモ動画

エミュレータでの実行例


Hardware (KiCad)

  • PCB projects live under hardware/. See: hardware/README.md
  • Current folders (subject to change):
    • hardware/7seg-led — LED panel PCB
    • hardware/7seg-control — main controller PCB
    • hardware/7seg-hat — Raspberry Pi HAT
    • hardware/7seg-power — power board
    • Shared libs: hardware/lib
    • Legacy/migration folders may also exist (e.g., hardware/led-panel, controller, rpi-hat, power).

Build

Prerequisites

  • C++17-capable compiler (g++)
  • make
  • OpenCV 4 (dev package)
  • SDL2 (dev package)
  • GStreamer 1.0 (for RTP/HTTP streaming tools)

How to build

  • By default, running make without arguments shows help and does not build anything.
  • Use the grouped targets below as needed.

Common targets

bash
# Show available targets (default)

make core

# GStreamer-based tools: http-streamer / rtp-player
make gst

# Individual targets
make rtp        # 7seg-rtp-player
# (http-streamerは削除済み)

# Everything
make all


# Cleanup
### macOS Emulator Support
The project includes macOS emulator support for development and testing without physical hardware:
- Automatically detects macOS and uses emulator mode
- Physical LED panel simulation with accurate segment shapes
- Optimized performance with pre-cached layouts
- Audio synchronization for smooth playback

**macOSでのビルド:**

Recent changes (video scaling behavior)

This project recently received fixes and improvements to the video scaling modes so behavior is consistent across orientations (horizontal/vertical) and between the real-device and emulator playback paths.

  • FIT (default): the entire video is scaled to fit inside the display's physical aspect ratio. Black padding (letterboxing/pillarboxing) will be added on the shorter axis. Internally we compute a display-shaped ROI based on the configured module layout and physical character dimensions, scale the source to fit into that ROI, and pass only the ROI downstream for sampling. This prevents accidental cropping or distortion.

  • CROP: the video is center-cropped to match the display's physical aspect ratio while preserving the source aspect ratio. After cropping the ROI is passed downstream without forcing a full W×H canvas resize, so the sampled region keeps correct proportions.

  • STRETCH: the video is resized non-uniformly to fill the display-shaped ROI (i.e. aspect ratio is not preserved). This intentionally distorts the video to use the full display area.

These changes make the three modes behave predictably for combinations like horizontal video on vertical displays (FIT will letterbox, CROP will center-crop, STRETCH will distort to fill).

Debug logging

A new runtime flag is available to enable extra debug output for scaling and ROI calculation.

Usage:

bash
# Enable debug output
./bin/darwin-arm64/7seg-file-player <video> <config> --fit --debug

# Short form
./bin/darwin-arm64/7seg-file-player <video> <config> --fit -d

When enabled the player prints per-frame messages like:

  • [FIT] source_aspect=... display_aspect=... roi=(x,y,w,h) dst=(w,h)
  • [STRETCH] source_aspect=... display_aspect=... roi=(x,y,w,h)

The debug flag is off by default so normal runs are quiet.

Notes for reviewers / maintainers

  • The playback code now avoids forcing a W×H resize for FIT/CROP/STRETCH; we pass an appropriately-shaped ROI to the sampling logic so frame_to_grid sees the correct proportions.
  • Debug prints are gated by the --debug/-d switch.
  • Some small cleanups were applied (unused variables removed, minor refactor of logging points).

Tip

  • For streaming, we recommend the net player with OBS via FLV/TCP:

  • Alternatively, the RTP player is available. See usage and sender examples:

  • macOS camera sender script included: send_rtp_cam_gst.sh

  • For browser-based control and uploads, use the HTTP player/streamer. See:

  • To play a local video file quickly, use the File Player. See:

  • macOS Emulator: For testing and development on macOS without physical hardware. See:

    • README.emulator.md → "7-Segment LED Panel Emulator"
    • 物理的なLEDパネルの正確なシミュレーション
    • 動画ファイルからの再生と音声同期
  • Tetris on the LED panel (Python):

Parts

313
QtyValueFootprintReferences
192YH-2E20402-IK7seg-panel:YH02E20402-12PU100, U100, U100, U100, U100, U100, U100, U100, U100, U100, U100, U100, U101, U101, U101, U101 +176
72Conn_02x04_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ100, J100, J100, J100, J100, J100, J100, J100, J100, J100, J100, J100, J101, J101, J101, J101 +56
48MountingHoleMountingHole:MountingHole_3.2mm_M3H100, H100, H100, H100, H100, H100, H100, H100, H100, H100, H100, H100, H101, H101, H101, H101 +32
1LOGOLOGOG***

More from 7m4gmh/7seg-panel

12
  • 2 layers94.5 × 67.6 mm7seg panel control-04in, the printed circuit board in 3D

    7seg panel control-04in

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    73 parts
  • 2 layers50.8 × 76.2 mm7seg control, the printed circuit board in 3D

    7seg control

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    54 parts
  • 2 layers81.3 × 33 mm7seg panel expand-040, the printed circuit board in 3D

    7seg panel expand-040

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    41 parts
  • 2 layers81.3 × 33 mm7seg panel power-040, the printed circuit board in 3D

    7seg panel power-040

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    27 parts
  • 2 layers50.8 × 76.2 mm7seg power, the printed circuit board in 3D

    7seg power

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    24 parts
  • 2 layers65 × 56.5 mm7seg hat, the printed circuit board in 3D

    7seg hat

    7m4gmh/7seg-panel

    server and utilities for 7-segment LED display panel

    22 parts

Similar boards

  • 2 layers92.4 × 79.5 mmBoard panel, the printed circuit board in 3D

    Board panel

    bareware/pcb-STM32G030Fx

    STM32G030F Development Board

    313 partsMIT
  • 2 layers243.8 × 121.9 mmTiM, the printed circuit board in 3D

    TiM

    wyolum/TiM

    Library for stackable TiM boards

    313 parts
  • 2 layers232.1 × 131.2 mmPanel, the printed circuit board in 3D

    Panel

    ZeniteSolar/MSC19

    Voltage or Current Sensor Module for CANBUS with ATmega328p

    313 partsGPL-3.0
  • 2 layers181 × 137.5 mmWaffle, the printed circuit board in 3D

    Waffle

    Mozzie-AU/LeafOBC-WafflePlate

    Reverse engineering the "waffle plate" power module from the 2012 Nissan Leaf on-board charger (OBC), with the goal of building a functional replica from regular, off-the-shelf components.

    312 partsCERN-OHL-S-2.0
  • 2 layers385 × 127.3 mmKeyboard, the printed circuit board in 3D

    Keyboard

    kitspace-test-repos/kicad6-file-collection

    312 partsMIT

Questions

How big is the Narabeta PCB?

It measures 243.8 × 264.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Narabeta use?

313 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 Narabeta KiCad files?

From the 7m4gmh/7seg-panel repository on GitHub, at the commit this page was made from: the board is hardware/040/7seg-panel-display-040-dual/narabeta.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Narabeta design in my own project?

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