Introduction to CAN Bus Basics for In-Vehicle Testing

When learning about in-vehicle testing, how can we not understand CAN basics? Today, I have organized a detailed note for everyone, so let’s follow along with Songqin! Understanding CAN 01 What is CAN Bus? CAN stands for Controller Area Network, which is an internationally standardized serial communication protocol by ISO. In simple terms, the CAN … Read more

Analysis of CAN Protocol

Overview The CAN protocol, short for Controller Area Network, was developed by the German company BOSCH, known for its automotive electronic products, and has become an international standard ISO11519 and ISO11898. The CAN bus protocol has become the standard bus for automotive computer control systems and embedded industrial control LANs. CAN Protocol Composition The CAN … Read more

Bluetooth Controlled Fan Using 51 Microcontroller

First, buy a Bluetooth module and download a Bluetooth serial debugging assistant on your phone, which is equivalent to the UART serial communication of the microcontroller. Use BUFF to obtain the received data. Here, we only need to focus on one issue, which is testing the encoding. If the APP sends 0xFF, (the APP Bluetooth … Read more

Fast Charging with Lithium Batteries: Save 300 Yuan

Introduction Recently, I discovered an open-source project for both embedded software and hardware on GitHub —Fast Charging Solution for Lithium Batteries Based on STM32G0, powered by a Type C charger, designed using STM32G0, it supports charging 1s – 4s lithium battery packs and includes a 2s-4s balancing charging feature. Currently, this project has been mass-produced … Read more

Comprehensive Guide to Microcontroller Units

MCU stands for Microcontroller Unit, which is commonly known as a single-chip microcontroller. It reduces the CPU’s frequency and specifications appropriately and integrates memory, counters, USB, A/D conversion, UART, PLC, DMA, and other peripheral interfaces, even LCD driver circuits, into a single chip, forming a chip-level computer. This allows for different combinations of control for … Read more

Implementing Printf Function via JLink SWD Interface

The printf function is indispensable during microcontroller debugging, allowing developers to intuitively and conveniently obtain the current running status of the program. However, in chips like STM32, to achieve printf functionality, UART must be utilized. Is there a way to implement printing functionality solely with JLink? The answer is yes. ARM has adopted a new … Read more

USB to Serial Communication Circuit

With the development of technology, RS232 serial communication is still widely used in industry. However, in commercial applications, the USB to UART technology has gradually replaced RS232 serial ports. Most laptops no longer have serial ports. So, how can we achieve communication between a microcontroller and a computer? We only need to add a USB … Read more

The Ultimate Guide to Microcontrollers

Source: Semiconductor Industry Alliance MCU is the abbreviation for Microcontroller Unit, commonly known as a microcontroller. It reduces the frequency and specifications of the CPU appropriately and integrates memory, counters, USB, A/D converters, UART, PLC, DMA, and even LCD driver circuits onto a single chip, forming a chip-level computer for different application scenarios. MCU can … Read more

Understanding Serial Communication and Interfaces

When using PLCs, you will encounter many communication protocols and communication interfaces. 01 What Is Serial Communication? A serial port is a very common device communication protocol on computers (do not confuse it with Universal Serial Bus or USB). Most computers have two RS232-based serial ports. The serial port is also a common communication protocol … Read more