PiCrawler / Start Here
Start Here
Connect to the Pi, preserve its setup and run a passive first Python program.
What you need
- The club's SunFounder PiCrawler CN0488D: Raspberry Pi 5 / 4 GB, twelve servos, camera, ultrasonic ranger and speaker. Robot HAT V4 — visually confirmed by club owner, inspected October 24 and reported October 25, 2026. MCU marking and firmware remain unconfirmed.
- A stable support for the body, clear space around the legs, an inspected battery and access to the physical power cutoff.
- A computer with an SSH client, an authorized network, and the Pi's verified account and hostname/IP. Windows PowerShell can open the connection. A Pi keyboard/monitor is optional if local access is needed to recover those details.
Before power
Support the body and clear the legs, cables and pinch points. Check for binding, loose connectors and a damaged, swollen or hot battery; stop if any are present. Confirm the actual power/charging arrangement and know how to cut power. Change wiring only with power removed.
Boot services, hardware imports and robot constructors can activate motors. Keep an operator beside the cutoff even while connecting. Do not run a calibration helper to discover what is installed.
Connect to the Pi
Ask the owner for the authorized account and host, or confirm them locally on the Pi or in an authorized router's client list. Use the same authorized network; do not scan the campus network. In Windows PowerShell, replace both uppercase placeholders:
Windows PowerShell
ssh VERIFIED_USER@VERIFIED_HOST_OR_IPCheck the host fingerprint against this Pi before accepting it. A name error means the host was not found; use its confirmed address. A timeout can mean the Pi is unreachable or Wi-Fi isolates clients. Permission denied means the account or authentication needs checking. A changed host key needs local identity confirmation. Connection diagnostics.
Preserve the existing setup
Before installing, upgrading or actuating anything: preserve the original SD-card installation, complete installed code and actual calibration off the Pi, then verify the copies. Keep the original card; qualify recovery on a spare. Record the interpreter and effective user/home used by the installed workflow: calibration selected under a privileged account can differ from the login user's files.
Use the full recovery and SD-card procedure for commands, imaging and verification, and the calibration reference to locate the real offsets. Do not reinstall, upgrade, clean, pull, reset or replace the recovered installation first. VS Code Remote SSH also writes a server to the Pi, so connect through plain SSH and preserve first.
First Python program
This passive check reads the board model, interpreter and installed distribution metadata. It does not import picrawler, robot_hat or vilib, open GPIO/camera devices, or command motors.
After preservation, use a separate club folder. In the Pi Linux shell reached through SSH, run:
Pi Linux shell
mkdir -p ~/engineering-club-picrawler
cd ~/engineering-club-picrawler
nano pi_identity.pyIf that filename already exists, use a new name so you keep its contents. Paste this complete program. In nano, save with Ctrl+O, Enter, then exit with Ctrl+X.
Python · pi_identity.py on the Pi
from pathlib import Path
import platform
import sys
try:
from importlib import metadata
except ImportError:
metadata = None
model_file = Path("/proc/device-tree/model")
try:
model = model_file.read_text().rstrip("\x00\n")
except OSError:
model = "Unavailable: check that this is the Pi's terminal"
print("Board:", model)
print("Python:", platform.python_version())
print("Interpreter:", sys.executable)
for name in ("picrawler", "robot_hat", "vilib"):
if metadata is None:
version = "Metadata check needs Python 3.8 or newer"
else:
try:
version = metadata.version(name)
except metadata.PackageNotFoundError:
version = "No distribution metadata for this interpreter"
print(name + ":", version)Run it in that same Pi Linux shell:
Pi Linux shell
python3 pi_identity.pyUse the recovered interpreter's actual executable if it differs from python3. Expected output has this shape; placeholders below are not recorded robot results:
Board: <model read from this Pi>
Python: <installed Python version>
Interpreter: <selected Pi interpreter path>
picrawler: <version or missing-metadata message>
robot_hat: <version or missing-metadata message>
vilib: <version or missing-metadata message>Verify and continue
Check that the board line identifies the expected Raspberry Pi and that the interpreter is on the Pi. A completed run proves this Python file executes there and reports available metadata. Missing metadata is useful evidence, not an installation instruction. It does not prove hardware compatibility, working packages, calibration or motion.
Next, edit the same file through VS Code Remote SSH. Before a live sensor or motion experiment, follow the hardware qualification gates. Review source/import side effects, preserve calibration, support the robot and supervise one bounded test with an independent cutoff. Ctrl+C or closing SSH is not an emergency power stop. The range laboratory is a proposal to develop after qualification, not a supplied runnable logger.
Troubleshooting
| Symptom | Next check |
|---|---|
| SSH will not connect | Confirm power, authorized network, actual host and account. See networking. |
| Board says unavailable or interpreter is on Windows | Open the Pi terminal and run the file there. See Programming. |
| Package metadata is missing | Record the interpreter and installation; do not install or upgrade to silence the message. See recovery. |
| You cannot confirm calibration or safe startup | Stop before hardware imports or motion. Use calibration and diagnostics. |
Continue
Meeting checklist · Source library · Modification atlas · All project proposals