可编程4通道18位ADC模块

概述

模块集成了高品质的的MCP3424实现模拟量到数字量(AD)转换,可以为树莓派提供获取模拟量的功能 ,也可以满足Ardruino等高精度AD转换的需求。

MCP3424是一款低噪音、高精度的18位A/D转换芯片,其特点是:

适用范围

技术规格

注:差分输入范围和PGA相关,以PGA=4为例,则其输入范围为 -0.512(-2.048/4)V ~ 0.512(2.048/4)V

接口说明

引脚名称 引脚功能
GND 电源地
5V 5V电源输入
SCL I2C时钟线
SDA I2C数据线
C1+ 模拟量输入通道1正极
C1- 模拟量输入通道1负极
C2+ 模拟量输入通道2正极
C2- 模拟量输入通道2负极
C3+ 模拟量输入通道3正极
C3- 模拟量输入通道3负极
C4+ 模拟量输入通道4正极
C4- 模拟量输入通道4负极

注意事项

使用教程

Arduino电压测量

a) 目标:Arduino电压测量 使用Arduino环境,测试稳压电源的电压值,然后通过串口调试助手显示出来。

b) 硬件清单

c) 软件清单

d) 连线图

e) 操作步骤

  1. 将稳压电源调节到最小,然后打开电压,将电压调整到(0-2.085V)
  2. 安装Arduino MCP3424库,参见安装Arduino库
  3. 打开Arduino IDE
  4. 将下面的代码上传到UNO
 /* MCP 3424 version 1.2 example sketch OneShotConversion
 Written by B@tto
 Contact : batto@hotmail.fr

 In this example, one conversion per second is performed on channel 1 and 16 bits resolution.
 A new conversion has to be initiated by the user
 */


 #include <Wire.h>
 #include <MCP3424.h>

 MCP3424 MCP(0x68);   // Declaration of MCP3424 with Address of I2C

 long Voltage;

 void setup(){

   Serial.begin(9600);
   MCP.Configuration(1,16,0,1); // Channel 1, 16 bits resolution, one-shot mode, amplifier gain = 1

 }

 void loop(){

   MCP.NewConversion();    // New conversion is initiated

   Voltage=MCP.Measure();  // Measure, note that the library waits for a complete conversion

   Serial.print("Voltage = ");
   Serial.print(Voltage);
   Serial.println("uV");  // unit: microVolt

   delay (1000);

 }

f) 实现效果

树莓派电压测量

a) 目标:树莓派读取电压

b) 硬件清单

c) 软件清单

d) 连线图:请参考前一示例,将转换通道与树莓派GPIO中的I2C和电源引脚相连接。

e) 操作步骤:请参考该驱动的说明。

产品购买链接

购买