In the last note, I learned about the ADC driver. STM32MP157 also has DAC peripherals. The IIO driver framework also used by DAC. In this chapter, we will learn how to use the DAC on STM32MP157 under Linux as follows. Introduction to DAC ADC is an analog-to-digital converter, responsible for converting external analog signals into […]
Tag: embed
Build an industry knowledge base based on LangChain+ChatGLM2-6B+embedding
Purpose: Recently, I have been exploring large model localization deployment + knowledge base to implement industry solutions, record the installation process, and share it with students who need it. It is very important to determine the version of each component before installation to avoid repeated installations. After reviewing a large amount of information, it can […]
Embedded Linux development—UART serial communication driver hardware programming
0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]
In embedded design, for a variable storage design with only two states, how to efficiently quantify the deviation of the tracking car…
Foreword (1) In embedded programming, we often need to store data from various sensors. Most of the time sensors, such as infrared light sensors, return data that is either 0 or 1. Therefore, only one bit is needed to store it. However, many people often use char array storage, so that only one-eighth of the […]
Embedded development plan-50—-ARM–Related syntax of ARM assembly language–ARM assembly instructions
One hundred and twenty-five, related syntax of ARM assembly language 125.1 Contents in the assembly file 1. Pseudo operation: It does not occupy storage space in the assembly program, but it can play a guiding and identifying role when the program is compiled. .text .global .glbal .if .else .endif .data .word…. 2. Assembly instructions: Each […]
11.3 Embedded C language
day3 1, int a[]={<!– –>0,1,2,3,4,5,6,7,8,9},*p=a,i; Among them, 0
Punctual Atomic Embedded Linux Driver Development–Linux 4G Communication
I have learned previously how to use a wired network or WIFI in Linux, but there are many restrictions on using a wired network or WIFI because wiring is required. Even WIFI must be wired first and then connected to a wireless router. There are many occasions where wiring is inconvenient. This is when 4G […]
Unity game embedded in iOS application (integrated into one application) v2.0
One game embedded in APP 1.1 Development tool version 1.1.1 iOS development tool version Xcode Version 14.2 (14C18) ? 1.1.2 The iOS project development language is Swift5 ? 1.1.3 Unity development tool version 2022.3.8f1c1 ? 1.2 Combining iOS projects and Unity projects 1.2.1 Create a new Swift language project on iOS ? In the new […]
How to rewrite C++ code into C language code in embedded system
Because the C++ interpreter takes up about 500k more storage space than the C language interpreter. In order to save limited storage space, reduce costs, and improve efficiency, it is necessary to rewrite the source program written in C++ language into C language. The biggest difference between C++ and C is the concept and characteristics […]
Android embeds its own trained yolov5 model (tfLite) traffic signs
Table of Contents Step 1: Download the model and modify parameters Step 2: Label the data Step 3: Start training Step 4: Convert yolov5 to tfLite model Step 5: We can check whether tfLite is available Step 6: Download the official sample code Step 7: Modify the code Step 8: Run the software Step 9: […]