Skip to content

Hardware

This is the technical hardware reference for interfaces, wiring, electrical checks and support evidence. For component selection and user-facing options, see Hardware & sensors and the canonical BOM. The project target is Raspberry Pi 3 with an active graphical desktop and the documented 5-inch 800×600 display; exact reference board and panel revisions are not recorded. Pi 4/5 compatibility is not established.

External controllers are optional. phos-hw v1 carries supported sensor observations and semantic LED commands between the local runtime and a compatible controller. MCP is a separate agent-facing boundary. For the reference ESP32 and setup steps, see the controller protocol and official companion firmware. ENS160 and AHT21 share the ESP32 I²C bus (documented addresses: ENS160 0x53 or 0x52; AHT21 0x38); the controller publishes protocol telemetry and the Pi owns validity, freshness and semantic interpretation.

Compatibility and validation status

HARDWARE VERIFIED below means the repository records an operational physical path. It does not imply a reproducible test log, exact component model, every variant, or broad simultaneous-operation validation. AUTOMATED TEST VERIFIED means software behavior was exercised with tests, not that physical hardware was tested.

Hardware Implementation support Documented compatibility Physical validation evidence Known limitations
Raspberry Pi 3 and graphical display Required Tk/desktop face and eye runtime; configured 800×600 target Raspberry Pi 3 reference platform; 5-inch 800×600 display documented HARDWARE VERIFIED at project-baseline level: display/eyes reported operational. Exact board revision, panel model/interface and reproducible test record are not captured. Active graphical desktop required. No model-specific Pi 4/5 support established. Other panels and resolutions are NOT VERIFIED.
Raspberry Pi Camera Optional Picamera2/libcamera camera provider used by configured Vision features Raspberry Pi Camera path HARDWARE VERIFIED at project-baseline level for camera/face tracking; camera snapshot availability on Pi also recorded. Exact camera module/interface revision is unspecified. Do not infer support for every USB or CSI camera. Model/camera compatibility, new expression models and broader concurrent load need separate validation.
Touch input Desktop touch events feed supported local gestures Touchscreen/input must be recognized by the graphical desktop Software path AUTOMATED TEST VERIFIED; exact physical touch panel operation is NOT VERIFIED in the records reviewed. Touch is optional and not required for the face.
USB microphone Optional PyAudio capture and STT path Generic USB microphone input HARDWARE VERIFIED on Raspberry Pi 3 for finite capture, resampling, VAD and local Vosk transcription. Exact device model is not recorded. Voice is disabled by default; local Vosk needs its separately installed model. Cartesia is an external service. No continuous listening.
Audio output / speaker Independent optional synthesis and playback path through ALSA or PipeWire Output recognized by selected system playback backend Current-state records physical TTS validations; exact speaker/output model and connection are UNKNOWN. Output device and TTS must be configured; local Piper needs model files; cloud providers need service access/credentials.
BME280 / BMP280 Optional local Pi I²C environmental providers Bus 1, configured 0x76/0x77; breakout electrical properties vary AUTOMATED TEST VERIFIED; breakout, wiring, address, measurement accuracy and Pi field operation are NOT VERIFIED. BME280 supplies humidity; BMP280 does not. No auto address scan.
MPU-6050 / GY-521 Optional local Pi I²C IMU plus software motion interpretation Bus 1, configured 0x68/0x69; actual breakout must be checked AUTOMATED TEST VERIFIED; exact breakout, installation and Pi sensor behavior are NOT VERIFIED. No automatic bias calibration; mounting affects interpretation.
ESP32, ENS160/AHT21 and WS2812B Optional controller-backed sensor and LED paths using phos-hw v1 Reference phos-esp32 firmware; controller sensors/LEDs use USB serial and controller bus/output Protocol and service paths AUTOMATED TEST VERIFIED. Roadmap still requests controller/firmware field tests; physical sensor/LED integration is NOT VERIFIED. Not every ESP32 or firmware is compatible. Exact board, module, ring, pin, supply and signal-conditioning setup are not recorded. eCO₂ is an estimate, not direct CO₂.
CCS811 No active provider/configuration found in this checkout No current support claim NOT IMPLEMENTED in current source tree; see audit note below. Historical release/decision/current-state documents and installer summary still mention CCS811; PHOS-DOC-009 remains unresolved pending reconciliation.
Servos/motors No implementation found Planned item only in older hardware inventory NOT IMPLEMENTED No control provider or supported wiring.

