Raspberry Pi GPIO and I2C sensor operations runtime. The Pi operator connects to a board — running locally on the Pi, remotely over SSH, or fully simulated for testing/demos without hardware — discovers its GPIO/I2C state, declares pin roles, and reads or writes hardware with every GPIO write gated behind explicit user approval.
bahulam install raspberry-piRuns locally via the Bahulam CLI from github.com/codehive-sr/awesome-bahulam-plugins
Tools (12)
Create or reuse a tracked Raspberry Pi board target. Use target_kind=local when this runtime is on the Pi itself, target_kind=ssh to drive a remote Pi over the network, or target_kind=virtual for a fully simulated board (no hardware or network) used for testing and demos. auth_env must name an environment variable holding an SSH private key path or password — never pass the secret value itself as a tool argument.
Probe a connected board: model info, GPIO pin state (pinctrl/ raspi-gpio), and I2C devices found on the bus (i2cdetect). For a virtual board this synthesizes the same shaped output from seeded simulation state instead of touching real hardware. Use this before claiming a pin or sensor is unavailable.
Declare a pin's mode and role before reading or writing it. Set is_actuator true for any pin with a real-world physical effect (relay, motor, lock, valve) so reports and reviewers can flag it.
Set a digital pin level or PWM duty cycle. Every write is gated — including on virtual boards: without approved=true the request is validated and recorded as blocked, pending explicit user approval. Never call this with approved=true unless the user has explicitly authorized this exact write in this turn.
Read a digital pin's current level. No approval required, on any target_kind.
Read an I2C sensor register (i2cget). No approval required, on any target_kind.
Virtual boards only. Preload a simulated board's pin levels, PWM duty cycles, and I2C register values, and optionally inject a fault (write_fails on a pin, or read_fails on a pin or register) to script a deterministic test/demo scenario. Throws on non-virtual boards.
Record a board action, approval, error, or freeform note on the shared blackboard.
Build a structured PI_HANDOFF report of board state, pin map, action trail, and pending approval gates.
Render a board's declared pins as a Mermaid flowchart: one subgraph per mode (in/out/pwm/i2c/spi), pins labeled with their role, and actuator-flagged pins visually highlighted. Returns both raw Mermaid source and a ```mermaid fenced markdown block ready to paste into a chat reply or report. The workspace panel also renders this diagram live.
Recommend a local-LLM setup (model size class, quantization, runtime, swap/storage advice) for a Pi 5's RAM tier and a stated use case. Never installs or downloads anything — it returns a recommended snapshot for the user to act on, and records it as an advisory. Pass board_id to use a board's declared ram_gb, or ram_gb directly to advise without a connected board.
Recommend an OS image, boot media, and starter config for a stated workload (headless server, home assistant, media center, kiosk, desktop) on a Pi 5. Never installs, flashes, or configures anything — it returns a recommended snapshot for the user to act on, and records it as an advisory. Pass board_id to use a board's declared ram_gb, or ram_gb directly to advise without a connected board.
Agents (3)
Entry agent for the Raspberry Pi plugin. Connects to a board (local, over SSH, or a fully simulated virtual board), discovers its GPIO/I2C state, declares pin roles, and reads or writes hardware with every GPIO write gated behind explicit user approval.
Workspace views (1)
./workspace/index.html