当前位置:网站首页>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
边栏推荐
- Experience weekly report no. 102 (July 4, 2022)
- AWT常用组件、FileDialog文件选择框
- 我的NVIDIA开发者之旅——优化显卡性能
- QT get random color value and set label background color code
- Understanding of cross domain and how to solve cross domain problems
- A little understanding of GSLB (global server load balance) technology
- Error CVC complex type 2.4. a: Invalid content beginning with element 'base extension' was found. Should start with one of '{layoutlib}'.
- Appium基础 — APPium安装(二)
- QT releases multilingual International Translation
- gslb(global server load balance)技术的一点理解
猜你喜欢
Sleep quality today 78 points
云原生——上云必读之SSH篇(常用于远程登录云服务器)
C realize Snake games
[microservice] Nacos cluster building and loading file configuration
Appium基础 — APPium安装(二)
How to get the parent node of all nodes in El tree
How to avoid JVM memory leakage?
AWT介绍
Detectron:训练自己的数据集——将自己的数据格式转换成COCO格式
Detailed explanation of common APIs for component and container containers: frame, panel, scrollpane
随机推荐
How to solve the component conflicts caused by scrollbars in GridView
740. Delete and get points
Tf/pytorch/cafe-cv/nlp/ audio - practical demonstration of full ecosystem CPU deployment - Intel openvino tool suite course summary (Part 2)
C language - Blue Bridge Cup - Snake filling
Notes and notes
JSON Web Token----JWT和传统session登录认证对比
微信小程序使用rich-text中图片宽度超出问题
left_ and_ right_ Net interpretable design
Yiwen unlocks Huawei's new cloud skills - the whole process of aiot development [device access - ESP end-to-side data collection [mqtt]- real time data analysis] (step-by-step screenshot is more detai
JS how to convert seconds into hours, minutes and seconds display
Compound nonlinear feedback control (2)
【微服务】Nacos集群搭建以及加载文件配置
Arcpy 利用updatelayer函数改变图层的符号系统
Learning multi-level structural information for small organ segmentation
Vant --- detailed explanation and use of list component in vant
MySQL installation and configuration
雲原生——上雲必讀之SSH篇(常用於遠程登錄雲服務器)
gslb(global server load balance)技术的一点理解
Abap:ooalv realizes the function of adding, deleting, modifying and checking
Impact relay jc-7/11/dc110v