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 / Source Code & API Library

Source Code & API Library

Pinned official snapshots, real files, source-linked methods and example programs.

Which function do I need?

Find the interface, then read its side effects before using it. These entries describe pinned upstream source; they do not establish the robot's installed version.

  • Movement — Picrawler.do_action: blocking motion; qualify the robot before use.
  • Range — Ultrasonic.read: trigger/echo activity; review invalid readings and timing.
  • Camera — Vilib.camera_start: starts capture; check camera setup and lifecycle.

Public user API means an intended user interface, not a stability guarantee. Advanced and internal interfaces need deliberate version control.

Pinned downloads & licenses

Search by function, topic or filename, or browse the index in small groups.

Pinned source files

Use the search above to find a file, or choose Browse all records. Upstream files are evidence, not a complete installed club application.

Official examples & support programs

Search or browse to find an example. Inspect imports and startup before running upstream programs.

Pinned source downloads & licenses

Official source repositories & downloads

An upstream source ZIP is a pinned snapshot, not an installer or a configured robot. Downloading does not install dependencies, preserve calibration or qualify hardware. Local fixtures are limited research evidence. No project proposal has a working application download.

sunfounder/sunfounder-voice-assistant

Vosk speech recognition, Piper speech output and model/provider adapters

32d2dae40d47fd6c4fe4180db28cd47e83efd851

GPL-3.0 (repository license; models/media need separate review). Archive response and ZIP signature checked 2026-10-19.

PiCrawler and Robot HAT version strings alone cannot identify implementation. Current repository snapshots may differ from recovered eggs, calibration paths and optional camera/audio/model dependencies. Preserve and compare the installed source before migration.

Reference: source code map

Where behavior actually lives

RepositoryExact path at pinned SHAResponsibilitySelected symbols
picrawlerpicrawler/picrawler.pyPicrawler class, IK, limits, channel order, MoveList actions/body helpers, calibration web helperPicrawler, Picrawler.init, Picrawler.coord2polar, Picrawler.polar2coord, Picrawler.limit, Picrawler.limit_angle
picrawlerexamples/0_calibration.pyTerminal chart calibration; coordinate edits -> saved angle offsetsshow_info, cali_helper
picrawlerexamples/14_preset_actions.pyExample-level expression functions and interactive action menusit, stand, look_up, look_down, dance, wave_hand
picrawlerexamples/11_record_new_step.pyIn-memory recording with deep-copy framesprint_current_step, save_new_step, play_all_new_step, main
picrawlerexamples/voice_active_crawler.pyVoiceActiveCrawler lifecycle, textual action parser, queue and workerVoiceActiveCrawler, VoiceActiveCrawler.init, VoiceActiveCrawler._handle_init_error, VoiceActiveCrawler._init_crawler, VoiceActiveCrawler.on_start, VoiceActiveCrawler.before_listen
picrawlerpicrawler-control/scripts/pc.pyCLI movement/pose/sensor/sound plus faulty calibration callcmd_move, cmd_pose, cmd_sensor, cmd_sound, cmd_calibrate, main
robot-hatrobot_hat/robot.pyInitialization, offset persistence and synchronized blocking interpolationRobot, Robot.init, Robot.new_list, Robot.servo_write_raw, Robot.servo_write_all, Robot.servo_move
robot-hatrobot_hat/servo.pyDegrees -> microsecond pulseServo, Servo.init, Servo.angle, Servo.pulse_width_time
robot-hatrobot_hat/pwm.pyTimer groups, register writes and pulse countsPWM, PWM.init, PWM._i2c_write, PWM.freq, PWM.prescaler, PWM.period
robot-hatrobot_hat/adc.pyMCU ADC read/voltageADC, ADC.init, ADC.read, ADC.read_voltage
robot-hatrobot_hat/i2c.pysmbus2/device/bus communication_retry_wrapper, I2C, I2C.init, I2C._write_byte, I2C._write_byte_data, I2C._write_word_data
robot-hatrobot_hat/pin.pylgpio GPIO claims and Pi 5 chip discovery_chip_num, _read_first, _dev_chip_num, _bus_chip_of, _get_gpiochip_num, Pin
robot-hatrobot_hat/modules.pyUltrasonic timing and optional sensor driversUltrasonic, Ultrasonic.init, Ultrasonic._read, Ultrasonic.read, Ultrasonic.close, ADXL345
robot-hatrobot_hat/device.pyHAT identification, revision behavior and battery acquisitionDevices, Devices.init, set_pin, get_usr_btn, set_led, get_led
robot-hatrobot_hat/audio.pyV4/V5 audio profiles and ALSA/overlay/routing helpersrun, shell_quote, command_path, command_exists, desktop_user, board_profile
robot-hatrobot_hat/music.pypygame sound/music pathsMusic, Music.init, Music.time_signature, Music.key_signature, Music.tempo, Music.beat
robot-hatrobot_hat/filedb.pyText key/value calibration storagefileDB, fileDB.init, fileDB.file_check_create, fileDB.get, fileDB.set
robot-hatrobot_hat/doctor.pyReport/fix diagnostic logic_icon, _print_check, _print_section, _device, _i2c_devices, _check_hat
robot-hatrobot_hat/_cli.pyrobot_hat command dispatch_info, _warn, _deprecated, _audio_script, _run_as_root, print_version
vilibvilib/vilib.pyClass-level Picamera2, camera loop, detection switches, Flask and recordingfindContours, index, get_frame, get_qrcode_pictrue, get_png_frame, get_qrcode
vilibvilib/color_detection.pyHSV/contour color blob detectioncolor_detect_work, test
vilibvilib/face_detection.pyOpenCV face cascade; no identity recognitionset_face_detection_model, face_detect, test
vilibvilib/qrcode_recognition.pypyzbar decode and result fieldsqrcode_recognize
vilibvilib/objects_detection.pyTFLite object model interpreter and labelsadd_class_names, copy_list_into_list, set_input_tensor, get_output_tensor, __detect_objects, put_text
vilibvilib/image_classification.pyTFLite image classificationset_input_tensor, __classify_image, imgshow_fuc, main, classify_image
vilibvilib/hands_detection.pyMediaPipe hand landmarksDetectHands, DetectHands.init, DetectHands.work
vilibvilib/pose_detection.pyMediaPipe human poseDetectPose, DetectPose.init, DetectPose.work
voicesunfounder_voice_assistant/stt/vosk.pyActual recognition, wake words and language model cacheVosk, Vosk.init, Vosk.is_ready, Vosk.init, Vosk._load_model_list, Vosk.update_model_list
voicesunfounder_voice_assistant/tts/piper.pyNeural speech generation/model cache_parse_voices_json, Piper, Piper.init, Piper._load_model_list, Piper.update_model_list, Piper.get_language
voicesunfounder_voice_assistant/llm/init.pyProvider adapters and endpoint defaultsDeepseek, Deepseek.init, Grok, Grok.init, Doubao, Doubao.init
voicesunfounder_voice_assistant/llm/llm.pyRequest/stream/message implementationAuthorization, LLM, LLM.init, LLM.debug, LLM.set_api_key, LLM.set_base_url
voicesunfounder_voice_assistant/voice_assistant.pyBase speech/intent lifecycle orchestrationVoiceAssistant, VoiceAssistant.init, VoiceAssistant.before_listen, VoiceAssistant.after_listen, VoiceAssistant.before_think, VoiceAssistant.after_think

