Wish List 0

Gy4725 I2C Dac Breakout Mcp4725 Digital To Analog Conversion Module

Rs. 125.00 Rs. 143.00

-This version of the MCP4725 Breakout fixes some troubles with the board including the IC footprint, the I2C pinout, changes the general board dimensions to higher fit your tasks, and some more minor tweaks.
-This board breaks out each pin you'll want to get entry to and use the MCP4725 inclusive of GND and Signal OUT pins for connecting to an oscilloscope or any other device you need to hook as much as the board.
-Also on board are SCL, SDA, VCC, and any other GND in your fundamental I2C pinout.
-Additionally, in case you are seeking to have more than one MCP4725 on a bus, the pull-up resistors in this board can be disabled simply take a look at the Hookup Guide in the Documents segment underneath for instructions and recommendations on doing this.


Features:
-12-bit resolution
-I2C Interface (Standard, Fast, and High-Speed supported)
-Small package
-2.7V to 5.5V supply

SPEICIFICATION:

12-Bit Resolution

On-Board Non-Volatile Memory (EEPROM)

±0.2 LSB DNL (typ)

External A0 Address Pin

Normal or Power-Down Mode

Fast Settling Time of 6µs (typ)

External Voltage Reference (VDD)

Rail-to-Rail Output

Low Power Consumption

Single-Supply Operation: 2.7V to 5.5V

I2CTM Interface:

Eight Available Addresses

Standard (100 kbps), Fast (400 kbps) and High Speed (3.4 Mbps) Modes

Small 6-lead SOT-23 Package

Extended Temperature Range: -40°C to +125°C

AEC-Q100 Grade 1 qualified


OVERVIEW:

-12-bit resolution

-I2C Interface (Standard, Fast, and High-Speed supported)

-Small package

-2.7V to 5.5V supply

-Internal EEPROM to store settings

PACKAGE INCLUDES:

1 PCS x Gy4725 I2C Dac Breakout Mcp4725 Digital To Analog Conversion Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://circuitdigest.com/microcontroller-projects/arduino-dac-tutorial-interfacing-mcp4725-dac

#include<Wire.h>                   //Include Wire library for using I2C functions 

#include <LiquidCrystal.h>         //Include LCD library for using LCD display functions 


#define MCP4725 0x61              //MCP4725 address as 0x61 Change yours accordingly

LiquidCrystal lcd(2,3,4,5,6,7);   //Define LCD display pins RS,E,D4,D5,D6,D7

 

unsigned int adc;

byte buffer[3];                   


void setup() 

{

  Wire.begin();                    //Begins the I2C communication

  lcd.begin(16,2);                 //Sets LCD in 16X2 Mode

  lcd.print("CIRCUIT DIGEST");   

  delay(1000);

  lcd.clear();

  lcd.setCursor(0,0);

  lcd.print("Arduino");

  lcd.setCursor(0,1);

  lcd.print("DAC with MCP4725");

  delay(2000);

  lcd.clear();

  


}


void loop() 


{

  buffer[0] = 0b01000000;            //Sets the buffer0 with control byte (010-Sets in Write mode)

  adc = analogRead(A0) * 4;          //Read Analog value from pin A0 and convert into digital (0-1023) multiply with 4 gives (0-4096)

  

  float ipvolt = (5.0/4096.0)* adc;  //Finding voltage formula (A0)

  buffer[1] = adc >> 4;              //Puts the most significant bit values

  buffer[2] = adc << 4;              //Puts the Least significant bit values

  

 

  unsigned int analogread = analogRead(A1)*4 ; //Reads analog voltage from A1

  

  float opvolt = (5.0/4096.0)* analogread; //Finding Voltage Formula (A1)

  

  Wire.beginTransmission(MCP4725);         //Joins I2C bus with MCP4725 with 0x61 address

  

  Wire.write(buffer[0]);            //Sends the control byte to I2C 

  Wire.write(buffer[1]);            //Sends the MSB to I2C 

  Wire.write(buffer[2]);            //Sends the LSB to I2C

  

  Wire.endTransmission();           //Ends the transmission


  lcd.setCursor(0,0);     

  lcd.print("A IP:");

  lcd.print(adc);                   //Prints the ADC value from A0

  lcd.setCursor(10,0);

  lcd.print("V:");                  //Prints the Input Voltage at A0

  lcd.print(ipvolt);

  lcd.setCursor(0,1);

  lcd.print("D OP:");

  lcd.print(analogread);             //Prints the ADC value from A1 (From DAC)

  lcd.setCursor(10,1);

  lcd.print("V:");

  lcd.print(opvolt);                 //Prints the Input Voltage at A1 (From DAC)

   

  delay(500);

  lcd.clear();

}

15 days

Write a review

Please login or register to review