Building Dashboards on P2 Indoor LED Modules: 160 80 Grids, 1/40 Scan, and Bandwidth Math

2026-11-30来源 dev.toEnglish

If you are moving from standard hobbyist 64×64 LED matrices to fine-pitch P2 (2.0 mm pitch) indoor panels for a live telemetry dashboard, control-room monitor, or broadcast backdrop, you will quickly run into a few surprises that don't show up on larger pitches.

With 250,000 pixels per square meter, P2 packs roughly 56% more pixels per unit area than P2.5. That jump in density changes everything from your framebuffer stride and 1/40 scan addressing to your controller's Ethernet/DMA bandwidth budget.

Here is what engineers and makers need to account for when designing around P2 indoor LED modules.

1. The Two P2 Mechanical Formats (And Why 160×80 Breaks Power-of-Two Assumptions)

Most embedded display libraries assume panel dimensions are clean powers of two (64, 128, 256). However, the dominant industry P2 format breaks that rule:

Parameter 320 × 160 mm Module 256 × 128 mm Module
Pixel Resolution 160 × 80 px 128 × 64 px
Pixels per Board 12,800 px 8,192 px
Typical Scan Mode 1/40 scan (40S) 1/32 scan (32S)
Standard Cabinet Pairing 6 boards in 640 × 480 mm (320 × 240 px) Project-specific (doesn't divide 640 mm evenly)

If you are mapping out mechanical enclosures or verifying replacement specs, this P2 indoor LED module guide breaks down the exact grid math between the 320 × 160 mm and 256 × 128 mm builds.

Two Hardware Gotchas to Plan Around

  1. Non-Binary Height & 1/40 Scan (40S): On a 64-pixel-tall board (1/32 scan), 5 row-address pins (A–E) cover 2⁵ = 32 rows cleanly. On an 80-pixel-tall 320 × 160 mm board running at 1/40 scan, 5 address lines aren't enough—you either need serial shift-register row decoding (common on modern commercial driver boards) or a controller explicitly configured for 40S multiplexing.
  2. The "256 × 128" Naming Trap: Never order hardware from a bare "256 × 128" label in a BOM:
    • 256 × 128 mm is the physical size of the smaller P2 board (128 × 64 px).
    • 256 × 128 px is the pixel resolution of a P1.25 module on a 320 × 160 mm PCB.
    • 128 × 64 px also exists on a P2.5 320 × 160 mm PCB.

Always verify pitch + physical dimensions + pixel array together before writing your display config.

2. Bandwidth & Receiving Card Load Calculator (TypeScript)

Because a single 320 × 160 mm P2 board pushes 12,800 pixels, scaling up to a small 1.92 m × 0.96 m dashboard (6 × 6 boards = 960 × 480 px) totals 460,800 pixels. At 24-bit RGB and 60 Hz, that exceeds what a single microcontroller DMA channel—and sometimes a single standard Gigabit receiving-card port (often capped around ~650k pixels at 60 Hz / 8-bit)—can comfortably drive without refresh-rate drops.

Here is a quick TypeScript helper to estimate raw pixel load, standard 640 × 480 mm cabinet counts, and uncompressed RGB24 throughput before picking your controller:

type P2Outline = "320x160" | "256x128"; interface WallBudget { physicalSizeMm: string; resolutionPx: string; totalPixels: number; rawBandwidthMbpsAt60Hz: number; fitsSingle650kPort: boolean; } function estimateP2Load( cols: number, rows: number, outline: P2Outline = "320x160" ): WallBudget { const specs = { "320x160": { wMm: 320, hMm: 160, pxW: 160, pxH: 80 }, "256x128": { wMm: 256, hMm: 128, pxW: 128, pxH: 64 }, }[outline]; const totalW = cols * specs.pxW; const totalH = rows * specs.pxH; const totalPixels = totalW * totalH; // Uncompressed 24-bit RGB at 60 FPS (excluding blanking/PWM overhead) const rawBandwidthMbpsAt60Hz = Number( ((totalPixels * 24 * 60) / 1_000_000).toFixed(2) ); return { physicalSizeMm: `${cols * specs.wMm}mm x ${rows * specs.hMm}mm`, resolutionPx: `${totalW} x ${totalH}`, totalPixels, rawBandwidthMbpsAt60Hz, fitsSingle650kPort: totalPixels <= 650_000, }; } // Example: 3x2 cabinets of 640x480mm (= 6x6 modules of 320x160mm) console.log(estimateP2Load(6, 6, "320x160")); 

(Keep in mind that actual wire bandwidth is higher once you factor in PWM bit-depth overhead for high refresh rates—such as 3840 Hz for camera-safe setups.)

3. When P2 Makes Sense vs. P2.5 (And Camera Shutter Issues)

In real-world rooms, P2 sits right in the middle of the indoor pitch matrix:

  • 2–3 m viewing (Dashboards, small text, live cameras): P2 (250,000 px/m²) keeps small UI fonts crisp and hides the pixel grid on camera sensors. If your screen will appear behind a presenter on a livestream, pay close attention to your driver IC refresh rate and scan mode (40S vs 32S)—low refresh rates show up immediately as rolling dark bands on camera shutters.
  • 3–5 m viewing (Pure video walls): P2.5 (160,000 px/m²) is usually sufficient and saves on both BOM and controller port count.
  • Sub-2 m close-up text: Stepping down to P1.86 or P1.53 avoids visible pixel structure.

Also note that form factor matters just as much as pitch: a rigid SMD P2 module cannot be swapped into a curved build (which needs a flexible PCB substrate) or mixed with a COB-encapsulated panel, even if both share the 160 × 80 pixel layout.

4. Compatibility Checklist for Replacements

If you are maintaining an existing wall rather than building from scratch, mechanical fit is only step one. Before ordering replacement boards, document these five details:

  1. Outline & Magnet Pitch: Verify 320 × 160 vs 256 × 128 mm and rear magnet/screw alignment.
  2. Scan & Driver Architecture: Confirm 40S vs 32S and driver IC family—mismatches cause ghosting or banded rows.
  3. Receiving Card Configuration: Keep a backup of the exact .rcfgx / mapping file; 160-column and 128-column boards cannot share a map.
  4. DC 5 V Pinout & Power Budget: Never assume HUB pinouts are identical across different PCB revisions.
  5. LED Bin & PCB Revision: Different production batches of the exact same SKU can show visible color-temperature patches unless calibrated together.

Summary

Working with P2 indoor LED modules gives you sharp text and camera-ready density at 2–3 meters, provided your controller configuration handles 160 × 80 geometry, 1/40 scan multiplexing, and higher pixel-port loads. If you need a clean reference when comparing the two mechanical outlines or checking spare-part compatibility, keep this P2 indoor LED module specification guide bookmarked.

Are you driving your indoor matrices with commercial FPGA receiving cards or custom MCU/SBC pipelines? Let me know what refresh rates you are hitting in the comments!

原文:https://www.a8q9.cn/en/article/building-dashboards-on-p2-indoor-led-modules-160-80-grids-1-40-scan-and-bandwidt-eeb508.html

相关文章