当前位置:网站首页>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
边栏推荐
- After the festival, a large number of people change careers. Is it still time to be 30? Listen to the experience of the past people
- 注释与注解
- 如何避免 JVM 内存泄漏?
- InputStream/OutputStream(文件的输入输出)
- Appium基础 — APPium安装(二)
- Detectron:训练自己的数据集——将自己的数据格式转换成COCO格式
- How to avoid JVM memory leakage?
- 实用的小工具指令
- R统计绘图-随机森林分类分析及物种丰度差异检验组合图
- JS get the attribute values nested in the object
猜你喜欢

Impact relay jc-7/11/dc110v

ES6 模块化

Reading notes of Clickhouse principle analysis and Application Practice (4)

如何展开Collapse 的所有折叠面板
![[microservice] Nacos cluster building and loading file configuration](/img/50/7af220c57a06eb186729c9882d9dab.png)
[microservice] Nacos cluster building and loading file configuration

JS execution mechanism

Win10 clear quick access - leave no trace

buuctf-pwn write-ups (8)

C réaliser des jeux de serpents gourmands

如何实现视频平台会员多账号登录
随机推荐
How to determine whether an array contains an element
AWT introduction
Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
Luogu deep foundation part 1 Introduction to language Chapter 5 array and data batch storage
How does apscheduler set tasks not to be concurrent (that is, execute the next task after the first one)?
如何避免 JVM 内存泄漏?
Learning multi-level structural information for small organ segmentation
APScheduler如何设置任务不并发(即第一个任务执行完再执行下一个)?
2022.7.2-----leetcode. eight hundred and seventy-one
对List进行排序工具类,可以对字符串排序
gslb(global server load balance)技术的一点理解
win10清除快速访问-不留下痕迹
JSON web token -- comparison between JWT and traditional session login authentication
js arguments参数使用和详解
How to realize multi account login of video platform members
High performance parallel programming and optimization | lesson 02 homework at home
Kubernets first meeting
buuctf-pwn write-ups (8)
AWT common components, FileDialog file selection box
SQL injection SQL lab 11~22