MAKER HARDWARE NOTES · ARDUINO UNO Q · STANDALONE DEBIAN SBC

Using the Arduino UNO Q as a Standalone Linux SBC: Reading /dev/ttyHS1 Serial Output, Native Python & VTM Studio

By Tishin Padilla · VideotronicMaker · “Learn with me as I learn.”
Arduino App Lab works well for its containerized Bricks and tethered PC workflow, and you can use it anytime that style fits your project. Because the Arduino UNO Q also runs full 64-bit Debian Linux on its Qualcomm processor alongside an onboard STM32U585 microcontroller, you can plug a monitor, keyboard, and mouse into a powered 5V / 3A USB-C PD hub and use the board directly as a standalone single-board computer—reading live /dev/ttyHS1 (127.0.0.1:7500) serial output from native Python or inside the ARM64 .deb build of VTM Studio.
01 // TWO WORKFLOWS ON ONE BOARD

App Lab & Standalone Linux SBC Mode: Two Ways to Use Your UNO Q

When I first started working with the 4 GB Arduino UNO Q (ABX00173), I quickly saw why makers love having both a Linux computer and a real-time STM32 microcontroller on one board. Arduino App Lab does a nice job when you want pre-packaged containerized Bricks or a tethered workflow from another computer.

At the same time, many of us also want to plug a monitor, keyboard, and mouse directly into the UNO Q and use it for what it is: a full 64-bit Debian Linux single-board computer (SBC) running native, non-containerized Python scripts and local desktop tools right on the board. Both workflows live cleanly on the same hardware.

Workflow Aspect Arduino App Lab (Containerized Bricks) Standalone Debian SBC Mode (Native Python / VTM Studio)
Best Fit Modular Bricks and tethered setups driven from another PC Direct desktop monitor/keyboard use, native Python, and all-in-one local tooling
Python Runtime Managed inside App Lab app containers Native Debian Linux Python directly on the Qualcomm MPU
STM32 Output Path Arduino_RouterBridge RPC & Monitor.println() /dev/ttyHS1 routed via 127.0.0.1:7500 into Python or VTM Studio Science Mode
Desktop Tooling App Lab interface Native ARM64 .deb (VTM Studio SBC Edition): code editor, 2D layout, gauges, servos, vision & voice
02 // HARDWARE SERIAL MAP

Understanding the UNO Q Serial Port Map (/dev/ttyHS1, Monitor.println() vs. Serial.println())

One of the biggest early surprises on the Arduino UNO Q is opening a Linux terminal, typing ls /dev/tty*, and wondering why standard Serial.println() does not automatically show up on a USB serial port like it does on an Uno R3.

Here is what is happening on the physical board: on the STM32U585 microcontroller, standard Serial (&usart1) is wired to the external header pins D0 (PB7) and D1 (PB6)—not to the Linux processor. The internal wire linking the STM32 microcontroller to Debian Linux is &lpuart1 (Serial1 at 115200 baud), which lands on /dev/ttyHS1 on the Linux side. Debian's background arduino-router daemon binds /dev/ttyHS1, speaks to <Arduino_RouterBridge.h> (Monitor.println()), and streams the output locally on TCP 127.0.0.1:7500.

Quick Tip Before Connecting: If an Arduino App Lab app is currently running in the background, it holds the bridge and USB interfaces open. Pausing or stopping that running app first lets standalone Python scripts or VTM Studio connect cleanly without port conflicts.
Linux Device / Endpoint Hardware Purpose Standalone SBC Guidance
/dev/ttyHS1 → 127.0.0.1:7500 Internal &lpuart1 bridge between Linux MPU and onboard STM32U585 MCU Use This (Onboard STM32 Bridge)
/dev/ttyACM0, /dev/ttyUSB0 External Arduino, ESP32, or USB-to-UART boards plugged into a powered 5V / 3A USB-C PD hub Use for External USB Boards
/dev/ttyHS0 Dedicated internally to the onboard WCBN3536A Bluetooth wireless module Leave Untouched
/dev/ttyMSM0 Linux system debug console on JCTL Pins 4 & 6 (1.8V I/O) Leave Untouched

