Edge AI Smart Security Camera
Custom 3D-Printed Enclosure (v2.2), Full-Duplex I2S Audio & Embedded Hardware Integration (Project Barry)
Self-contained 40 TOPS Edge AI smart security camera packaging dual RGB/NoIR cameras, full-duplex I2S audio (mic + speaker), PWM illumination rings, and tactile UI controls into a custom v2.2 3D-printed enclosure.
DOMAIN
EMBEDDED
DATE RECORD
2026-11-11
PROJECT STATUS
ACTIVE
CORE TECHNOLOGIES
Benchtop computer vision and edge AI setups typically fail outside the lab due to exposed MIPI CSI ribbon cables, loose Dupont jumpers, and optical misalignment across separate sensor brackets. Project Barry was engineered to solve this by packaging dual daylight and infrared cameras, active visible and 850nm IR illumination, full-duplex digital audio (microphone + speaker), tactile physical controls, and a 40 TOPS Hailo-10H AI accelerator into a rigid, self-contained, stand-mounted Smart AI Security Camera enclosure (Rev 2.2). All processing runs locally at the edge with zero cloud dependency.
The mechanical architecture evolved across multiple physical FDM print-and-fit generations as the project matured from an initial multi-sensor test pod (v1.0–v1.3) into a dedicated AI Smart Security Camera (v2.0–v2.2):
- Phase 1 Baseline (v1.0 to v1.3 Multi-Sensor Pod & LiDAR Validation): Established the co-planar front optical bulkhead locking both Sony IMX708 cameras and coaxial White/850nm IR LED rings onto a single Z-axis datum. Solved initial 22-to-15 pin CSI ribbon bend-radius clearances and validated an 8x8 ST VL53L7CX Time-of-Flight LiDAR over 1.0 MHz I2C at 11.0 FPS.
- Architectural Pivot (v2.0 to v2.1 Security Camera Form Factor): Pivoted the system scope from a short-range robotics pod to a dedicated AI Smart Security Camera mounted on an articulated stand (Leg.stl). Because a 3–4m indoor ToF LiDAR is too short-range for security surveillance, retired the LiDAR to reclaim the central front bay and power pins for an onboard speaker system and physical UI controls.
- Production Modular Assembly (Rev 2.2): Engineered a 7-part modular mechanical assembly comprising Main Body v2.2, Top Lid, Top IO Lid v2.2, Speaker Housing, Button Bracket, Button Cap, and mounting Leg. Integrated a dedicated acoustic back-chamber for the 8Ω 2W rectangular speaker and a top-mounted physical control interface.
- Active Thermal Ducting: Aligned intake and exhaust airflow paths with the internal blower heatsink, maintaining a steady 48.3°C temperature under peripheral load with zero undervoltage or thermal throttling (throttled=0x0).
To eliminate wire clutter inside the compact v2.2 housing, all subsystems were mapped into four non-overlapping physical zones on the 40-pin RP1 header and audited against the Hailo-10H AI HAT+ 2 (PCIe Gen 3 FFC + Pins 27/28 EEPROM) and Linux kernel device tree:
- Full-Duplex I2S Audio (SPH0645 Mic + MAX98357A Speaker Amp): Engineered a unified full-duplex I2S bus sharing BCLK (Pin 12 / GPIO 18, Orange Y-splice) and LRC (Pin 35 / GPIO 19, Green Y-splice) under a single kernel overlay (dtoverlay=googlevoicehat-soundcard), with microphone capture on Pin 38 (GPIO 20 PCM_DIN) and Class-D amplifier playback on Pin 40 (GPIO 21 PCM_DOUT) driving an 8Ω 2W rectangular speaker.
- Audio Power Rail Isolation & Kernel Audit: Physically separated the amplifier power rail (Pin 1 +3.3V & Pin 34 GND) from the microphone analog preamp rail (Pin 17 +3.3V & Pin 14 GND, plus dedicated Pin 39 SEL ground) to prevent speaker current transients from injecting voltage ripple into the mic, while capping output into the 8Ω 2W speaker at ~0.85W. Audited googlevoicehat-soundcard-overlay.dts and left Pin 36 (GPIO 16 sdmode-gpios) unassigned to prevent mute-pin conflicts.
- Physical Button Array (1x5 Contiguous Ribbon): Wired 4x 12mm momentary pushbuttons inside Top IO Lid v2.2 as a straight-line 1x5 flat ribbon plug on the left header column (Pins 7, 9, 11, 13, 15 -> GPIO 4, Common GND, GPIO 17, GPIO 27, GPIO 22) using internal RP1 pull-ups and a daisy-chained panel ground.
- Boot-Safe Status RGB LED (1x4 Contiguous Ribbon): Wired a 4-pin common-cathode RGB LED as a straight-line 1x4 plug on the left column (Pins 19, 21, 23, 25 -> GPIO 10 Red, GPIO 9 Green, GPIO 11 Blue, GND). Specifically mapped to GPIO 9–11 because those RP1 pads default to hardware pull-down at boot, eliminating power-on ghost glow.
- Dual Hardware PWM Illumination: Routed GPIO 12 (Pin 32 PWM0) and GPIO 13 (Pin 33 PWM1) through the RP1 southbridge to independently drive the visible White LED ring and 850nm IR night-vision ring without colliding with the GPIO 18 I2S audio clock.
- Multimeter Harness Diagnosis (850nm IR Ring): During initial illumination testing, the White LED ring operated immediately on GPIO 12, but the 850nm IR ring failed to emit under camera inspection on GPIO 13. Probing the harness with a digital multimeter revealed that the 5V (Pin 4) and GND (Pin 20) jumper leads were inverted at the header. Re-seating the pins restored full 850nm emission with zero diode damage.
- Full-Duplex Acoustic Validation: Verified 48 kHz, 32-bit mono I2S microphone capture under ALSA (Peak: 34.65%, RMS: 6.80%) with dedicated Pin 39 SEL grounding, and integrated the MAX98357A amplifier on Pin 40 for two-way audio and active deterrence alerts.
- Phase 1 LiDAR Benchmark (v1.3 Iteration): Prior to retiring the VL53L7CX ToF LiDAR in the v2.0 security camera pivot, validated 8x8 multizone depth streaming over 1.0 MHz I2C Fast Mode Plus at a steady 11.0 FPS.