LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write i2c with DAC(MCP4725)

This is our code in arduino  we read the value from potentiometer resistor in voltage(A1) and we need to send this voltage to another circuit  by using DAC (MCP4725).  we connect DAC by i2c but we have a problem.


How to use i2c block diagram in Labview?  we need to send the data to DAC in 4 Byte,  First, Address of DAC (01100000) second, Command (01000000) third, Data last, Data  that you can see in our code.  I don't understand how to write it in labview

Download All
0 Kudos
Message 1 of 4
(5,751 Views)

For help in writing Labview code for the MCP4725 See:

<htps://decibel.ni.com/content/message/87442#87442>

hrh212

0 Kudos
Message 2 of 4
(4,722 Views)

Here is a working version of the link that hrh212 posted.

Also, I highly recommend that you not use LIFA to work with Arduino.  You should use LINX which has replaced LIFA and is actually faster.  The only thing that I don't think it supports [yet] is stepper motors.

0 Kudos
Message 3 of 4
(4,723 Views)

hello 

please did you solved this problem i need your help, i have the same work

i use DAC MCP4725 with arduino uno

can you give me file .vi

0 Kudos
Message 4 of 4
(2,982 Views)