Development of ADC Acquisition System Based on STM32
Abstract
This paper describes the method and principle of ADC acquisition by STM32. The hardware circuit is designed and built the experimental platform. In order to make the measured value accurate and reliable. The data were sampled for 200 times, and the data were sorted. Removed the maximum’s forty value and the minimum’s forty value, with the remaining 120 data to sum, and calculate the average value to get the final acquisition value. This mean filtering algorithm can effectively remove interference. The test results show that the design can accurately sample the external voltage value, and has certain practical value.
Keywords
STM32, ADC sample, Average filter algorithm
DOI
10.12783/dtssehs/aetms2017/15881
10.12783/dtssehs/aetms2017/15881