Site Guide

Find your way around the Engineering Club.

Know what you need? Search for a component, concept or project.

Around the site

Start

Labs

TestingExperimental

Build

Club

LearnExperimental

Go a little deeper

Entry points to larger collections. Use Search for individual records.

Learning paths & reference

Inside PiCrawlerExperimental

Inside Inventory

PiCrawler / Troubleshooting & Diagnostics

Troubleshooting & Diagnostics

Passive inspection, active probing, actuator tests and configuration writes stay distinct.

Diagnostic toolbox specifications

All 16 are designs to author, not installed executables. Their names are identifiers, not shell commands. The V1 capture utility only creates scoped private evidence copies; it does not image the card, capture root-only settings, preserve complete source trees or prove hardware function.

Interpreter/import provenance report passive files metadata

Record executable, OS, distribution locations, file hashes and checkout SHAs without importing hardware packages

V1 capture_state.py; importlib.metadata; git status/diff

Can move legs: No

Expected evidence: Expected package/source identity with missing entries explicit

Risk / limitation: Do not expose secrets/full environment; version labels alone do not identify code

Calibration candidate viewer passive files metadata

Read actual user/root/opt candidates, parse exactly12 finite offsets, hash copies before constructors

Picrawler.OFFSET_FILE reference; matched fileDB format

Can move legs: No

Expected evidence: Path/user/source/calibration hash references; no invented offsets

Risk / limitation: Read viewer is not helper launch; wrong length/default zeros can be dangerous

Servo channel/direction check actuator test

Supported body, one reviewed small change per known channel and recorded joint response

Picrawler channel table; approved do_single_leg or matched isolated test

Can move legs: Yes, potentially at constructor

Expected evidence: Observed joint/channel/direction record

Risk / limitation: Neutral/reset utility actively moves; wrong channel can jam

Single-leg coordinate check actuator test

One bounded local coordinate change from known-good stance with support

do_single_leg; inert strict coordinate checks first

Can move legs: Yes

Expected evidence: Photographed physical axis direction and return path

Risk / limitation: No mathematical bound proves physical clearance

Range validity/read-time console active sensor

Read raw code, valid cm, sample age and duration with stationary targets

Ultrasonic.read; D2/D3 pin allocation

Can move legs: No leg command; GPIO construction/probing active

Expected evidence: Known target error/invalid and timing record

Risk / limitation: No current echo-level conditioning claim; read retries not averaging

Camera enumeration/capture lifecycle active sensor

Enumerate installed sensor then qualify bounded startup, capture and close

rpicam/libcamera command available on recovered OS; Vilib lifecycle

Can move legs: No leg command; Vilib import initializes camera

Expected evidence: Actual camera identity/function and failure timeout record

Risk / limitation: Do not use camera import as passive inventory; no ribbon changes under power

Detection overlay and frame freshness active sensor

Show target count/location and time/frame identity before behavior

Vilib switches/detect_obj_parameter; owned metadata

Can move legs: No motion

Expected evidence: Actual width/flip/threshold/runtime and loss trace

Risk / limitation: A stale dict cannot authorize motion; optional models may be absent

Playback and capture device test active peripheral

Enumerate audio devices, then separate known sound, TTS, and STT text-only trials

ALSA enumeration; Music; Vosk/Piper

Can move legs: No leg command

Expected evidence: Routing/capture/model record with missing microphone explicit

Risk / limitation: V4 has output only established; setup/doctor fix writes config

Battery voltage monitor active sensor

Log A4-derived volts and compare suitable meter under supervised conditions

robot_hat.device.get_battery_voltage

Can move legs: No leg command

Expected evidence: Volts/validity/source and comparison uncertainty

Risk / limitation: Not SOC/current/per-cell health; do not place current meter across pack

Reviewed I2C device survey active bus probe

Review attached device behavior before address scan; compare with preserved baseline

Qualified I2C scan/doctor report; bus1

Can move legs: No leg command; active bus traffic

Expected evidence: Response addresses and conflicts, without revision inference

Risk / limitation: Scanning is active and may disturb attached devices; response is not exact HAT identity

Host/session/network diagnostic passive local status and authorized link test

Check verified host service, local ports, lease, RTT and reconnect

SSH/local service tools; proposed protocol counters

Can move legs: No movement unless separately armed test

Expected evidence: Failure classified as discovery/service/auth/transport/lease

Risk / limitation: Do not scan school networks broadly or publish credentials

CPU/RAM/thermal/throttle status passive os status

Record relevant thermal zone, load, memory and actual available throttle indicators

Linux system interfaces; selected optional psutil

Can move legs: No

Expected evidence: Time-aligned OS health data with measurement source

