当前位置:网站首页>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
边栏推荐
- 体验碎周报第 102 期(2022.7.4)
- How to help others effectively
- Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
- AWT介绍
- Learning multi-level structural information for small organ segmentation
- 2022.7.2-----leetcode.871
- A little understanding of GSLB (global server load balance) technology
- 27-31. Dependency transitivity, principle
- 实用的小工具指令
- How to implement lazy loading in El select (with search function)
猜你喜欢
Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
Json Web token - jwt vs. Traditional session login Authentication
js arguments参数使用和详解
Component、Container容器常用API详解:Frame、Panel、ScrollPane
剑指 Offer II 038. 每日温度
Experience weekly report no. 102 (July 4, 2022)
JS arguments parameter usage and explanation
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
Webrtc quickly set up video call and video conference
树形dp
随机推荐
[untitled]
Qt发布多语言国际化翻译
[openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx
冲击继电器JC-7/11/DC110V
JSON Web Token----JWT和传统session登录认证对比
Practical gadget instructions
Experience weekly report no. 102 (July 4, 2022)
注释与注解
LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout
每周小结(*63):关于正能量
ABAP:OOALV实现增删改查功能
Leakage detection relay jy82-2p
Cloud native - SSH article that must be read on the cloud (commonly used for remote login to ECS)
复合非线性反馈控制(二)
lightroom 导入图片灰色/黑色矩形 多显示器
How does apscheduler set tasks not to be concurrent (that is, execute the next task after the first one)?
198. House raiding
27-31. Dependency transitivity, principle
Nexus 6p downgraded from 8.0 to 6.0+root
2022.7.2-----leetcode.871