altaga/armic/arduino-bridge
Claude Code and agent skill by altaga/armic
- community
Checking that the SKILL.md file is still in the repository.
Wire Python (MPU) to the MCU sketch via Router Bridge: call, notify, name matching, and silent-failure diagnostics. Use for Armic sketch integration or any Bridge RPC on UNO Q.
Install
npx vskill@latest install altaga/armic/arduino-bridgeSKILL.md
The same SKILL.md was published earlier as altaga/armic/arduino-bridge.
arduino-bridge — talk to the MCU
The Router Bridge is the only way the Python app (MPU) and the Arduino sketch (MCU) communicate. Two verbs, two directions.
The verb matrix
| Pattern | Caller | Returns? | Receiver registers as | |
|---|---|---|---|---|
| Python → MCU, sync | Bridge.call("name", *args) | yes — value | Bridge.provide("name", fn) in sketch | |
| Python → MCU, async | Bridge.notify("name", *args) | no — fire-and-forget | same | |
| MCU → Python, sync | Bridge.call("name", *args) | yes — read with .result(out) | Bridge.provide("name", fn) in Python | |
| MCU → Python, async | Bridge.notify("name", *args) | no | same |
Use notify for high-rate streams (sensor data) so the sender never blocks. Use call when you need the return value.
The name-matching contract (read this first)
The name passed to provide on one side is the lookup key for call/notify from the other. Names must match exactly. A mismatch surfaces differently depending on the verb — this is the #1 silent-failure cause:
- Python `Bridge.call` to an unknown name → raises (
ValueErrorif the
method doesn't exist on the MCU; TimeoutError on timeout).
- Sketch `Bridge.call(...).result(out)` → returns
false— **always check
the bool**. Many tutorials skip this; if you do, you'll think the call succeeded when it didn't.
- `notify` in either direction → fails silently. No log, no error.
When "the Bridge does nothing", check the names on both sides first.
Recipe 1 — Python calls a sketch function (sync)
Python side (python/main.py):
Sketch side (sketch/sketch.ino):
Reference: examples/core-and-foundational/03-bridge-basics/01-call-sketch-function-from-python.
Recipe 2 — Sketch streams data up to Python
Use notify so the sketch never blocks waiting for Python to acknowledge.
Sketch side:
Python side:
Reference: examples/core-and-foundational/03-bridge-basics/02-send-data-to-python.
Recipe 3 — Structured arguments
Lists, dicts, and primitives all round-trip. Treat them as JSON on both sides:
Python:
Sketch:
Reference: examples/core-and-foundational/03-bridge-basics/03-using-structured-data.
Debugging — read the right stream
- Python side logs →
arduino-app-cli app logs <path> --follow - Sketch side logs (anything printed with
Monitor.print/
Serial.print) → arduino-app-cli monitor
- JSON form for parsing →
--format jsonon anyarduino-app-clicommand
"Bridge isn't working" — 4-step diagnostic
Run these in order; the first failure is almost always the cause.
- Names match exactly? Grep for the handler name in both sides:
``bash grep -RIn 'provide("name"' python/main.py sketch/sketch.ino grep -RIn 'call("name"' python/main.py sketch/sketch.ino `` Mismatch → silent or raises depending on verb. Fix the spelling.
- Sketch has `Bridge.begin()` in `setup()`? Without it, no
provide
registers and every call from Python will fail. The first thing in setup() after Monitor.begin(...) should be Bridge.begin();.
- Sketch built and flashed? If you only edited
sketch.inoand the
changes don't take effect, the cache is stale: ``bash arduino-app-cli app clean-cache user:<name> --force arduino-app-cli app restart ~/ArduinoApps/<name> ``
- Serial baud correct?
Monitor.begin(115200)in sketch; default
arduino-app-cli monitor reads at the same rate.
Gotchas
- Active-low LEDs. UNO Q / VENTUNO Q's built-in LED is active-low —
LOW turns it on, HIGH turns it off. Get this wrong and the LED never appears to toggle.
- `Bridge.provide` must be in `setup()` (sketch side) or **module
level** (Python side). Doing it inside loop() re-registers on every iteration.
- Don't call `Bridge.notify` before `Bridge.begin()`. The first send will
silently drop.
- Single instance of each name. Re-providing the same name on the same
side replaces the previous handler.
- High-rate `call` blocks the sender. Switch to
notifyif you're sending
sensor data at >10 Hz.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingAI Skills/skills/arduino-bridge/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/altaga/armic/arduino-bridge)