Risk / limitation: Do not assume fixed thermal zone or current voltage from historical throttle flags

IMU identity/axis/bias/timestamp check active sensor

Electrical review, raw stationary samples, axis transform and drift test

Selected MPU6050 driver after review

Can move legs: No motion initially

Expected evidence: Raw accel/gyro units, timestamps, bias and mount record

Risk / limitation: No absolute yaw/position or balancing from a sensor alone

Command queue/completion test inert software then actuator test

Use fake blocking worker to prove queue-empty differs from action completion; later measure real boundary

Proposed supervisor; V1 voice worker discrepancy

Can move legs: Only final supported phase

Expected evidence: Pending/active/canceled/finished log and latency observation

Risk / limitation: Thread timeout/kill is not output disable

Capture/log storage test temporary local files

Use disposable destination to test quota, writer close/readback and disk-full policy

Vilib snapshot/recorder reference; owned logger/writer

Can move legs: No

Expected evidence: Readable files, frame cadence and backpressure/failure counters

Risk / limitation: Never fill the real card to test; use an injected quota/fake storage boundary

MCU bridge/protocol check inert packets then active peripheral

Send framed synthetic packets before real sensor acquisition; reset/unplug/corrupt

Reviewed PlatformIO firmware; Pi transport adapter

Can move legs: No servo owner on MCU

Expected evidence: Sequence/CRC/session/dropout behavior and clock assumptions

Risk / limitation: Build/upload not bench verification; exact board must match

Robot HAT doctor: diagnostics before repair

The pinned Robot HAT 2.5.8 snapshot exposes robot_hat doctor through its CLI. The historical 2.3.0 installation has not been inspected and may not have that command. Do not install a newer HAT library merely to make the diagnostic command available. Its absence is part of the forensic record.

What report mode checks

The current source groups checks into board, library and audio. Board checks inspect HAT EEPROM data, /dev/i2c-1, MCU responses, GPIO-chip discovery and pinctrl availability. Library checks inspect the installed version and required Python modules/tools. Audio checks examine overlays, playback/capture cards, ALSA configuration, PulseAudio routing/volume, speaker-enable state and PCM clock status. Report mode invokes an I2C scan, so it is active bus probing rather than perfectly passive file reading; wait until external additions and their bus behavior have been reviewed.

The V4 profile has no onboard microphone; its capture check is revision-aware. HAT identification falls back to assuming V4 when a recognized EEPROM is absent. A printed V4 label from that fallback is not equivalent to reading the actual silkscreen. Similarly, detecting one of 0x14/0x15/0x16 establishes a response, not the exact hardware revision or actuator health.

Report mode does not command a gait, save calibration or run package upgrades in the inspected code. Nevertheless it imports diagnostic support, uses shell utilities and probes interfaces. Preserve the state first and record the exact diagnostic version. Its successful overall result is not a proof that legs are assembled correctly, sonar is accurate or camera/voice applications work.

What --fix changes

The current doctor_fix() can enable I2C through raspi-config, load the i2c-dev module, run audio setup affecting overlays/ALSA/PulseAudio, set default audio routing and volume, and enable/prime speaker I2S. Some changes require reboot. These are configuration writes and runtime changes, not pure diagnosis. Capture the relevant files and audio state before deliberately applying them.

There is also a source key mismatch worth retaining: fix logic checks a name onboard MCU (0x14) while the check table uses onboard MCU. A failed MCU check alone may therefore not take the intended fix branch if the bus node is otherwise present. This is source inspection, not a test on a HAT. Read the report and reason about the failing boundary instead of treating --fix as exhaustive recovery.

Pi 5 GPIO behavior

Current pin.py discovers the header GPIO chip through device/sysfs information because Pi 5 GPIO numbering has changed across kernel generations. Hardcoding gpiochip4 from an old tutorial is not a durable fix. The diagnostic can help reveal chip selection, but the exact installed driver's behavior must be inspected. Record kernel, gpio device nodes and package source before migration.

Source evidence: hat-doctor, hat-cli, hat-audio, hat-pin, hat-device. Doctor and --fix were source-inspected only; neither was run against this robot.

Practical low-voltage robotics safety and stopping

The ordinary hazards are moving servo pinch points, an unexpected startup pose, stalled/heating actuators, short circuits and improper battery charging. A safe test area needs space for all legs, stable support when appropriate and an operator able to reach the physical cutoff. Remove power before changing the camera ribbon or actuator wiring. Secure cables so a moving limb cannot pull or trap them.

Software construction can move the machine before the visible main loop starts. Check imports/constructors in a script before running it. Support the body for the first recovered initialization and observe channel direction. Move to a clear level surface for controlled locomotion only after assembly, offsets and power have been checked. More speed is not a remedy for a grinding joint or a repeatedly resetting Pi.

