stm car HAL library speed measurement PID speed regulation Bluetooth OLED use

//Redirect serial port one int fputc(int ch,FILE *stream) { HAL_UART_Transmit( & amp;huart1,( uint8_t *) & amp;ch,1,0xFFFF); return ch; } //typedef struct __FILE FILE; When using printf, add #include<stdio.h>; 2. Serial port interrupt callback function uint8_t g_ucUsart3ReceiveData; //Save the data received by serial port 3 main.c HAL_UART_Receive_IT( & amp;huart3, & amp;g_ucUsart3ReceiveData,1); //Serial port three receives data […]

[Monocular Ranging] How to measure distance when the slope of the ground is known

Article directory I. Introduction 2. Ranging code 2.1. The ground has a slope 2.2. python code 2.2.1. Rotation matrix rotation angle 2.2.2. Angle to rotation matrix 2.2.3. Three-dimensional rotation principle (Rotation principle) 2.2.4. Complete code 2.3, c++ code 1. Preface The previous blog [Monocular Ranging] How to measure distance when the camera angle is known […]

C# combined with Halcon template matching + measurement (1)

Table of Contents 1. Halcon implementation 2. vs implementation 2.1 Interface settings 2.2 Preparation panel control object 2.3 Implement the function of loading images 1. Halcon implementation Feel free to use the relevant template matching + measurement cases in the halcon case. The following code is for reference only. ************1..Create a positioning template************ dev_set_draw (‘margin’) […]

[Image Segmentation] Image detection (segmentation, feature extraction), measurement and filtering of various features (area, etc.) (Matlab code implementation)

Welcome to this blog Advantages of bloggers:Blog content should be as thoughtful and logical as possible for the convenience of readers. Motto:He who travels a hundred miles is half as good as ninety. The directory of this article is as follows: Table of Contents 1 Overview 2 Operation results ? 3 References 4 Matlab code […]

Design and production of temperature measurement alarm system based on 51 microcontroller

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article directory Preface 1. Purpose of internship 2. Internship tasks 2.1 Design the hardware circuit of the temperature measurement alarm system 2.2 Temperature measurement and alarm system […]

Citrus color range size measurement system based on OpenCV

1. Research background and significance Project ReferenceAAAI Association for the Advancement of Artificial Intelligence research background and meaning Citrus is an important fruit with rich nutritional value and wide market demand. Accurately measuring the color range and size of citrus is very important during the growing and selling of citrus. Traditional methods of measuring citrus […]

Application Utility – Video Input using OpenCV and Similarity Measurement OpenCV v4.8.0

Previous tutorial: Reading geospatial raster files using GDAL Next tutorial: Creating a video using OpenCV Original author Bernát Gábor Compatibility OpenCV >= 3.0 Goals Today, owning a digital video recording system has become a common phenomenon. So what you end up dealing with is no longer a batch of images, but a stream of video. […]