The repository records do not establish one end-to-end hardware-validation run covering every optional sensor, the display, controller, audio, LED and MCP operation together. See current state and roadmap for outstanding manual hardware gates.

Face display session

The reference Raspberry Pi face display is part of PHOS while the runtime is running, so its X11 session is configured not to blank or enter DPMS standby at startup. This keeps the fullscreen face visible and avoids HDMI audio being suspended while the display wakes, which can otherwise affect the first local TTS phrase after a long idle period.

For the reference X11 deployment, the desktop-session bridge validates the active local seat0 logind session before importing its graphical environment (including DISPLAY and, where required, XAUTHORITY) into the PHOS user service. SSH/X11 forwarding is not a robot-face display source. PHOS then applies the following idempotent commands:

xset s off
xset -dpms
xset s noblank

Run those commands from the same local graphical session as PHOS when troubleshooting; an SSH shell, including one with DISPLAY=:10.0 or forwarded X11, is not sufficient. See the deployment bridge setup and status checks in installation. If xset is unavailable or a command fails, PHOS logs a warning and continues. The automatic behavior targets the reference X11 deployment. It deliberately skips sessions identified as non-X11; Wayland display-power policy is outside this deployment implementation.

Environmental sensors

BME280

PHOS supports a BME280 through robot.hardware.bme280.BME280Provider and the provider-neutral environmental service. Web Admin → Sensors shows temperature in °C, relative humidity in %, and station pressure in hPa (not sea-level adjusted). Fresh readings can drive the confirmed environmental interpreter; raw values do not reach eyes, LEDs or Vision.

Expected wiring for a 3.3 V-compatible I2C breakout, with the Pi powered off:

Breakout signal Raspberry Pi 3 physical header pin Function
3.3 V-compatible supply input 1 3.3 V
GND 6 Ground
SDA 3 GPIO2 / SDA1
SCL 5 GPIO3 / SCL1

These are expected signal connections, not a claim about your module's pin order or VIN regulator. Check its schematic/labels before wiring. Pi GPIO uses 3.3 V logic; do not pull SDA/SCL up to 5 V. The bare BME280 supply is 1.71–3.6 V, with VDDIO 1.2–3.6 V; a breakout may add a regulator or level shifter, which must be checked independently. For exposed CSB/SDO, follow the board schematic: CSB high selects I2C; SDO low selects 0x76, high selects 0x77. Do not leave SDO floating or assume the breakout has particular pull-ups. Sources: Bosch datasheet, driver wiring reference.

PHOS uses /dev/i2c-1 and the configured sensors.environmental.i2c_address string, "0x76" or "0x77". It does not scan or silently fall back to another address. The selected adapter checks register 0xD0: BME280 requires chip ID 0x60, BMP280 requires 0x58. A mismatched chip is unavailable; there is no automatic switch to another type. See setup and bus verification. Place the sensor away from Pi/display heat and check readings against a reference; no enclosure-heating correction or calibration offset is applied.

BMP280

PHOS also supports BMP280 through robot.hardware.bmp280.BMP280Provider, using exactly the same environmental service and I2C bus ownership as BME280. Select one sensor in Web Admin → Sensors → Type, save and Restart PHOS. BMP280 measures temperature (°C) and station pressure (hPa); it has no humidity sensor. Its reading contains humidity_percent: null; the UI says Not supported, never 0%. Both adapters publish explicit available measurements.

The 3.3 V-compatible I2C wiring assumptions in the BME280 table above apply to BMP280 breakouts too; confirm the actual board schematic and pin labels. Address is configurable as 0x76 or 0x77. Power off before changing modules. Follow the single installation procedure for dependencies, bus enablement and verification.

