• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • 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 Info - Technology, News and Tutorials
No result
See all results
Start Tutorials

tio, the hidden trick to mastering microcontrollers 🔥

MasterTrend Insights by MasterTrend Insights
January 28, 2026
in Tutorials
Reading time:7 min read
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.

71
SHARED
196
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

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 StationHe provided me with the serial connection to inspect the internal workings of the smart welder.

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
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

WiFi Calling on iPhone. Woman showing on an iPhone the WiFi Calling option enabled in settings, guide on how to enable and use WiFi Calling on iPhone step by step.
Tutorials

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
148
Advanced on-screen TV settings with brightness, contrast, sharpness, color, motion flow and HDR tone mapping configuration on a 4K UHD TV displaying a cinematic scene in high definition.
Tutorials

Advanced TV settings: what to change and what to avoid

April 7, 2026
247
iPhone call forwarding activated from settings, showing the “Call Forwarding” option enabled on the mobile phone screen.
Tutorials

iPhone call forwarding: how to activate and use it

April 27, 2026
221
Actual charging speed on your Android phone shown in a charging meter app with amperage and battery status on screen, while a woman holds the smartphone in a technology store.
Tutorials

Actual Loading Speed ​​on Your Android Phone

February 22, 2026
172
Accidental Echo Activation - Woman annoyed by the accidental activation of Alexa on an Amazon Echo speaker in a domestic living room.
Tutorials

Accidental activation of Echo on Amazon speakers

February 9, 2026
178
PNG to PDF Methods - Illustration of methods to convert PNG files to PDF, showing PNG and PDF icons with a conversion arrow between both formats.
Tutorials

PNG to PDF conversion methods: A comparison to help you choose in Windows 11

April 27, 2026
301
next post
DNS Cache - Two women cleaning a laptop screen with the text "DNS Cache Internet 100%", illustrating how to clear or clean the DNS cache to improve your internet connection.

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

5 1 vote
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
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

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

April 28, 2026
Windows 11 Persistent Clock

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

April 28, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

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

7 July 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
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026

Recent News

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
107
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
99
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
138
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026
104
MasterTrend Info 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

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
  • 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