当前位置:网站首页>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
边栏推荐
- 4G wireless all network solar hydrological equipment power monitoring system bms110
- 剑指 Offer II 038. 每日温度
- Which water in the environment needs water quality monitoring
- Sword finger offer II 038 Daily temperature
- Functions in C language (detailed explanation)
- Detectron:训练自己的数据集——将自己的数据格式转换成COCO格式
- STM32 单片机ADC 电压计算
- Fast power (template)
- Common JS tool Libraries
- Impact relay jc-7/11/dc110v
猜你喜欢
Practical gadget instructions
Distributed cap theory
27-31. Dependency transitivity, principle
Functions in C language (detailed explanation)
Detectron: train your own data set -- convert your own data format to coco format
【微服务】Nacos集群搭建以及加载文件配置
C language - Blue Bridge Cup - Snake filling
Cloud native - SSH article that must be read on the cloud (commonly used for remote login to ECS)
My NVIDIA developer journey - optimizing graphics card performance
InputStream/OutputStream(文件的输入输出)
随机推荐
《ClickHouse原理解析与应用实践》读书笔记(4)
198. House raiding
509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
Bicolor case
509. Fibonacci number, all paths of climbing stairs, minimum cost of climbing stairs
Nexus 6p从8.0降级6.0+root
Invalid revision: 3.18.1-g262b901-dirty
Abap:ooalv realizes the function of adding, deleting, modifying and checking
QT releases multilingual International Translation
C realize Snake games
Reading notes of Clickhouse principle analysis and Application Practice (4)
Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
C language exercises (recursion)
SQL injection SQL lab 11~22
Install pytoch geometric
如何避免 JVM 内存泄漏?
How to help others effectively
手动对list进行分页(参数list ,当前页,页面大小)
【微服务】Nacos集群搭建以及加载文件配置
Sort list tool class, which can sort strings