Debugging UART Touchscreens on Android

Debugging UART Touchscreens on Android

Currently, the commonly used touchscreens on Android devices include interfaces such as UART, USB, and I2C. This article mainly documents the use of UART touchscreens within the Android system:1. Kernel Configuration To use a UART touchscreen in the Android system, it involves the SERIO framework of the Linux kernel, and the following configuration options need … Read more

Can the ESP32 Be Used as a POS Receipt Printer? Multi-format Printing, ESC/POS Commands, Powered by 7.4V! One Board to Achieve Thermal Printing

Can the ESP32 Be Used as a POS Receipt Printer? Multi-format Printing, ESC/POS Commands, Powered by 7.4V! One Board to Achieve Thermal Printing

Store receipts need to be printed, embedded systems require local storage, and devices must operate offline—complex protocols, size constraints, and long development cycles often hinder good ideas at the “last mile.” Now, there is a thermal printing solution based on the ESP32: direct serial connection, simple commands, supporting text/QR codes/barcodes/images, allowing for quick setup of … Read more

Summary of 28 Key Points on Embedded STM32

Summary of 28 Key Points on Embedded STM32

1. What are the differences between STM32F1 and F4? Answer: Reference: STM32 Development – Introduction to STM32Different cores: F1 uses Cortex-M3 core, while F4 uses Cortex-M4 core;Different clock speeds: F1 has a clock speed of 72MHz, while F4 has a clock speed of 168MHz;Floating-point operations: F1 lacks a floating-point unit, while F4 has one;Functional performance: … Read more

Differences and Connections Between Serial Ports, UART, RS232, and RS485

Differences and Connections Between Serial Ports, UART, RS232, and RS485

Serial Port refers to the serial interface, commonly known as the COM (Communication Port) interface. This is an “old” interface that was primarily introduced to connect computer peripherals, such as mice or modems. Since this interface typically appears in a 9 pin format, it is often referred to as the 9-pin serial port or DB9 … Read more

Understanding I2C, SPI, and UART Through GIFs

Understanding I2C, SPI, and UART Through GIFs

By 2025, communication protocols such as I2C, SPI, and UART will continue to be a vital part of the tech world. These protocols are used for communication between various electronic devices and serve as the invisible heart that keeps our interconnected embedded systems and peripherals running optimally. In this article, we will dissect the functionalities, … Read more

ESP32 | Basics 05 – Serial Communication

ESP32 | Basics 05 - Serial Communication

01 Overview Serial communication, known in English as Serial Communication, is a method of transmitting data bit by bit. It is a general term for this type of communication, with specific implementation protocols includingUART, TTL, RS232, RS485, etc. UART (Universal Asynchronous Receiver/Transmitter) is a general-purpose asynchronous transceiver. The ESP32 integrates three UART controllers: UART0: Typically … Read more

Understanding UART, I2C, SPI, TTL, RS232, RS422, RS485, CAN, USB, SD Card, 1-WIRE, and Ethernet in Embedded Development

Understanding UART, I2C, SPI, TTL, RS232, RS422, RS485, CAN, USB, SD Card, 1-WIRE, and Ethernet in Embedded Development

In microcontroller development, interfaces such as UART, I2C, and RS485 are commonly used, and understanding them can be somewhat ambiguous. This article organizes these concepts. The reading time is approximately 10 minutes. Universal Asynchronous Receiver-Transmitter (UART) The UART port refers to a type of physical interface (hardware). UART is an asynchronous, full-duplex serial bus. It … Read more

Clarifying the Differences and Applications of SPI, UART, and I2C Communication!

Clarifying the Differences and Applications of SPI, UART, and I2C Communication!

Communication between electronic devices is like communication between humans; both parties need to speak the same language. In electronic products, these languages are called communication protocols. Previously, I shared articles on SPI, UART, and I2C communication separately; this article compares them. Serial vs Parallel Electronic devices communicate by sending data bits. A bit is binary … Read more

Common Serial Communication Protocols – UART Serial Port

Common Serial Communication Protocols - UART Serial Port

1. Introduction UART is a universal serial data bus used for asynchronous communication. This bus supports bidirectional communication, converting parallel data into serial data for transmission when sending data, and converting received serial data back into parallel data upon reception, enabling full-duplex transmission and reception. 2. Wiring Methods ① One-to-One Communication: Typically, UART serial communication … Read more

UART Serial Communication Template (Feel free to take it)

UART Serial Communication Template (Feel free to take it)

UART is frequently used in our embedded development process. It is quite simple, but to avoid reinventing the wheel, I have specifically summarized the serial communication software into a template for everyone to reference~Generally, our serial protocol format is as follows: [Frame Header] [Length] [Data Field] [Checksum] [Frame Tail] Frame Header: A fixed byte sequence … Read more