ENS160 and AHT21 through the ESP32 controller

ENS160 and AHT21 share the ESP32 I2C bus. ENS160 uses 0x53 or 0x52; AHT21 uses 0x38. The ESP32 publishes phos-hw v1 sensor_update and sensor_status records over serial, and the Raspberry Pi exposes them as sensors.ens160 and sensors.aht21. Neither device has a direct Raspberry Pi I2C provider.

ENS160 reports estimated eCO2 in ppm, TVOC in ppb and AQI-UBA on a 1–5 scale. Validity and AHT21-compensation status accompany its measurements. AHT21 provides controller-provenance temperature and relative humidity. Per-measurement freshness, validity and controller-session ownership determine usability.

Shared I2C bus

BME280/BMP280 and MPU-6050 can share the Raspberry Pi I2C bus if their actual module configuration and addresses are compatible. ENS160 and AHT21 use the ESP32 bus instead.

Wiring and setup checklist:

  • verify the exact I2C addresses of both physical modules;
  • verify module voltage requirements and whether each breakout includes regulation/level shifting;
  • document the Raspberry Pi pins used for SDA, SCL, power, and ground;
  • verify that I2C is enabled on Raspberry Pi OS;
  • distinguish the expected BME280 wiring above from the as-built wiring verified on the real hardware.

Inertial sensor

GY-521 (MPU-6050)

PHOS supports an optional GY-521 module based on the MPU-6050 through robot.hardware.mpu6050.MPU6050Provider, disabled by default. It publishes raw acceleration in m/s² and angular velocity in °/s through the IMU service. PHOS software derives confirmed motion and tilt states from those samples; they are interpretations of acceleration/rotation, not direct absolute orientation or hardware-generated gestures.

The device provides six inertial measurement axes:

  • 3-axis accelerometer: X, Y, Z linear acceleration;
  • 3-axis gyroscope: X, Y, Z angular velocity / rotation rate.

For a 3.3 V-compatible GY-521 breakout, the expected Pi bus 1 signals are: VCC → 3.3 V, GND → GND, SDA → GPIO2/pin 3, and SCL → GPIO3/pin 5. This is not a claim about a specific board's regulator, pin order or logic conditioning: verify its schematic and labels before applying power. AD0 low selects 0x68; AD0 high selects 0x69. PHOS does not use INT, XDA or XCL; confirm board pull-ups and leave unused pins as the board manufacturer specifies.

Important distinction: the MPU-6050 measures acceleration and angular velocity. Absolute orientation is not a direct raw sensor output and would require software-side estimation/filtering if needed later.

The adapter wakes the chip, selects ±2 g / ±250 °/s scale, reads the six raw axes and applies only those fixed scale conversions. It intentionally performs no startup bias calibration because that would require PHOS to be perfectly still. Mounting bias and gravity remain in readings. See installation for I2C verification and setup.

PHOS also derives stable software observations from those raw samples: STILL, MOVING, TILT_LEFT/RIGHT/FORWARD/BACK, SHAKE and IMPACT. They are not hardware interrupts. These observations drive documented eye and LED semantic intent through BehaviorEngine; raw IMU data does not control GPIO, renderer or LEDs directly.

Before use, verify the exact GY-521 revision, labels, supply/logic requirements, configured address and coexistence with any BME280/BMP280 on the shared bus. PHOS applies fixed scale conversion without startup bias calibration; board mounting and gravity affect the readings.

WS2812B RGB LED ring

The optional WS2812B addressable RGB LED ring connects to the ESP32 controller, which drives its data line and animation timing. The Raspberry Pi sends resolved phos-hw v1 set_led_animation messages over USB/serial; it does not drive the ring's data line.

SemanticLedService arbitrates robot-state, environmental, and temporary user signals. Output requires an active serial connection and LED capability advertised by the controller for that session. Firmware owns the physical data pin, LED count, color-channel ordering, and logical direction/origin mapping.

