How commaai/neo works
Project type and purpose
• This is an open-source hardware robotics research platform (“neo”) that leverages a consumer smartphone as the main compute and sensor hub, paired with a custom STM32F205–based CAN interface board, all housed in 3D-printed enclosures with active cooling. The file tree breaks down into:
• board (EagleCAD electrical design files)
• case (3D-printable STL models)
• car_harness, giraffe, interface_boards, etc. (connector and adapter designs for various vehicle makes)
• parts, key, paw, panda_debug, etc. (additional PCB designs and BOMs)
File structure for architectural clues
• “board” contains the core CAN-interface PCB schematic and layout (STM32F205 MCU + transceivers).
• “body” & “case” contain mechanical designs (housing, mounts, cooling).
• “car_harness” and “giraffe” directories hold versioned harness schematics and mechanical mounts for interfacing to specific vehicles’ OBD/CAN connectors.
• “interface boards” and “panda_debug” cover optional PCBs for specialized debugging or sub-systems.
• “parts” holds BOMs for all PCBs, indicating a clear separation between electrical design and mechanical design.
Extract README insights
• The platform runs a stripped Android ROM (“NEOS”) on the OnePlus 3 to provide both embedded-grade robustness and a modern Linux environment for development.
• Data flow: smartphone ↔ CAN board ↔ vehicle CAN network.
• Power budget: smartphone battery or external supply → DC-DC → STM32 board → CAN transceivers.
• Cooling via fans mounted in the 3D-printed case.
Main components
a. Smartphone (OnePlus 3) running NEOS – CPU, sensors (IMU, camera, GPS, radios)
b. CAN interface board (STM32F205 MCU + CAN transceivers)
c. Power management module (voltage regulators/DC-DC converters)
d. Vehicle Harness & Adapters (OBD-II or model-specific connectors – car_harness & giraffe modules)
e. Mechanical Housing (3D-printed case + active cooling fan)
f. Optional extension boards (panda_debug, interface_boards)
Component relationships & interactions
• From CAN Interface board, show two CAN bus channels branching to:
• Vehicle Harness (standard OBD‐II connector)
• Giraffe adapters (maker‐specific sub‐connectors)
• Power Management feeds both the CAN Interface and the Smartphone (if external power is used).
• The Mechanical Housing encapsulates Smartphone, CAN board, and fan; indicate mounting points.
Architectural patterns and design principles
• Modular design: separate electrical (board) and mechanical (case, body) layers.
• Versioned interfaces: car_harness/v1, v3 and giraffe adapters isolate vehicle‐specific wiring.
• Open standard: EagleCAD for schematics, STL for mechanical parts, CSV for BOM.
Relevant technologies, frameworks, or libraries
• STM32F205 microcontroller (ARM Cortex-M3) running firmware for CAN bridging.
• OnePlus 3 smartphone running Android‐based NEOS with Linux userland.
• EagleCAD for PCB design, standard STL files for 3D printing.
Elements
• Components labeled clearly: “OnePlus 3 (NEOS)”, “STM32F205 CAN Board”, “DC-DC Power Module”, “Vehicle Harness (OBD-II)”, “Giraffe Adapter (Honda, Ford, etc.)”.
• Data flow: smartphone → CAN → vehicle & vice versa
• Power flow: battery/external supply → regulators → smartphone & CAN board
• Electronics (blue rectangles)
• Mechanical parts (gray outlines)
• Harness/adapters (green blocks)
• Firmware/software layers (Android kernel, CAN driver, userland services).