Virtual Serial Port Driver in Linux (Part 2)

Virtual Serial Port Driver in Linux (Part 2)

Introduction In the previous article, we briefly introduced the difference between bare-metal drivers and device drivers, as well as the driver architecture of character devices in the Linux kernel. Without an operating system, upper-layer applications directly access the driver interface, and application engineers need to know the driver interface for each device. When accessing Flash, … Read more

Raspberry Pi | Ultrasonic Sensor Tutorial

Raspberry Pi | Ultrasonic Sensor Tutorial

Click on the above“Mechanical and Electronic Engineering Technology” to follow us The ultrasonic sensor is an electronic sensor based on acoustic principles. It measures the distance between the sensor and an object by emitting ultrasonic pulses and receiving reflected signals, and is used to detect the presence of objects. It has widespread applications in modern … Read more

Combining Raspberry Pi with AI Technologies for Embedded Linux Development

Original content by JG Education, please feel free to share with your friends. Unauthorized reproduction by other public accounts is prohibited. Micro Course Video: GPIO Channel Settings and LED Control👇 Micro Course Video: Implementation of Intrusion Alarm Function👇 Micro Course Video: Exercise – Mobile Remote Control Light👇 Some Electronic Courseware👇 Author: Wang Zheng Editor: Zhang … Read more

Understanding SOC Design and Address Allocation

Understanding SOC Design and Address Allocation

Previously, it was explained that when external registers need to be added, the bus interconnection module must be changed. In the bus interconnection module, each register has a wire connected to the bus interconnection module for reading data and enabling signals. If there are relatively few registers, it seems there is no problem. But what … Read more

How to Choose an MCU

How to Choose an MCU

In today’s article, let’s discuss how to choose an MCU. Let me share my thought process. 1. List the peripherals If a system has multiple MCUs, we need to allocate them properly, for example, temperature sensor on MCU #1, Bluetooth on MCU #2, etc. 2. Determine the communication interfaces of the peripherals Some peripherals support … Read more

Common I/O Ports of MCUs and Their Differences

Common I/O Ports of MCUs and Their Differences

When it comes to microcontrollers (MCUs), the first thing that comes to mind is that they have many input/output (I/O) ports, which can be difficult to distinguish. As the core of embedded systems, they can communicate with external devices or sensors. However, the presence of I/O ports often makes learning challenging for many people. This … Read more

Using STM32 HAL Library for GPIO Control

Using STM32 HAL Library for GPIO Control

01 Introduction In the development of embedded systems based on STM32 microcontrollers, GPIO (General Purpose Input/Output) control is one of the most fundamental and common operations. By using the STM32 HAL library, configuring and controlling GPIO can be done easily. This article will demonstrate how to use the STM32 HAL library for GPIO control and … Read more

How to Handle Single Chip Select in STM32 SPI?

How to Handle Single Chip Select in STM32 SPI?

Previously, when using STM32’s SPI to control many external chips, there was only one chip select for a single SPI peripheral. How can we achieve independent chip selection for one master and multiple slaves? SPI Bus Topology Generally, the SPI bus is connected as shown in the figure below, with one master and multiple slaves. … Read more

Step-by-Step Guide to STM32 GPIO

Step-by-Step Guide to STM32 GPIO

GPIO, translated as General Purpose Input Output. I believe everyone is quite clear about the meaning of input and output. The most commonly used output function is the LED, while the most commonly used input function is the key. To use the GPIO functionality of STM32, the first thing to clarify is who controls this … Read more