obniz Parts Library

MCP4725

GitHub
MCP4725
Usable Devices :
obniz_board
Found at :
秋月電子通商

MCP4725

The DA Converter. It makes the potential difference between + and -.

http://ww1.microchip.com/downloads/en/DeviceDoc/22039d.pdf

wired(obniz, {[scl, sda, vcc, gnd, i2c]})

connect to the obniz Board.

name type required default description
vcc number(obniz Board io) no   Power Supply
gnd number(obniz Board io) no   Power Supply
scl number(obniz Board io) no   scl of I2C
sda number(obniz Board io) no   sda of I2C
i2c object no   obniz i2c object
// JavaScript Examples
var dac = obniz.wired("MCP4725", {sda:0, scl:26});
dac.setVoltage(1.5);

setVCCVoltage(number)

Store applied VCC voltate. Default is 5v. It must be equal to vcc voltage of connected chip.

// JavaScript Examples
var dac = obniz.wired("MCP4725", {sda:0, scl:26});
dac.setVCCVoltage(3.3);
dac.setVoltage(1.5);

setVoltage(voltage)

make the potential difference.
specify a value between 0 and 3.3(V).

Use setVCCVoltage() before if vcc is different from 5.0v.

// JavaScript Examples
var dac = obniz.wired("MCP4725", {sda:0, scl:26});
dac.setVoltage(1.5);

Supported from: obniz.js 3.5.0

You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers

Forum

Visit our developer’s forum to discuss and discover technologies.

Forum

Contact

Feel free to contact out support and technical team.

Contact us