当前位置:网站首页>STM32 单片机ADC 电压计算
STM32 单片机ADC 电压计算
2022-07-04 06:19:00 【喜欢吃火锅的泪】
摘要:
由于单片机ADC开发使用比较多,则我们需要注意ADC的参考电压,不同的参考电压获取的最终电压值是不一样的,同样的,分辨率的位数也会影响到电压最终的值;
如果采用的是参考电压为5V,并且使用的ADC的采样分辨率是12位,则我们在初始化完成GPIO口后,则需要:
例如:采集的是电池的压,则采集到的原始电压为Volss,最终的电压:Vol
Vol = (Volss * 5.0)/2*12
= (Volss * 5.0)/4096
边栏推荐
- Webrtc quickly set up video call and video conference
- 安装 Pytorch geometric
- Learn about the Internet of things protocol WiFi ZigBee Bluetooth, etc. --- WiFi and WiFi protocols start from WiFi. What do we need to know about WiFi protocol itself?
- buuctf-pwn write-ups (8)
- Fast power (template)
- Install pytoch geometric
- Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
- Take you to quickly learn how to use qsort and simulate qsort
- QT QTableWidget 表格列置顶需求的思路和代码
- px em rem的区别
猜你喜欢
AWT介绍
JS how to convert seconds into hours, minutes and seconds display
C语言练习题(递归)
Grounding relay dd-1/60
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
High performance parallel programming and optimization | lesson 02 homework at home
js arguments参数使用和详解
JS flattened array of number shape structure
QT 获取随机颜色值设置label背景色 代码
剑指 Offer II 038. 每日温度
随机推荐
STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
740. Delete and get points
left_ and_ right_ Net interpretable design
JS flattened array of number shape structure
JS how to convert seconds into hours, minutes and seconds display
Functions in C language (detailed explanation)
C realize Snake games
px em rem的区别
Nexus 6p downgraded from 8.0 to 6.0+root
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
Understanding of cross domain and how to solve cross domain problems
对List进行排序工具类,可以对字符串排序
Considerations for testing a website
Design and implementation of tcp/ip series overview
SQL join, left join, right join usage
注释与注解
js获取对象中嵌套的属性值
js如何将秒转换成时分秒显示
509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
A little understanding of GSLB (global server load balance) technology