Do not stop at a re-export

PiCrawler's llm/stt/tts/voice_assistant modules forward to Robot HAT. Robot HAT forwards to the separate SunFounder voice-assistant implementation; its TTS adapters additionally enable the speaker. Follow both links to understand audio device selection, model downloads and provider requests. SOFTWARE_ARCHITECTURE.md explains the process/interface boundaries.

SPI/UART connectors are hardware capabilities, but current Robot HAT does not establish standalone SPI/UART public classes equivalent to older branches' spi.py. The installer includes spidev/pyserial. Do not create a nonexistent symbol link because an older package had a wrapper or the connector exists.

Repository tree inventory

repository-files.json lists every blob path in the four researched current upstream trees, including binary model/audio files that were not executed or fully inspected. source-index.json separately identifies the text files actually retrieved and syntax/symbol inspected, with repository SHA, Git blob SHA, SHA-256, line count and imports. That distinction prevents a path listing from becoming a false inspection claim.

Calibration and version history use separate immutable links in SOURCE_LEDGER.md. Existing source checkouts on the physical Pi are still uninspected. The map is a current upstream reference, not a fabricated map of the SD card.

Reference: source licensing

Source licensing and attribution

The inspected PiCrawler, Robot HAT, Vilib and SunFounder voice-assistant repositories contain GNU GPL version 3 license texts. Original evidence fixtures included here retain byte-identical source and a per-repository LICENSE. Their immutable repository URLs, hashes and purpose are recorded in evidence/fixtures.json and SOURCE_LEDGER.md. They are source research fixtures, not edited vendor files or a claimed club implementation.

Copying, adapting and distributing those source files must follow their license terms, including retaining applicable notices and supplying corresponding source where the license requires it. Publishing a modified program is different from merely linking to a repository. Do not remove attribution when turning an example into a future club program, and do not assume an upstream license automatically determines the license of unrelated club prose or separately obtained models/audio.

The research explanations, metadata and recovery utility are newly authored. This package does not choose a new overall license for the Engineering Club repository. Its existing policy can be applied deliberately later. Model files, music, recordings and documentation images are not bundled just because a repository contains them: asset-specific provenance/conditions need review before redistribution. This package links those locations and does not make a blanket legal conclusion about every asset.

No raw physical-recovery backup, API key file, former-member identity, private photo screen or old executable is distributed. A future captured SD image is private recovery material, not publication content.

Continue

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