MCP4728是一個12-Bit, 4通道 數位轉類比輸出(Quad Digital-to-Analog Converter with EEPROM Memory)

其應用為:

• Set Point or Offset Adjustment

• Sensor Calibration

• Closed-Loop Servo Control

• Low Power Portable Instrumentation

• PC Peripherals

• Programmable Voltage and Current Source

• Industrial Process Control

• Instrumentation

• Bias Voltage Adjustment for Power Amplifiers

大部分的Arduino板,如Uno, Mega2560都沒有DAC output的腳位,

這對想把Arduino當作低價DAQ卡的人,會有點小遺憾,

如果與NI的6008低價DAQ卡相比,Arduino版硬是少了DAC,

目前Arduino Due有提供兩組DAC output,但是有些應用會需要更多的DAC output,MCP4728就是不錯的選擇,

使用I2C來控制MCP4728時需注意的的個地方:

1. 控制DAC輸出需要使用的暫存器:

mcp4728_01.jpg

2. 暫存器中每個Bit的定義:

mcp4728_02.jpg

3. I2C command的定義:

mcp4728_03.jpg

如果有興趣贊助此篇文章,將可以得到:

1. Arduino code

mcp4728_04.jpg

2. LabVIEW code,可以使用LabVIEW for Arduino Interface與MCP4728通訊。

mcp4728_05.jpg

arrow
arrow
    文章標籤
    MCP4728 DAC
    全站熱搜

    fishark 發表在 痞客邦 留言(2) 人氣()