tio, connect your serial equipment in 1 minute and without errors ⚡
Serial data connections are a classic, yet surprisingly still widely used form of communication in numerous modern devices. From televisions to test equipment like multimeters and even home automation products, serial connectivity remains an essential part of many circuits.
To access serial devices in Linux, a common way is to use the command screenHowever, Linux offers other very efficient options. Personally, I've been using it for years. that for managing microcontrollers, due to its ease of use and reliable operation.
If you use Windows 10 or Windows 11, you'll also find a guide here to help you establish serial connections smoothly.

I used "uncle" to explore the Ifixit Portable Soldering Station. Me facilitó la conexión serial para inspeccionar el funcionamiento interno del soldador inteligente.
In this guide we will teach you how to install and use tio with the default configuration, with a quick example using a Raspberry Pi Pico 2 as a serial device. Then we'll see how to adjust specific parameters such as the baud rate and how to save all the serial data to a text file for later analysis.
To follow this guide you will need:
- A computer with Ubuntu installed
- Raspberry Pi Pico 2 (o Pico / Pico W)
- DHT11 Temperature Sensor
- medium-sized breadboard
- 3 cables jumper macho a macho
Installing TIO using the package manager
We're going to install tio on an Ubuntu 24.04 system, but the instructions apply to most Debian-based distributions. On other Linux systems, search for the equivalent package in your package manager.
1. Open a terminal and update the repository list, then perform a system update. This step ensures you have the latest package list and that all your software is up to date. If prompted to confirm the update, press [button name]. AND.
sudo apt update sudo apt upgrade
2. Install that.
sudo apt install tio
Quick demo circuit
I've prepared a demo using a Raspberry Pi Pico 2 with a DHT11 sensor. This sensor measures temperature and humidity and sends the data to the Python shell, which we'll read via the serial connection. You don't have to replicate this; you can use any serial device.
Materials needed for this demo:
- Raspberry Pi Pico 2 o Pico
- DHT11 temperature and humidity sensor
- Medium-sized breadboard
- 3 cables jumper macho a macho

The circuit connects power and data between the Pico 2 and the DHT11 sensor. The Pico powers the sensor and receives the temperature signal through the data pin.
| Raspberry Pi Pico 2 | DHT11 | Function | Cable color |
|---|---|---|---|
| 3V3 Out | Pin 1 (VDD) | 3.3V Power Supply | Red |
| GPIO 17 | Pin 2 (Data) | Data output | Orange |
| Any GND | Pin 4 (GND) | Earth (reference) | Negro |
Make sure your Raspberry Pi Pico has MicroPython installed. Continue to step 4 in This guide to have MicroPython and Thonny ready.
1. Open Thonny and create a new blank file.
2. Import the necessary libraries to control the GPIO and the DHT11 sensor.
from machine import Pin import time import dht
3. Create an object called sensor which connects the code to the DHT11 on GPIO 17.
sensor = dht.DHT11(Pin(17))
4. Program a loop while True to run the code repeatedly.
while True:
5. Wait two seconds and take a measurement.
time.sleep(2) sensor.measure()
6. Store the temperature in a variable called temp.
temp = sensor.temperature()
7. Displays a message with the current temperature using string format.
print("Temperature Checker") print('La temperatura es:', "{:.1f}ºC\n".format(temp))
8. Save the file as main.py on the Pico so that it runs automatically when turned on.
Full code
from machine import Pin import time import dht sensor = dht.DHT11(Pin(17)) while True: time.sleep(2) sensor.measure() temp = sensor.temperature() print("Temperature Checker") print('La temperatura es:', "{:.1f}ºC\n".format(temp))
Using the default settings
The default settings for tio are usually sufficient. You just need to run the command. that along with the path to the serial device. But first, how do you find the correct device? [uncle] also has the solution.
1. Close Thonny. Other programs with serial functions may interfere.
2. Open a terminal and list the available serial ports with:
tio -l

3. Connect to your serial device (for example, the Raspberry Pi Pico) using:
tio /dev/ttyACM0
4. You will see the serial output on your terminal. The temperature will be displayed every second. To exit, press CTRL + C to enter the interactive Python interpreter.

5. To close, dude, press CTRL + t followed by the key Q.
The command tio -l Lists all connected serial devices, allowing you to connect to multiple devices simultaneously, such as a Raspberry Pi Pico 2 alongside an Arduino Uno.

Configuring the connection parameters
By default, tio uses configuration 115200 8N1:
- 115200: Transmission speed (baud rate).
- 8: Data bits per character.
- N: Without parity bit.
- 1: Stop bit.
This speed is usually standard on many boards, including Arduino and the Raspberry Pi Pico 2.
We can modify these parameters to adapt them to the configuration of our serial device. For example, if an Arduino sends data at 9600 baud (Serial.begin(9600)), we must tell tio that.

Steps to adjust the connection:
1. Open terminal and run tio with the parameters for baudrate 9600, 8 bits, no flow control, 1 stop bit and no parity:
tio /dev/ttyACM0 --baudrate 9600 --databits 8 --flow none --stopbits 1 --parity none
2. Verify that the message is being processed correctly in the terminal.
3. To exit, press CTRL + t and then Q.
Record data in a log file
A very useful function is to save a copy of the serial output to a file for later analysis.
With the temperature sensor project, we will save the information in a file called temperature-log.txt.
1. Run tio from the terminal, specifying the file and enabling registration:
tio /dev/ttyACM0 --log-file temperature-log.txt -L

2. Run it for as long as you need to collect data.
3. To exit, press CTRL + t and then Q.
4. Open the file in a text editor to view the log.
5. To add data to an existing file without overwriting it, use:
tio /dev/ttyACM0 --log-append --log-file temperature-log.txt -L

6. Open the file to verify that the data was added correctly.
If you want to add a timestamp to each line to identify the exact time of each event, add the flag -t to the command, as follows:
7. Run tio with timestamp and log entry:
tio /dev/ttyACM0 --log-append --log-file temperature-log.txt -L -t

8. To exit, press CTRL + t followed by Q.
9. Open the file to see the data with the exact time of each record.

Advanced features of uncle
tio includes multiple additional features accessible during its execution. Use CTRL + t followed by a key to activate different commands.
CTRL+t ? Lists available commands CTRL+tb Sends break signal CTRL+tc Displays current configuration CTRL+te Enables/disables local echo mode CTRL+tf Enables/disables logging to file CTRL+t F Clears data buffers CTRL+tg Enables/disables serial line CTRL+ti Changes input mode CTRL+tl Clears screen CTRL+t L Displays line statuses CTRL+tm Changes character mapping CTRL+to Enables/disables output mode CTRL+tp Pulses serial line CTRL+tq Exits tio CTRL+tr Executes a script CTRL+t R Executes a shell command redirecting I/O to the device CTRL+ts Displays statistics CTRL+tt Enables/disables online timestamps CTRL+tv Displays version CTRL+tx Sends file via Xmodem CTRL+ty Sends file via Ymodem CTRL+t CTRL+t Sends the character
🔥 Try these features to get the most out of your serial connections! Remember that tio is lightweight, fast, and very practical for developers and electronics enthusiasts. 🚀
👉 Start installing here and explore its functionalities for your microcontroller projects.



















