---
title: Red Pitaya and Arduino in Industry - Deterministic Instrument Control with SCPI over UART
description: Discover how Red Pitaya enables deterministic, low-latency instrument control with Arduino using SCPI over UART — ideal for industrial automation and testing.
image: https://content.redpitaya.com/hubfs/blog%20featured%20image%20(56).jpg
---

[![Red Pitaya](https://content.redpitaya.com/hubfs/raw_assets/public/Red_Pitaya_November_2021/images/redpitaya-logo-des.svg "Red Pitaya")](https://redpitaya.com/)

[![Red Pitaya](https://content.redpitaya.com/hubfs/raw_assets/public/Red_Pitaya_November_2021/images/redpitaya-logo.svg "Red Pitaya")](https://redpitaya.com/)

- Products

    - [STEMlab 125-14 Gen 2](https://redpitaya.com/stemlab-125-14-gen2/)

          - [STEMlab 125-14](https://redpitaya.com/stemlab-125-14/)
          - [SIGNALlab 250-12](https://redpitaya.com/signallab-250-12/)
          - [SDRlab 122-16](https://redpitaya.com/sdrlab-122-16/)
          - [STEMlab TI (Texas Instruments)](https://redpitaya.com/stemlab-ti-texas-instruments/)
          - [Multi-channel Solutions](https://redpitaya.com/multi-channel-solutions/)
          - [Accessories](https://redpitaya.com/accessories/)
- [Applications](https://redpitaya.com/applications/)
- Documentation

    - [Technical Documentation](https://redpitaya.com/documentation/)
    - [Teaching materials](https://redpitaya.com/teaching-materials/)
    - [Student projects](https://redpitaya.com/student-projects/)
    - [User forum](https://forum.redpitaya.com/)
- [About](https://redpitaya.com/about-us/)

    - [History](https://redpitaya.com/history/)

          - [Distributors](https://redpitaya.com/distibutors-red-pitaya/)
- [Blog](https://content.redpitaya.com/blog)

[Shop](https://redpitaya.com/shop/)

- [ACADEMIA](https://redpitaya.com/academia/)
- [RADIO AMATEURS](https://redpitaya.com/radio-amateurs/)

- [Home](https://redpitaya.com/)
- Products

    - [STEMlab 125-10](https://redpitaya.com/stemlab-125-10/)

          - [STEMlab 125-14](https://redpitaya.com/stemlab-125-14/)
          - [SIGNALlab 250-12](https://redpitaya.com/signallab-250-12/)
          - [SDRlab 122-16](https://redpitaya.com/sdrlab-122-16/)
          - [Accessories](https://redpitaya.com/accessories/)
- [Applications](https://redpitaya.com/applications/)
- [Resources](https://redpitaya.com/documentation/)
- [Shop](https://redpitaya.com/shop/)
- [About](https://redpitaya.com/about-us/)
- [Blog](https://content.redpitaya.com/blog)
- [Compare](https://redpitaya.com/compare/)
- [Login / Register](https://redpitaya.com/my-account/)

### Red Pitaya Blog

[Home](https://redpitaya.com) » [Case study](https://content.redpitaya.com/blog/tag/case-study)  »

[Case study](https://content.redpitaya.com/blog/tag/case-study)

# Red Pitaya and Arduino in Industry - Deterministic Instrument Control with SCPI over UART

- Posted by ![Red Pitaya Technical Editorial Team](https://content.redpitaya.com/hubfs/Red-pitaya-fav-ikona.png) [Red Pitaya Technical Editorial Team](https://redpitaya.com/Red-Pitaya-Blog-team/) , October 21, 2025

![](https://content.redpitaya.com/hubfs/blog%20featured%20image%20(56).jpg)

In industrial automation and production testing, reliable and deterministic communication between controllers and instruments is essential. Wireless links, while convenient for education or lab setups, can introduce delays and interference that are unacceptable in factory environments.

To solve this, **Red Pitaya developed an SCPI Arduino library with UART support**, enabling **direct, wired communication** between Arduino controllers and Red Pitaya instruments. This setup provides **low-latency, interference-free, and repeatable control** — ideal for **hardware-in-the-loop (HIL) testing, production automation, and long-term monitoring**.

With **125 MS/s sampling**, **14-bit resolution**, and **DC–60 MHz bandwidth**, Red Pitaya delivers **laboratory-grade performance** in demanding industrial settings — bridging the gap between **open-source flexibility** and **production-level reliability**.

 

## **SCPI over UART**

**Repository:** [SCPI-red-pitaya-arduino](https://github.com/RedPitaya/SCPI-red-pitaya-arduino)

The library implements the SCPI (Standard Commands for Programmable Instruments) protocol over UART. Commands such as ACQ:START, ACQ:TRIG NOW, or ACQ:SOUR1:DATA? can be issued from Arduino directly, with the responses processed locally or logged for analysis.

**Key Benefits**

- **Deterministic Timing** – Unlike Wi-Fi, UART communication is not subject to jitter or network congestion.
- **Low Latency** – Immediate command execution and data return, critical for HIL and closed-loop control.
- **Robustness** – Immune to interference from other wireless systems, making it reliable in noisy factory floors.
- **Code Portability** – The same SCPI command set is used across all transports. Teams can start development on Wi-Fi, then deploy the same test code over UART in production.

## **Industrial Applications**

Red Pitaya’s SCPI UART control makes it suitable for a wide range of industrial workflows. In hardware-in-the-loop testing, Red Pitaya functions as both the measurement and stimulus instrument while Arduino manages the test logic. In production test fixtures, the deterministic nature of UART ensures consistent results across thousands of test cycles. For continuous monitoring, Red Pitaya provides high-speed acquisition with predictable timing, making it reliable for long-term deployments. It is also widely used for protocol verification, where its oscilloscope and logic analyzer capabilities allow engineers to monitor and decode communication buses directly as part of the test sequence.

 

## **Industry Testimonial: Arduino**

The UART-based SCPI library has already proven its value in professional environments. At **Arduino**, Red Pitaya has been integrated into their **Continuous Integration with Hardware-in-the-Loop project**:

*“The STEMlab 125-14 has become an essential tool in our Continuous Integration with Hardware-In-the-Loop project. Thanks to its logic analyzer with advanced decoding and oscilloscope capabilities, it allows us to easily diagnose issues in communication protocols. The intuitive web interface significantly helped to quickly integrate it even with limited prior experience.”*  
— **Ruggero Rossino, Jr Testing Engineer, Arduino**

This testimonial reflects how Red Pitaya with SCPI over UART accelerates debugging, improves protocol reliability, and shortens integration time in industrial-grade workflows.

 

## **Conclusion**

For industrial use cases where timing and reliability cannot be compromised, **SCPI over UART is the preferred method of instrument control**. It offers deterministic performance, robust communication, and compatibility with Arduino-based controllers widely used in automation and test systems.

By combining Arduino for control and Red Pitaya for measurement, companies can deploy scalable solutions from prototyping through to production with minimal code changes.

👉 Library: [SCPI-red-pitaya-arduino](https://github.com/RedPitaya/SCPI-red-pitaya-arduino)  
👉 Learn more: [Red Pitaya Knowledge Base](https://learn.redpitaya.com/)

 

---

### **FAQ**

**Q1: What is SCPI over UART?**  
SCPI over UART allows Red Pitaya instruments to be controlled via direct serial communication from Arduino, providing deterministic timing and low latency.

**Q2: Why use UART instead of Wi-Fi for industrial control?**  
UART ensures predictable, interference-free communication — critical in production testing, automation, and hardware-in-the-loop systems.

**Q3: How does the SCPI Arduino library help developers?**  
It provides an easy way to control Red Pitaya using standard SCPI commands directly from Arduino, making code portable across Wi-Fi and UART.

**Q4: What applications benefit from this setup?**  
Hardware-in-the-loop testing, production test fixtures, continuous monitoring, and protocol verification all benefit from Red Pitaya’s deterministic performance.

**Q5: Is this library open-source?**  
Yes. The SCPI-red-pitaya-arduino library is open-source and available in Red Pitaya’s public repositories.

### About the Red Pitaya Team

 The Red Pitaya Technical Editorial Team is a cross-functional group of technical communicators and product specialists. By synthesizing insights from our hardware developers and global research partners, we provide verified, high-value content that bridges the gap between open-source innovation and industrial-grade precision.

 Our mission is to make advanced instrumentation accessible to engineers, researchers, and educators worldwide.

##### Categories

- [academia (47)](https://content.redpitaya.com/blog/tag/academia)

##### Recent Posts

- [![Non-Invasive GERD Detection: Continuous Esophageal Monitoring via Radiofrequency Spectrophotometry](https://content.redpitaya.com/hs-fs/hubfs/blog%20featured%20image%20-%202026-09-17T104035.026.jpg?width=767&name=blog%20featured%20image%20-%202026-09-17T104035.026.jpg)](https://content.redpitaya.com/blog/non-invasive-gerd-detection-radiofrequency-spectrophotometry)
  
  [Non-Invasive GERD Detection: Continuous Esophageal Monitoring via Radiofrequency Spectrophotometry](https://content.redpitaya.com/blog/non-invasive-gerd-detection-radiofrequency-spectrophotometry)
  
   September 29, 2026
- [![How a $500 Open-Source MRI Console Sparked a Global Research Ecosystem](https://content.redpitaya.com/hs-fs/hubfs/blog%20featured%20image%20-%202026-09-17T131400.982-3.jpg?width=767&name=blog%20featured%20image%20-%202026-09-17T131400.982-3.jpg)](https://content.redpitaya.com/blog/open-source-mri-console-ocra-marcos-red-pitaya)
  
  [How a $500 Open-Source MRI Console Sparked a Global Research Ecosystem](https://content.redpitaya.com/blog/open-source-mri-console-ocra-marcos-red-pitaya)
  
   September 22, 2026
- [![Probing the Wire: Red Pitaya & Zephyr RTOS Workshop with EESTEC](https://content.redpitaya.com/hs-fs/hubfs/blog%20featured%20image%20-%202026-09-17T130509.363.jpg?width=767&name=blog%20featured%20image%20-%202026-09-17T130509.363.jpg)](https://content.redpitaya.com/blog/zephyr-rtos-nordic-logic-analyzer-workshop-eestec-ljubljana)
  
  [Probing the Wire: Red Pitaya & Zephyr RTOS Workshop with EESTEC](https://content.redpitaya.com/blog/zephyr-rtos-nordic-logic-analyzer-workshop-eestec-ljubljana)
  
   September 17, 2026

##### Subscribe to our newsletter

![Red Pitaya](https://content.redpitaya.com/hubfs/raw_assets/public/Red_Pitaya_November_2021/images/redpitaya-logo-wh.svg "Red Pitaya")

An open-source solution for hobbyists, professors,  
 radio amateurs and industrial clients.

**Red Pitaya**  
Velika pot 21,  
5250 Solkan  
Slovenia, Europe  
Phone: +386 30 322 719  
Email: [info@redpitaya.com](mailto:info@redpitaya.com)

**Red Pitaya US**  
TX, Dallas - Downtown Republic Center  
325 N. St. Paul Street  
Suite 3100  
Dallas, Texas, 75202  
United States of America  
IMPORTANT: This address does not accept RMAs  
Phone: (888) 637-2706  
Email: [US.office@redpitaya.com](mailto:US.office@redpitaya.com)

- Customer Service 
    - [Customer Support](https://redpitaya.com/customer-support/)
    - [Shipping & Returns](https://redpitaya.com/shipping-returns/)
    - [Contact us](https://redpitaya.com/contact-us/)
    - [Cookie Policy](https://redpitaya.com/cookie-policy/)
- SLO 
    - [O nas](https://redpitaya.com/o-nas/)
    - [Pogoji poslovanja](https://redpitaya.com/pogoji-poslovanja/)
    - [Politika zasebnosti](https://redpitaya.com/politika-zasebnosti/)
    - [Politika piškotkov](https://redpitaya.com/politika-piskotkov/)

##### Follow Us

<https://www.facebook.com/redpitayaspark/> <https://twitter.com/RedPitayaCom> <https://www.youtube.com/c/RedPitayaTV> <https://www.linkedin.com/company/red-pitaya> <https://www.instagram.com/redpitayacom>

#### Subscribe to our newsletter

Get notified about new SW features & updates, news about latest community projects & events and new Red Pitaya products & discounts

[Subscribe](https://go.redpitaya.com/cs/c/?cta_guid=36ccbdc0-0344-49c4-aa91-aa67cf437c09&signature=AAH58kHkxFYTAKU-ILQzHI1jlrdI_co0RA&placement_guid=a24cb732-1dfb-4d0a-8c52-aa6851ce9102&click=556cfaee-eee4-48e4-95e7-c483a4f78883&hsutk=537e15e740555d2fd6a1c1ad931d2b6f&canon=https%3A%2F%2Fredpitaya.com%2Fabout-us%2F&utm_referrer=https%3A%2F%2Fredpitaya.com%2Fcompare%2F&portal_id=7715357&redirect_url=APefjpGj5Dm9poAAzHFGh4S6pJ-2TvNzBdwZZlfbr7toxfw-epFUtzEHOKToHx0i2TYYr39srj9aSERdntJBh8lJqoSXL-pUF2gwhYvOW6IMm28hQVmhYML2AIbbIRrr3YaoyJkZQ0iRxq-uHlFt66i3_8XpQpXT_M2zF9fS7t0f6hlBjGBJ7X_aXDrhBwXcEAqwoWWleG4uxonSGOR-BBp3tpKcySXYELTGHeGn5Yo61r3xrFvqFP5P6BxVwxTi51_ceW9uBzOMvA1rYz4BsIhLSF8n4bhcHqJTvhibH_laJrjDNdEUUrU&__hstc=72355340.537e15e740555d2fd6a1c1ad931d2b6f.1635738083317.1635738083317.1635746314170.2&__hssc=72355340.5.1635746314170&__hsfp=530052575&contentType=standard-page)

**Red Pitaya**  2025 All Rights Reserved.

- [Privacy Policy](https://redpitaya.com/privacy-policy/)
- [Terms of Use](https://redpitaya.com/terms-of-use/)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Red Pitaya Technical Editorial Team",
    "url" : "https://content.redpitaya.com/blog/author/red-pitaya-technical-editorial-team"
  },
  "dateModified" : "2025-10-27T13:52:49.863Z",
  "datePublished" : "2025-10-21T07:59:59.000Z",
  "headline" : "Red Pitaya and Arduino in Industry - Deterministic Instrument Control with SCPI over UART",
  "image" : [ "https://content.redpitaya.com/hubfs/blog%20featured%20image%20(56).jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://content.redpitaya.com/blog/red-pitaya-arduino-scpi-uart",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://content.redpitaya.com/hubfs/Red-pitaya-logo.jpg"
    },
    "name" : "Red Pitaya d.o.o."
  }
}
```