INA219 26V 12 位 I2C 输出数字功率监测器

INA219是一款具备高精度的电流和功率监测组件,适用于服务器、电信设备等场景,支持I2C或SMBUS接口,可用于电压、电流和功率测量,具有多种封装形式和精度等级。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1 特性

1• 感测的总线电压范围:0V 至 26V

• 报告电流、电压、和功率

• 16 个可编程地址

• 高精度:整个温度范围内的精度为 0.5%(最大 值)(INA219B)

• 滤波选项

• 校准寄存器

• 小外形尺寸晶体管 (SOT) 23-8 和小外形尺寸集成 电路 (SOIC)-8 封装

2 应用范围

• 服务器

• 电信设备

• 笔记本电脑

• 电源管理

• 电池充电器

• 焊接设备

• 电源

• 测试设备

3 说明

INA219 是一款具备 I 2C 或 SMBUS 兼容接口的分流器 和功率监测计。该器件监测分流器电压降和总线电源电 压,转换次数和滤波选项可通过编程设定。可编程校准 值与内部乘法器相结合,支持直接读取电流值(单位: 安培)。通过附加乘法寄存器可计算功率(单位: 瓦)。I 2C 或 SMBUS 兼容接口 具有 16 个可编程地 址。 INA219 提供两种级别:A 级和 B 级。B 级型号的精度 更高且精密规范更加严格。 INA219 可在 0V 至 26V 范围内感测总线中的分压。该 器件由 3V 至 5.5V 单电源供电,电源的最大流耗为 1mA。INA219 的工作温度范围为 -40°C 至 125°C。

INA219

 电流原理图

DIY USB 电流表(7):读取和显示 INA219 电流电压数据 (qq.com)icon-default.png?t=N7T8https://mp.weixin.qq.com/s/xnFDTZgj-HVB6UcVnpojSgINA219 datasheet详解 INA219使用方法-优快云博客icon-default.png?t=N7T8https://blog.youkuaiyun.com/weixin_44065323/article/details/109318896INA219 数据表、产品信息和支持 | 德州仪器 TI.com.cnicon-default.png?t=N7T8https://www.ti.com.cn/product/cn/INA219?utm_source=baidu&utm_medium=cpc&utm_campaign=asc-null-null-GPN_CN-cpc-pf-baidu-cn_cons&utm_content=Device&ds_k=INA219&DCM=yes&bd_vid=11371918587817136535&gclid=CPzo_JPa6IUDFa1QwgUdqaoKjw&gclsrc=ds在 Arduino 中使用 INA219 测量电路中电压、电流和功率 | Architecting Life (xujiwei.com)icon-default.png?t=N7T8https://xujiwei.com/blog/2023/08/using-ina219-with-arduino-to-measure-power/

 替代型号

INA232

具有警报功能的 48V、16 位、高精度 I²C 输出数字功率监测器

特此记录

anlog

2024年4月30日

51单片机IINA219电流电压和功率。 #include "LCD1602\LCD1602.h" #include "INA219_DRV\INA219_DRV.h" #include "common\common.h" #define TH0_VALUE 0x4B #define TL0_VALUE 0xFF //50ms per cycle. sbit BtnRefreshMode = P3^2; bit RefreshRate = 0; //0: 0.8s, 1: 0.5s bit RefreshFlag = 0; void RefreshData(void) { unsigned short BusVolt, Current, Power; unsigned short OffsetCurrent, OffsetPower; BusVolt = INA219_GetBusVolt(); PrintChar(0, 0, BusVolt/10000+48); PrintChar(1, 0, (BusVolt000)/1000+48); PrintChar(3, 0, (BusVolt00)/100+48); PrintChar(4, 0, (BusVolt0)/10+48); PrintChar(5, 0, BusVolt+48); OffsetCurrent = (BusVolt >> 9) + 2; //Gather statistics of the measured current under various voltage conditions when no load is connected to the output port. Use Excel to do curve fitting. Current = INA219_GetCurrent(); if(Current > OffsetCurrent) Current -= OffsetCurrent; else Current = 0; PrintChar(10, 0, Current/1000+48); PrintChar(12, 0, (Current00)/100+48); PrintChar(13, 0, (Current0)/10+48); PrintChar(14, 0, Current+48); OffsetPower = ((BusVolt >> 3) * OffsetCurrent)/125 + 6; Power = INA219_GetPower(); if(Power > OffsetPower) Power -= OffsetPower; else Power = 0; PrintChar(0, 1, Power/10000+48); PrintChar(1, 1, (Power000)/1000+48); PrintChar(3, 1, (Power00)/100+48); PrintChar(4, 1, (Power0)/10+48); PrintChar(5, 1, Power+48); } int main(void) { INA219_Init(); LCD_Init(); TMOD &= 0xF0; TMOD |= 0x01; //Timer 0 works in Mode 1 (16-bit Timer). TH0 = TH0_VALUE; TL0 = TL0_VALUE; PrintChar(2, 0, '.'); PrintChar(6, 0, 'V'); PrintChar(11, 0, '.'); PrintChar(15, 0, 'A'); PrintChar(2, 1, '.'); PrintChar(6, 1, 'W'); PrintStr(10, 1, "R:0.8s"); RefreshData(); EA = 1; //Global Interrupt Enable ET0 = 1; //Timer 0 Interrupt Enable TR0 = 1; //Enable Timer 0. while(1) { if(RefreshFlag) { RefreshData(); RefreshFlag = 0; } if(BtnRefreshMode == 0) //If the
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值