There are several different stopping operations. Cancelling queued commands prevents future requests. A sit command actively moves to another pose. Ctrl+C asks Python to unwind, but blocking calls, exception handling or a separate thread can delay the outcome. Closing SSH or pausing a debugger does not remove HAT output. The MCU and servos can hold the last command while application code is no longer advancing.

A practical future control layer needs a persistent stop state, one motion owner, bounded action length, command-age/deadman checks and a reviewed cancellation path. An independent accessible power cutoff covers faults that software or networking cannot handle. It may allow the body to collapse, so consider support and nearby hands. When stable, shut Linux down normally before removing power; when a servo is actively stalling or motion is unsafe, immediate cutoff takes precedence.

The HAT's USR/RST buttons are ordinary configurable inputs in the documented V4 system. They are not inherently certified or independent emergency-stop circuits. An added MCU watchdog also becomes a stopping mechanism only if its real control/power path is designed and tested. Label these differences so the dashboard does not promise a guarantee that the electrical system lacks.

Inspect the Li-ion pack and use the matching charging arrangement. Do not improvise polarity, parallel supplies or a larger battery connection without electrical review. Avoid high-current actuator paths through thin breadboard wires or Pi GPIO. The package supplies interface relationships and recovery preflight, not guessed expansion wiring or maximum current figures.

Source evidence: pc-core, hat-robot, hat-v4-hardware, hat-v4-features, user-evidence. All physical safety checks remain future tasks.

Second-pass source discrepancies

Confirmed source/software issues

The current control CLI calls cali_helper_web with zero arguments although the method requires leg, pos and enter. A bound-signature test rejects it. The helper also copies do_step's None return; isolated evaluation raises TypeError. The terminal calibration helper is a different, available path. Neither has been run on this robot.

The voice worker removes a queued action before performing it, while its wait method observes queue emptiness rather than active completion. Isolated software checks demonstrate the missing completion condition; no physical race is claimed. The coordinate getters copy only the outer list, so a caller's inner-list mutation changes state. The interpolation layer drops a maximum change below one degree because of integer truncation. Those behaviors matter for future control code.

The IK pipeline projects/clips coordinates before the later angle limiter. A far-out target can produce finite in-range angles without israise identifying the original unreachable request. The forward reconstruction then disagrees with the requested coordinate. Independent forward equations verify ordinary samples and expose this different behavior for projected requests.

Documentation versus implementation

The README maps some example numbers to filenames that do not exist in the pinned tree. The tree and atlas are authoritative for source paths. The old install URL under python/python_start returns 404; current docs use python/install_all_modules.html. The action-gallery prose has an inconsistent Z-direction explanation; source swing lift from -50 to -30 defines the implemented lift direction. Older symmetric stance prose differs from the current generated target arrays.

The current control API reference names gesture_detect_switch and gesture fields absent from inspected Vilib core. Hand landmarks exist as a different, conditional API; this is not an implemented rock/paper/scissors recognizer. The bull-fight source's 100/220 pixel band is inconsistent with a default 640-wide capture unless another transformation is demonstrated. Do not advertise its centering as verified.

V4 pages can link into V5 MCU material. V4/V5 MCU clock/flash claims differ despite a same-named part, and the driver uses a distinct 72 MHz timer assumption. Generic V4 pinout says GPIO20 is NC while current audio code uses it to enable the speaker. Some V4 text counts PWM sets/motor channel labels inconsistently. Keep the revision-specific tables/software visible and inspect the physical board before expansion.

Recovery audit correction

Reading the actual pre-May-2026 PiCrawler core establishes /opt/picrawler/picrawler.config, not the generic Robot default .config/robot-hat/robot-hat.conf. The current core uses expanduser for .config/.picrawler.config. Both that actual historical path and user/root candidates are in the corrected recovery plan. The version string remains 2.1.4 across the refactor, so it cannot resolve the history by itself.

Boundaries that remain unknown

No current installed package, root config, physical camera, MCU marking or actual gait was inspected. The exact 2.3.0 egg causing the historical missing-Robot import was not recovered, and inspected nearby exports do not prove a blanket removed API. Official coordinate images could not be retrieved for visual inspection here; exact mounted X/Y arrows remain a recorded physical/frame follow-up. Syntax checks do not prove external package imports or runtime performance.

Source evidence: pc-core, pc-cli, pc-control-api, pc-voice, hat-robot, hat-doctor, hat-audio, vi-core, pc-readme, pc-historical-core; validation/offline-results.json.

Continue

Meeting checklist · Source library · Modification atlas · All project proposals