• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend News
No result
See all results
Start Tutorials

tio, the hidden trick to mastering microcontrollers 🔥

MasterTrend Insights by MasterTrend Insights
December 11, 2025
in Tutorials
Reading time:8 min read
To To
0
Uncle - Two students programming on a computer with the word "uncle" on the screen, learning the hidden trick to master microcontrollers and improve electronics projects.

Two programmers discover the **tio** command on the screen, the hidden trick to master microcontrollers and learn embedded programming step by step.

0
SHARED
0
Views
Share on FacebookShare on Twitter

Contents

  1. tio, connect your serial equipment in 1 minute and without errors ⚡
  2. Installing TIO using the package manager
  3. Quick demo circuit
  4. Full code
  5. Using the default settings
  6. Configuring the connection parameters
  7. Record data in a log file
  8. Advanced features of uncle
    1. Related Publications

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.

It may interest you
Demonstration image of Tio's use in Linux

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
Example circuit with Raspberry Pi Pico and DHT11 sensor

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 2DHT11FunctionCable color
3V3 OutPin 1 (VDD)3.3V Power SupplyRed
GPIO 17Pin 2 (Data)Data outputOrange
Any GNDPin 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
List of serial devices with Tio on Linux

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.

Serial output using Tio in the terminal

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.

List of multiple serial devices with Tio

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.

Example Arduino serial configuration with Tio

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
Record serial output data to a file using Tio

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
Add data to the log without overwriting with Tio

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
Serial data with timestamp in log file using Tio

8. To exit, press CTRL + t followed by Q.

9. Open the file to see the data with the exact time of each record.

Log output with timestamps using Tio on Linux

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.

Share this:
FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok

Related Publications

  • Install Windows 11 Home without Internet
  • Online Services to Check for Website Downtime: Find out if your website is active! 🌐⚡
  • Oblivion Remastered Deluxe Edition: A step backwards? 🤔
  • QNodeos revolutionizes quantum networks: first operating system! 🚀⚛️
  • Nintendo Switch 2: Key to its guaranteed success 🚀
  • Chrome Software Reporter Tool: Stop data leaks now! 🔒
  • Linux distributions similar to Windows 10: Switch now 🖥️✨
  • Android apps keep crashing: Fix unexpected crashes! Quick and easy! ⚡
Tags: EvergreenContentLinuxRaspberry Pi
Previous Publication

Windows 11 Updates: The Hidden Way Nobody Uses 😱

next post

DNS caching: The quick way to boost your speed today 🚀

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.
Tutorials

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
70
VPN Fire TV - Woman using Fire TV Stick on TV to watch Netflix and other streaming apps with VPN, protecting her data and unlocking more content.
Tutorials

VPN Fire TV Protect your data and access more content 🔒🔥

December 6, 2025
60
Sync Android Windows - Illustration of an Android icon syncing with the Windows 11 logo, representing how to sync an Android phone with a Windows PC to share files, notifications, and apps.
Tutorials

Sync Android with Windows: Discover the trick that speeds everything up ⚡

December 4, 2025
107
Netflix Secret Codes - Woman smiling on the sofa while holding a remote control with a Netflix button, ideal for illustrating Netflix tricks and secret codes to find new series and movies.
Tutorials

Netflix Secret Codes 2025: Quick Access to Hidden Genres 🔥

December 2, 2025
298
Uninstall Linux - Chromebook laptop with Linux and terminal on screen next to the Tux mascot, illustrating how to uninstall Linux and clean your Chromebook in 1 minute.
Tutorials

Uninstalling Linux: The trick to deleting hidden apps 😱

December 2, 2025
70
Modo Dios Android Auto - Woman driving a car using "Modo Dios" on Android Auto, showing a custom God-themed interface on the vehicle's touchscreen.
Tutorials

Android Auto God Mode unlocks hidden settings 🔥

December 1, 2025
77
0 0 votes
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers

Do not miss the latest in technology and gaming.
Tips unique, practical guides and analysis every day.

Subscription Form
  • Trends
  • Comments
  • Last
How to add clock on the Windows desktop 11: ¡3 tricks infallible!

How to add clock on the Windows desktop 11: Get more in minutes! ⏱️

1 May 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

November 20, 2025
12 Best Alternatives to Lucky this program for Android

Alternatives to Lucky this program: the 12 apps best and easy! 🎮⚡

13 November 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Repair of motherboards - Repair MotherBoards

Repair of motherboards of Laptops

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
Windows 11 Updates - Couple using a laptop to uninstall Windows 11 updates, with screen showing "Windows Update" and the text "Uninstall Updates", quick trick visual guide to delete Windows 11 updates.

Windows 11 Updates: The Hidden Way Nobody Uses 😱

December 10, 2025
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
Transition to Linux - Woman using a laptop with Kubuntu Linux on the desktop, illustrating the transition to Linux and the 7 recommended applications to accelerate the switch from Windows or macOS.

Transitioning to Linux: What nobody tells you (and it works) 😱

December 9, 2025
Prefetch Folder - Woman cleaning the Prefetch folder in Windows to speed up the PC, illustration of optimization and quick cleaning that multiplies the speed of the operating system.

Prefetch Folder: Quick cleanup that multiplies speed ⚡

December 9, 2025

Recent News

Windows 11 Updates - Couple using a laptop to uninstall Windows 11 updates, with screen showing "Windows Update" and the text "Uninstall Updates", quick trick visual guide to delete Windows 11 updates.

Windows 11 Updates: The Hidden Way Nobody Uses 😱

December 10, 2025
152
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
70
Transition to Linux - Woman using a laptop with Kubuntu Linux on the desktop, illustrating the transition to Linux and the 7 recommended applications to accelerate the switch from Windows or macOS.

Transitioning to Linux: What nobody tells you (and it works) 😱

December 9, 2025
70
Prefetch Folder - Woman cleaning the Prefetch folder in Windows to speed up the PC, illustration of optimization and quick cleaning that multiplies the speed of the operating system.

Prefetch Folder: Quick cleanup that multiplies speed ⚡

December 9, 2025
73
MasterTrend News logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

Windows 11 Updates - Couple using a laptop to uninstall Windows 11 updates, with screen showing "Windows Update" and the text "Uninstall Updates", quick trick visual guide to delete Windows 11 updates.

Windows 11 Updates: The Hidden Way Nobody Uses 😱

December 10, 2025
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance