当前位置:网站首页>ADC voltage calculation of STM32 single chip microcomputer

ADC voltage calculation of STM32 single chip microcomputer

2022-07-04 06:23:00 Tears like eating hot pot

Abstract :

Because of the MCU ADC More development and use , Then we need to pay attention ADC The reference voltage of , The final voltage value obtained by different reference voltages is different , alike , The number of bits of resolution will also affect the final value of voltage ;

If the reference voltage is 5V, And use ADC The sampling resolution of is 12 position , Then we are initializing GPIO After a mouth , You need to :

for example : What is collected is the pressure of the battery , Then the original voltage collected is Volss, Final voltage :Vol

Vol = (Volss * 5.0)/2*12

      = (Volss * 5.0)/4096

原网站

版权声明
本文为[Tears like eating hot pot]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207040619054038.html