Connection prerequisites

  • Enable hardware_controller.enabled in config/phos.yaml.
  • Select the actual hardware_controller.serial.device and baud_rate.
  • Flash phos-esp32 for phos-hw v1 capability discovery, heartbeats, and set_led_animation.
  • Leave the separate legacy led_ring.enabled setting disabled for this build. Its pin/count and per-pixel settings do not configure the ESP32 ring.

See the controller guide and installation steps.

Electrical considerations

Power the ring from a regulated supply sized for its specified voltage, LED count, and worst-case brightness. WS2812B rings commonly use 5 V; consult the actual ring's specifications when sizing the supply and wiring.

Connect the ring's data input to the firmware-selected ESP32 output, and connect ESP32 ground to LED-supply ground. Use a suitable 3.3 V-to-5 V data-level shifter where required, plus the manufacturer's recommended data-line protection and supply decoupling. Do not power the ring from a GPIO pin. Keep the Pi connection to the controller on USB/serial.

Start at low brightness. Robot-state and user signals resolve to bounded animations such as solid, breathe, pulse, blink, and spin. On reconnect and a fresh LED capability report, PHOS reapplies the currently resolved intent. Loss of controller connectivity makes LED output unavailable while the display and other robot services continue.

Hardware/software boundary

Directly connected hardware does not belong directly inside BehaviorEngine, Vision, LLM, or UI code.

Future integrations should preserve this direction:

Physical sensor / LED hardware
        ↓
Hardware-specific driver/provider
        ↓
Provider-neutral reading or command
        ↓
PHOS core / state / behavior integration

The implemented local and controller-backed environmental and IMU services are described in architecture. Controller-backed WS2812B output is implemented through SemanticLedService and phos-hw v1 as described above. These implementation records do not establish that a particular sensor breakout or LED assembly has been physically validated. No active CCS811 provider/configuration or servo/motor output path exists in this checkout.

Wiring information still to record

The following details must be filled in after verifying the physical components:

  • BME280 exact breakout/module revision;
  • BME280 I2C address on the actual board;
  • ENS160 and AHT21 controller wiring and addresses on the actual board;
  • GY-521 exact breakout/module revision;
  • MPU-6050 I2C address / AD0 configuration;
  • whether the MPU-6050 INT pin will be used;
  • Raspberry Pi SDA/SCL pins used in the final build;
  • sensor power/logic voltage for the exact breakout boards;
  • WS2812B ring LED count;
  • WS2812B external power-supply specification;
  • firmware-selected ESP32 WS2812B data pin;
  • logic-level shifter choice, if required;
  • final connector/wiring scheme;
  • microphone interface;
  • audio output hardware.

Rules

  • Record new hardware here when it becomes part of PHOS.
  • Distinguish selected/available hardware from software-integrated hardware.
  • Never assume an exact module revision, GPIO pin, I2C address, supply voltage, or protocol detail without verifying the real component.
  • Hardware-specific implementation belongs under src/robot/hardware/ unless the repository architecture explicitly establishes a different location.
  • Application subsystems must not depend directly on Raspberry Pi hardware libraries.
  • Use provider-neutral interfaces between hardware drivers and PHOS core logic.
  • Use mocks/fakes for hardware-dependent tests.
  • Do not make unapproved new sensors influence PHOS behavior.
  • Do not assign unapproved semantic LED colors/states.

Current hardware status

Project records describe the Raspberry Pi 3 runtime, 800×600 display/eyes and Raspberry Pi Camera face tracking as operational. Exact board, display and camera models are not recorded, so this is not a compatibility claim for other models.

BME280/BMP280, controller-backed ENS160/AHT21, MPU-6050 motion interpretation and controller-backed WS2812B semantic output are implemented in software and automated-test-covered. The roadmap still marks optional sensor wiring/address, controller/firmware and LED field validation as pending. ENS160 eCO₂ is an estimated/equivalent value, not direct NDIR CO₂. See the status matrix above and the roadmap before treating an optional assembly as hardware verified.