Go Down

Topic: Help with AD5669 I2C DAC module (Read 134 times) previous topic - next topic

ejfernandes

Hi everyone,

Did someone ever worked with a similar module? If so can you post here the code ? I'm having problems understanding how to work with more than one ports simultaneously and i would like to understand how it operates.

If someone could help me i would really appreciate it.

Best regards



GolamMostafa

Give a link to its pdf version of data sheets.

ejfernandes

https://media.ncd.io/sites/2/20170721134850/AD5629R_5669R.pdf

Any help would be appreciated.
 

GolamMostafa

#3
Aug 20, 2019, 03:17 pm Last Edit: Aug 20, 2019, 03:38 pm by GolamMostafa
1.  This is an untested proposed connection diagram between the AD5669-R3 and Arduino UNO using I2C Bus.


2.  Connect a DVM between VOUTA-pin and GND.

3.  Upload the following sketch into UNO. Check that the DVM reads about 1.70V.

Code: [Select]
#include<Wire.h>     //this file is needed for the I2C Bus operation

void setup()
{
   Serial.begin(9600);        //enable serial interface with PC
   Wire.begin();                 //create I2C Bus

   //----check that the device is present at address ob1010111
   Wire.beginTransmission(0b1010111);
   byte busStatus = Wire.endTransmission();
   if(bustatus != 0)
   {
      Serial.print("Device is not found...!");
      while(1);     //wait for ever
   }
 
   //---set internal reference voltage for DAC-A
   Wire.beginTransmission(0b1010111);
   Wire.write(0b10000000);
   Wire.write(0b00000000);
   Wire.endTransmission();

   //--- write 0x570A into the device to get 1.70V at VOUTA pin
   Wire.beginTransmission(0b1010111);
   Wire.write(0b00000000);
   Wire.write(0b00000000);
   Wire.write(0x57);
   Wire.write(0x0A);
   Wire.endTransmission();
  
   //--update DAC A Register-------
   Wire.beginTransmission(0b1010111);
   Wire.write(0b00000001);
   Wire.write(0b00000000);
   Wire.endTransmission();
}

void loop()
{

}


Please, report the result.

Go Up