HARDWARE GUIDE · ARDUINO · UNO Q · RASPBERRY PI 4B

Running Physical AI on Arduino, Arduino UNO Q, and Raspberry Pi 4B with VTM Studio

By Tishin Padilla · VideotronicMaker
Whether you plug a classic Arduino Uno into a laptop over USB or run VTM Studio directly on a 4 GB Arduino UNO Q or 4 GB Raspberry Pi 4B using the native ARM64 .deb installer, the division of labor stays clean: compiled C++ on the microcontroller handles real-time sensor polling and 50 Hz servo pulses, while VTM Studio handles VAS-X navigation, Arm Control Mode, computer vision, and Cloud or local Edge AI models.

1. Pairing Any Arduino with VAS-X and Arm Control Mode

A standard 8-bit Arduino Uno R3 or 32-bit Uno R4 is built for reliable, real-time pin control—not for hosting a language model in its own memory. At the same time, you never want a desktop Python script or language model trying to time microsecond servo pulses directly over an operating system scheduler.

In VTM Studio, an Arduino setup lets each side do what it is good at over a 115200-baud USB serial cable (/dev/ttyACM0 or /dev/ttyUSB0):

  • Code Mode & Science Mode: Your Arduino runs compiled C++ firmware flashed from Code Mode over USB, sending single-line KEY:VALUE,RAW:VALUE readings (LUX:, TEMP:, SOIL:, DIST:, ANGLE:, RSSI:) to live gauges in Science Mode.
  • Arm Control Mode (`#view-arm`): To move a 5-DoF or 6-DoF robotic arm, Arm Control Mode gives you per-joint sliders (0–180° for MG90S PWM servos and 0–1000 ticks for serial bus servos), mouse-wheel fine stepping, posture presets (HOME, STANDBY, GRIP, RELEASE), two-way X-Panel → ARMS mirroring, and a custom protocol builder for PCA9685 I2C PWM drivers, Dynamixel AX-12A smart servos, and Lynxmotion SSC-32 controllers with a live outbound serial sniffer.
  • VAS-X & ARC: In the right-hand sidebar, VAS-X (powered by Google Gemini's 250K TPM context window) knows every mode and tool inside VTM Studio, switches modes or opens panels when you give an explicit command (or pick one from the searchable Commands button), accepts click-to-talk faster-whisper voice input, replies aloud with Piper ONNX spoken audio readback, and uses VAS Vision to capture a screenshot of your active VTM Studio workspace when you want a second set of eyes on your wiring diagram or serial data. Meanwhile, ARC in Chat Mode works with both Cloud models and local .gguf Edge models to help write and debug your C++ sketches.

2. Arduino UNO Q Physical AI: Two Processors on One Board

While VTM Studio is an independent cross-platform workstation for macOS, Windows, Linux Desktop, Raspberry Pi, and the Arduino UNO Q, the 4 GB Arduino UNO Q (ABX00173) is a great fit for Arduino UNO Q Physical AI because it puts both a Linux computer and a real-time microcontroller on the same board:

  • The 1.8 V Linux MPU (`Qualcomm Dragonwing QRB2210`): Runs 64-bit Debian Linux (aarch64) and runs VTM Studio directly via the native ARM64 .deb installer inside 3.58 GB of usable RAM.
  • The 3.3 V Real-Time MCU (`STM32U585` on Zephyr OS): Drives the standard 3.3 V Arduino headers (JDIGITAL, JANALOG, JSPI, and Qwiic).
  • Internal `/dev/ttyHS1` Serial Link: Instead of needing an external USB cable between a computer and an Arduino, VTM Studio talks directly to the onboard STM32U585 over the board's internal UART link (/dev/ttyHS1 and 127.0.0.1:7500), while automatically ignoring the reserved system console (/dev/ttyMSM0 on JCTL Pins 4 and 6) and internal Bluetooth port (/dev/ttyHS0).
Measured Local Edge AI Performance on the 4 GB Arduino UNO Q

In our hardware tests running Gemma 3 1B Q4 (.gguf) inside the full VTM Studio graphical app on a 4 GB Arduino UNO Q (3.58 GB usable RAM) with live X-Panel token streaming and concurrent Piper ONNX voice synthesis, the board sustained 1.34–2.00 tokens/sec (2.00 tok/s during pure token decode and 1.54 tok/s after TTS started) and began speaking the first sentence aloud at Token 14 / 6.56 seconds into streaming—cutting the wait before spoken feedback by about 78% compared to waiting 31.98 seconds for the full 43-token reply. (You can inspect the full 43-token plot on the VTM Studio Benchmarks page.)

If you are building on the Arduino UNO Q, keep three practical hardware rules in mind:

  1. Stop Any Running App Lab Process Before Flashing: If an Arduino App Lab app is running in the background, it holds onto the USB/Bridge interface. Stop it first so VTM Studio can connect and flash cleanly.
  2. Use a Powered 5 V / 3 A USB-C PD Hub on `JUSB1`: In single-board computer mode, the single USB-C port needs a powered USB-C PD hub to run a monitor, keyboard, mouse, and USB camera.
  3. Watch the 1.8 V MPU Pins and 3.3 V `A0`/`A1` Analog Pins: Never wire 3.3 V or 5 V sensors directly to the 1.8 V SOC_GPIO_* pins on the bottom JMISC or JCTL headers without a level shifter. And while digital pins on the 3.3 V STM32U585 headers are 5 V-tolerant in digital mode, analog pins A0 (PA4) and A1 (PA5) on JANALOG are direct 3.3 V ADC inputs and are not 5 V-tolerant.

3. Raspberry Pi Physical AI: Running VTM Studio on a 4 GB Raspberry Pi 4B

If you already have a 4 GB Raspberry Pi 4B running 64-bit Raspberry Pi OS (Debian Bookworm aarch64), you can install the exact same VTM Studio ARM64 .deb package ($8.99 Embedded Linux SBC Launch Special / $26.99 regular) to turn your Pi into a standalone Raspberry Pi Physical AI workstation.

Running a full desktop studio alongside camera tracking, speech synthesis, and a local language model on a 4 GB single-board computer normally causes MicroSD card slowdowns. To keep the Pi responsive, VTM Studio automatically enables its Smart Auto-SBC Profile on 4 GB ARM64 boards:

  • RAM-Disk Caching (`/dev/shm`): Temporary runtime files and Piper TTS voice audio chunks are written to /dev/shm in RAM instead of hammering the MicroSD card, preventing disk iowait freezes.
  • 512 MB V8 Heap Cap: Caps the Electron JavaScript heap at 512 MB and unmounts inactive mode tabs so plenty of memory remains free for llama-server.
  • Low-RAM `HSV Lock` Camera Tracking: In Vision Mode, 4 GB SBCs use lightweight OpenCV HSV Lock color centroid tracking (7 color presets plus AUTO, outputting live X/Y target coordinates) and Cloud Vision so heavy desktop object-detection models never compete with your local LLM for RAM.

From there, you simply plug an Arduino, ESP32, or servo controller (PCA9685, Dynamixel AX-12A, or SSC-32) into one of the Raspberry Pi's USB ports. When installing or updating the .deb package from a USB drive on either a Raspberry Pi 4B or an Arduino UNO Q, open a terminal inside the mounted USB folder and run:

sudo apt remove vtm-studio
sudo dpkg -i vtm-studio-2.2.0-perf-linux-arm64.deb
Want the Full UNO Q Serial & Native Python Walkthrough? See our dedicated Arduino UNO Q Standalone Linux SBC & /dev/ttyHS1 Serial Guide for the complete port map (/dev/ttyHS1 vs. /dev/ttyHS0 and /dev/ttyMSM0), Monitor.println() vs. Serial.println(), and a copy-pasteable Python socket reader.

Frequently Asked Questions

Can I run VTM Studio directly on an Arduino UNO Q as a standalone Debian Linux SBC alongside App Lab?

Yes. Arduino App Lab works well for its containerized Bricks workflow, and you can use it whenever you prefer that style. Because the 4 GB Arduino UNO Q runs full 64-bit Debian Linux on its Qualcomm processor, you can also attach a monitor, keyboard, and mouse via a powered 5V / 3A USB-C PD hub on JUSB1 and install VTM Studio's native ARM64 .deb package for a standalone desktop workflow with native Python, a built-in code editor, live /dev/ttyHS1 gauges, servo sliders, and optional local AI.

How does VTM Studio read serial output from the onboard STM32U585 on the Arduino UNO Q?

VTM Studio's UNO Q build connects to the onboard STM32U585 bridge over /dev/ttyHS1 (routed locally on 127.0.0.1:7500) while leaving the reserved Bluetooth port (/dev/ttyHS0) and 1.8V Linux debug console (/dev/ttyMSM0) untouched. Pausing any running App Lab app first frees the bridge cleanly, and Code Mode automatically maps standard Serial.println() KEY:VALUE sketches onto Monitor during Verify & Flash so readings flow straight into Science Mode (see the Serial Telemetry glossary).

How does VTM Studio run on a 4 GB Raspberry Pi 4B?

VTM Studio provides a native ARM64 .deb package for 64-bit Raspberry Pi OS (Debian Bookworm) that enables the Smart Auto-SBC Profile automatically—using /dev/shm RAM-disk caching to avoid MicroSD card slowdowns, capping the Electron heap at 512 MB, and using lightweight HSV Lock color tracking or Cloud Vision while supporting both onboard 40-pin GPIO and external USB microcontrollers.

How does VTM Studio differ from Arduino IDE?

Arduino IDE is a focused, beginner-friendly sketch editor dedicated to writing and uploading firmware to Arduino boards. VTM Studio is an independent cross-platform workstation that includes a built-in code editor and USB board flashing (Code Mode) alongside 2D breadboard and circuit wiring diagrams (Layout Mode and Spec Mode), live serial gauges (Science Mode), 2-wire low-voltage multimeter probing (Meter Mode), multi-axis servo control (Arm Control Mode), camera tracking (Vision Mode), click-to-talk voice input with spoken audio readback, and local .gguf model tools (Model Forge Mode) in one window. Explore one-time packs in the VTM Studio Store.

What AI models are supported in Model Forge Mode and VTM Studio?

Model Forge Mode uses a 3-tab local workflow for open-weight models you download from Hugging Face: 1. Convert HF converts local .safetensors checkpoints to .gguf, 2. Compact GGUF quantizes .gguf files (such as 4-bit Q4_K_M or 8-bit Q8_0) locally, and 3. Run Model lets you click to browse and add .gguf files for live hot-swapping on llama-server—not locked to a single model family. Alongside local .gguf models, Chat Mode and VAS-X also support Cloud AI reasoning with Google Gemini and Groq.