Because standard Serial.println() targets external pins D0/D1 while the internal Linux bridge expects Monitor.println(), makers writing standalone sketches outside VTM Studio should include <Arduino_RouterBridge.h> when streaming to 127.0.0.1:7500. Inside VTM Studio's dedicated UNO Q build, Code Mode automatically maps standard Serial.println() calls onto Monitor during Verify & Flash so classic Arduino sketches stream straight into Science Mode over /dev/ttyHS1 without manual rewrites.

03 // STM32 TO PYTHON & LIVE GAUGES

Sending Sensor Readings from STM32 C++ to Native Python & Science Mode

A simple, human-readable line format works everywhere—whether you are inspecting output in a terminal, parsing it in native Python, or plotting it in VTM Studio's Science Mode: single-line comma-delimited KEY:VALUE,RAW:VALUE text terminated by a newline. (You can see the complete panel registry on our USB UART Serial Telemetry glossary page.)

STM32U585 Standalone Bridge Sketch (C++)
#include <Arduino_RouterBridge.h>

void setup() {
  Bridge.begin();
  Monitor.begin();
}

void loop() {
  Bridge.update();
  int raw = analogRead(A0); // 3.3V max!
  float pct = (raw / 1023.0f) * 100.0f;
  String line = "ANGLE:" + String(raw * (300.0f / 1023.0f), 1)
              + ",PCT:" + String(pct, 1)
              + ",RAW:" + String(raw);
  Monitor.println(line);
  delay(100);
}
Native Debian Python Reader (127.0.0.1:7500)
import socket

with socket.create_connection(("127.0.0.1", 7500)) as sock:
    for raw_line in sock.makefile("r", encoding="utf-8", errors="ignore"):
        line = raw_line.strip()
        if not line:
            continue
        fields = dict(
            pair.split(":", 1)
            for pair in line.split(",")
            if ":" in pair
        )
        print("Live STM32 packet:", fields)

If you prefer a unified graphical workstation right on the UNO Q desktop, open Code Mode in VTM Studio, select Arduino UNO Q — Onboard STM32U585 Bridge (/dev/ttyHS1), pick a ready-to-flash sketch from Science Mode Examples, click Verify & Flash, and switch to Science Mode to watch live gauges and the unparsed RAW: readout side by side.

04 // HARDWARE CHECKLIST & MEASURED TIMINGS

Standalone SBC Hardware Checklist, Voltage Safety & Local AI Performance

  1. Use a Powered 5V / 3A USB-C PD Hub on JUSB1: In standalone SBC mode, the UNO Q negotiates a 5V / 3A Power Delivery contract on JUSB1 to power an HDMI/DisplayPort monitor, keyboard, mouse, USB camera, and any external microcontrollers cleanly. (When DisplayPort Alt-Mode is active, shared USB-C lanes reduce USB data speed.)
  2. Respect the 1.8V MPU vs. 3.3V MCU Voltage Domains: The Qualcomm Linux MPU headers (JMISC, JCTL, JMEDIA) run at 1.8V and are interface-dedicated—never wire 3.3V or 5V sensors directly to them without explicit level-shifting hardware. The standard Arduino headers (JDIGITAL, JANALOG, JSPI, Qwiic) belong to the 3.3V STM32U585 microcontroller.
  3. Critical ADC Warning — A0 (PA4) and A1 (PA5) Are NOT 5V-Tolerant: While STM32 digital pins tolerate 5V inputs in digital mode, analog pins A0 (PA4) and A1 (PA5) on JANALOG are direct 3.3V ADC inputs (3.3V operational max, 3.6V absolute maximum). Always use a voltage divider or buffer before feeding a 5V sensor signal into A0 or A1, and never back-feed external power into IOREF.
  4. Measured Local Edge AI on the 4 GB UNO Q: With VTM Studio's Smart Auto-SBC Profile (keeping temporary runtime caches and Piper audio chunks in RAM via /dev/shm and capping the Electron heap at 512 MB), a quantized Gemma 3 1B Q4 (.gguf) model sustained 1.34–2.00 tokens/sec inside 3.58 GB usable RAM while streaming sentence-by-sentence spoken readback starting at Token 14 / 6.56 seconds. For heavier coding or multimodal tasks, you can switch to Google Gemini or Groq Cloud AI in one click. Full timing plots are on the VTM Studio Benchmarks page.
05 // FREQUENTLY ASKED QUESTIONS

Arduino UNO Q Standalone SBC & Serial Questions

Can I use the Arduino UNO Q as a standalone Linux single-board computer (SBC) outside of App Lab?

