Gesture-Controlled Lighting System Based on STM32 and MPU6050

Gesture-Controlled Lighting System Based on STM32 and MPU6050

In the applications of smart homes and the Internet of Things, gesture control is an interactive method that provides a great user experience—no need to press switches, just wave your hand to control the lights.The MPU6050 is a six-axis sensor that integrates a three-axis accelerometer and a three-axis gyroscope, which can obtain the motion posture … Read more

Is I2C Being Replaced?

Is I2C Being Replaced?

Follow and star our public account for exciting content Source: This article is translated from Chip Interfaces ApS. The I2C (Inter-Integrated Circuit) bus, invented by Philips Semiconductor (now NXP Semiconductors) in 1980, made significant strides in simplifying communication in embedded systems. It is a simple two-wire interface for synchronous, multi-master/multi-slave, single-ended serial communication. Forty-five years … Read more

The Great Communication Protocol Battle: Why Do Some Chips Use UART, Others Use SPI, and Some Prefer I2C? The Truth is More Complex Than You Think!

The Great Communication Protocol Battle: Why Do Some Chips Use UART, Others Use SPI, and Some Prefer I2C? The Truth is More Complex Than You Think!

🚗The Great Communication Protocol Battle: Why Do Some Chips Use UART, Others Use SPI, and Some Prefer I2C? The Truth is More Complex Than You Think!🎯 🎓 Keywords: UART, SPI, I2C, chip communication, hardware design🧑🔧 Target Audience: Electronics beginners, communication novices, embedded developers 🚀 Opening Statement: It’s not the chips choosing the protocol, it’s the … Read more

Common Communication Protocols in Embedded Systems

Common Communication Protocols in Embedded Systems

Fundamental Concepts of Communication Signal: The physical representation of information (voltage, current, light, radio waves). Transmission Medium: Wires (single wire, twisted pair, coaxial cable), PCB traces, optical fibers, air (wireless). Data Frame/Packet: The basic unit of structured transmission (start bit, address, data, control information, checksum, stop bit). Baud Rate: The number of signal changes per … Read more

Simple Animations to Understand the Communication Processes of I2C, SPI, and UART

Simple Animations to Understand the Communication Processes of I2C, SPI, and UART

So far, I2C, SPI, and UART remain the most commonly used communication protocols in electronic embedded devices. In this article, we will analyze these three protocols to provide a clear and intuitive understanding of their functions, advantages, and limitations, supplemented with GIF animations. I2C Protocol I2C is a serial communication protocol typically used to connect … Read more

STM32 I2C Bus ‘Phantom Lock’! Thousands of Devices Randomly Fail, Learning the ‘9 Clock’ Rescue Technique After Losing 300,000!

STM32 I2C Bus 'Phantom Lock'! Thousands of Devices Randomly Fail, Learning the '9 Clock' Rescue Technique After Losing 300,000!

Now, whenever I see the three letters I2C, my instinct is to write error handling first. It’s not that I’m timid; it’s because I’ve been burned before, and it was quite severe. Back then, a batch of devices was deployed using the STM32F103, with I2C connected to several EEPROMs and gas sensors. The development phase … Read more

In-Depth Understanding of the Linux I2C Subsystem: From Hardware Protocol to Driver Practice

In-Depth Understanding of the Linux I2C Subsystem: From Hardware Protocol to Driver Practice

5. Composition of the I2C Subsystem The kernel space can be divided into: i2c device drivers, i2c core, and i2c bus drivers. i2c core: Implementation of the framework; provides methods for registering and unregistering i2c bus drivers and device drivers; the upper-level code for i2c communication methods (algorithm) that is independent of specific adapters, as … Read more

Embedded Sharing #31: 10 Times Faster than I2C! Have You Used I3C on RK3576?

Embedded Sharing #31: 10 Times Faster than I2C! Have You Used I3C on RK3576?

Cover Image During the pandemic, due to a significant reduction in vehicles, the polluted air in Kathmandu, Nepal, began to clear, allowing views of Mount Everest. Main Content Recently, it was discovered that the RK3576 actually has an I3C interface. While we are still figuring out I2C, I3C has already emerged, so let’s quickly take … Read more

How Many Ways Do You Master I2C Interface Communication?

How Many Ways Do You Master I2C Interface Communication?

Overview:The I2C communication interface is one of the most commonly used MCU peripherals in our daily applications. Initially, before MCUs had hardware I2C, I2C communication was accomplished by simulating I2C timing through GPIO ports. Later, as MCUs began to include I2C peripheral interfaces, the use of hardware I2C became commonplace. More importantly, this not only … Read more

STM32 I2C Communication

STM32 I2C Communication

1. Introduction to I2C IIC (Inter-Integrated Circuit) is a synchronous, half-duplex, two-wire serial communication bus proposed by Philips, mainly used for short-distance communication between chips, such as between MCU and EEPROM, RTC, OLED screens, MPU6050 sensors, and other modules. Main features are as follows:Two-wire communication:SCL (clock line) and SDA (data line)Supports multiple master/slave communicationsUnique addressing:Each … Read more