Build a PCIe Coral Accelerator for Frigate NVR

DIY Hardware
Date:November 29, 2026
Topic:
Build a PCIe Coral Accelerator for Frigate NVR
⏱ 3 min read

Your Frigate NVR is drowning in CPU cycles. Every motion event triggers a full-frame decode on the host processor, spiking load averages and delaying alerts. A Google Coral TPU offloads that inference to 4 TOPS of dedicated silicon, but the USB variants throttle thermally and saturate the bus. The fix: a native PCIe Coral accelerator. It costs $25, fits in a 1x slot, and drops inference latency from 120ms to 8ms on a Ryzen 5700G.

Hardware Bill of Materials

ComponentPart NumberApprox. CostNotes
Coral Accelerator ModuleG950-01456-01$25M.2 E-key, PCIe Gen2 x1
M.2 E-key to PCIe x1 AdapterNGFF-EX1$9Prefer gold-finger PCB, no USB bridge
Low-profile PCIe BracketGeneric$3Required for 1U/half-height cases
Thermal Pad (1mm)Fujipoly 11$2Module runs 65°C+ under load
⚠️
WarningAvoid M.2 M-key to PCIe adapters. They wire PCIe lanes to M-key pins; the Coral module is E-key only. Pinout mismatch kills the module.

Physical Installation

Seat the Coral module into the adapter at a 30-degree angle, press down, and secure the retention screw. Apply the 1mm thermal pad between the metal shield and the adapter's heatsink surface — do not use paste; the gap is uneven. Mount the assembly into your PCIe x1 or x4 slot. The module draws 2.5W peak; no auxiliary power needed. Verify link status with lspci -vv | grep -A 5 'Global Unichip'. You should see LnkSta: Speed 5GT/s, Width x1.

Driver & Container Setup

bash
# Host kernel module (Ubuntu 22.04+, Debian 12, Proxmox VE 8)
sudo apt update && sudo apt install -y linux-headers-$(uname -r) dkms git
cd /tmp && git clone https://github.com/google/coral-edgetpu.git
cd coral-edgetpu && sudo ./install.sh
# Verify device enumeration
ls /dev/apex_0
# Expected: /dev/apex_0  (PCIe) not /dev/bus/usb/... (USB)

The DKMS build pins to your running kernel. On kernel upgrades, it rebuilds automatically. For Home Assistant OS or Unraid, pass /dev/apex_0 through to the Frigate container. No privileged mode required.

Frigate Configuration

yaml
detectors:
  coral_pcie:
    type: edgetpu
    device: pci:0  # Maps to /dev/apex_0
model:
  width: 300
  height: 300
  input_tensor: uint8
  input_pixel_format: rgb
# cameras.yml snippet
cameras:
  front_door:
    detect:
      enabled: true
      required_confidence: 0.6
      objects:
        - person
        - car
        - package
    motion:
      mask:
        - 0,0,1920,500  # Exclude sky/tree sway
💡
TipSet <code>device: pci:0</code> not <code>usb:0</code>. The PCIe enumerator is deterministic; USB bus numbers shift on reboot.

Benchmarks & Thermal Reality

MetricCPU Only (5700G)Coral PCIeDelta
Inference Latency (ms)1188-93%
CPU Usage per Stream18%2%-89%
Power Draw (W)45 (package)2.5 (module)-94%
Steady Temp (°C)N/A62Safe
"

The PCIe Coral turns a 4-camera Frigate box from a space heater into a silent appliance. Latency is now bounded by network RTT, not tensor math.

— HomeLab Discord #frigate-channel

Common Pitfalls

No /dev/apex_0: Secure Boot blocks the unsigned DKMS module. Disable Secure Boot in BIOS or sign the module with MOK. Frigate logs Failed to open device: Container lacks device cgroup rule. Add --device-cgroup-rule='c 189:* rmw' or use device: /dev/apex_0 in docker-compose. Thermal throttle at 85°C: Adapter heatsink is undersized. Add a 40mm fan blowing across the module or upgrade to a copper shim + aluminum block.


✦

Next Steps

Order the Coral module and E-key adapter today. Install the DKMS driver, pass /dev/apex_0 to Frigate, and switch your detector to type: edgetpu with device: pci:0. Monitor docker stats for the first hour — CPU should flatline. Then add a second camera without fear. Your NVR just became a detection appliance.

Share𝕏 Twitterin LinkedInin Whatsapp