Yes. Arduino App Lab works well for its intended containerized Bricks and tethered workflows, and you can continue using it whenever you prefer that model. Because the UNO Q also runs full 64-bit Debian Linux on its Qualcomm processor, you can connect a monitor, keyboard, and mouse through a powered 5V / 3A USB-C PD hub on JUSB1 and use the board directly as a standalone SBC with native, non-containerized Python and Linux desktop software. VTM Studio ships as a native ARM64 Debian package (.deb) built for that standalone SBC workflow—giving you a built-in C++ and Python code editor, 2D breadboard layouts, live serial gauges, servo sliders, and optional local AI right on the UNO Q desktop.

Why does Serial.println() work differently on the Arduino UNO Q, and how do I read Serial Monitor output in standalone SBC mode?

Unlike a classic Arduino Uno R3 wired straight to a USB-to-serial chip, the UNO Q's 3.3V STM32U585 microcontroller routes standard Serial (&usart1) to external header pins D0 and D1 (PB7/PB6) rather than to the Linux processor. The internal processor link to Debian Linux runs over &lpuart1 into /dev/ttyHS1, where the onboard arduino-router service exposes Monitor output on local TCP 127.0.0.1:7500. Pausing or stopping any running App Lab app first frees that interface cleanly. In VTM Studio's UNO Q build, /dev/ttyHS1 appears automatically as Arduino UNO Q — Onboard STM32U585 Bridge, and Code Mode maps standard Serial.println() sketches onto Monitor during Verify & Flash so your readings flow directly into Code Mode and Science Mode.

What is the difference between Monitor.println() and Serial.println() on the Arduino UNO Q?

On the STM32U585 microcontroller, standard Serial.println() writes to the external hardware UART on pins D0 and D1 (&usart1). Monitor.println() from <Arduino_RouterBridge.h> sends text over the internal &lpuart1 bridge (/dev/ttyHS1) through arduino-router to 127.0.0.1:7500 on the Debian Linux side. If you write raw standalone sketches outside VTM Studio and want output on 127.0.0.1:7500, use Bridge.begin(), Monitor.begin(), and Monitor.println(). Inside VTM Studio's UNO Q build, Code Mode maps standard Serial.println() KEY:VALUE lines onto Monitor automatically when flashing the UNO Q so standard sketches work in Science Mode without rewriting them.

Which Linux /dev/tty port connects the Qualcomm Linux processor to the STM32 microcontroller on the Arduino UNO Q?

The onboard STM32U585 bridge is exposed on /dev/ttyHS1 (routed locally on 127.0.0.1:7500 by arduino-router). External USB boards plugged into a powered 5V / 3A USB-C PD hub on JUSB1 appear as /dev/ttyACM0 or /dev/ttyUSB0. Two system UARTs should always be left untouched: /dev/ttyHS0 is reserved internally for the onboard Bluetooth radio, and /dev/ttyMSM0 (JCTL Pins 4 and 6, 1.8V I/O) is reserved for the Linux system debug console.

How do I send sensor data from an Arduino UNO Q C++ sketch to native Python on the Linux side?

You have two clean options depending on how you prefer to build. Inside App Lab, you can use Arduino_RouterBridge RPC calls between your sketch and containerized Bricks. In standalone Debian Linux SBC mode, your STM32 sketch can print single-line comma-delimited KEY:VALUE text (such as LUX:420,RAW:420) via Monitor.println()—or standard Serial.println() when flashed through VTM Studio's UNO Q build—so a native Python socket script on 127.0.0.1:7500 or VTM Studio's Science Mode can parse live gauges while the 3.3V STM32U585 keeps real-time sensor polling and servo timing steady.

Can the 4 GB Arduino UNO Q run a local LLM offline as a standalone SBC?

Yes. On the 4 GB RAM / 32 GB eMMC Arduino UNO Q (ABX00173, 3.58 GB usable Linux RAM), VTM Studio runs a quantized Gemma 3 1B Q4 model locally at 1.34 to 2.00 tokens/sec alongside sentence-by-sentence Piper ONNX spoken audio readback and the full desktop interface, using its Smart Auto-SBC Profile to keep temporary caches in RAM (/dev/shm) and preserve memory headroom. Whenever you want faster coding help or multimodal vision, a one-click toggle switches to Cloud AI (Google Gemini or Groq).