Improved average filtering algorithm for A/D (Analog to Digital) sampling
A mean filtering and sampling value technology, applied in the field of software filtering algorithms, can solve the problems of ineffective removal of interference signals, large jumps, and large deviations from the mean value to the true value, etc., to achieve interference removal, simple implementation, and strong anti-interference ability Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0034] In the sampling software filtering method, first use the function Adc1_Init() to initialize the A / D acquisition channel 1 of STM32F103RBT6. Then call the Get_Adc1() function to store the collected value Adc1_Value into the array AD[M], and the initial value of M is 0. Then judge whether M is smaller than N, the initial value of N is 100, if so, continue to call Get_Adc1() to collect data and store it in the array AD[M]. If not, it means that 100 data has been collected, call the bubble sorting function Bubble_Sort(AD[N]) to sort the 100 data in the AD[N] array, the order is from small to large. Then call the Delete(AD[N / 5]) function to delete 20 data before and after each in the array. Finally, calculate the cumulative sum of the remaining 60 data, and save it in SUM, use SUM / 60 to get the average value, store it in AVG, and get the final true value of the collected data.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com