当前位置:网站首页>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
边栏推荐
- Uninstall Google drive hard drive - you must exit the program to uninstall
- Reading notes of Clickhouse principle analysis and Application Practice (4)
- Tutle clock improved version
- [openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx
- Invalid bound statement (not found): com. example. mapper. TblUserRecordMapper. login
- ABAP:OOALV实现增删改查功能
- Lightroom import picture gray / Black rectangular multi display
- JSON web token -- comparison between JWT and traditional session login authentication
- 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
- How to choose the middle-aged crisis of the testing post? Stick to it or find another way out? See below
猜你喜欢

Detectron: train your own data set -- convert your own data format to coco format

Kubernets first meeting

27-31. Dependency transitivity, principle

APScheduler如何设置任务不并发(即第一个任务执行完再执行下一个)?

A little understanding of GSLB (global server load balance) technology

Bicolor case

Notes and notes

Tf/pytorch/cafe-cv/nlp/ audio - practical demonstration of full ecosystem CPU deployment - Intel openvino tool suite course summary (Part 2)

AWT introduction

QT QTableWidget 表格列置顶需求的思路和代码
随机推荐
对List进行排序工具类,可以对字符串排序
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
70000 words of detailed explanation of the whole process of pad openvino [CPU] - from environment configuration to model deployment
Take you to quickly learn how to use qsort and simulate qsort
手动对list进行分页(参数list ,当前页,页面大小)
The difference between PX EM rem
js arguments参数使用和详解
Grounding relay dd-1/60
《ClickHouse原理解析与应用实践》读书笔记(4)
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
Distributed cap theory
如何实现视频平台会员多账号登录
Json Web token - jwt vs. Traditional session login Authentication
实用的小工具指令
How to solve the component conflicts caused by scrollbars in GridView
Sleep quality today 78 points
SQL join, left join, right join usage
Bicolor case
buuctf-pwn write-ups (8)