SKU_DFR1071_1_Channel_15bit_I2C_to_0-10V_DAC WIKI

INTRODUCTION

DAC series modules are a range of products that can be controlled through I2C or PWM signals to generate voltage or current output signals. They possess the capability to produce a variety of analog voltage or current signals, including 0-5V, 0-10V, 0-2.5V, 0-VCC, and 0-25mA.

An analog quantity refers to the continuous variation of voltage magnitude (or current magnitude) within a specific range. Due to its stability, long transmission distance, and ease of use, it has found widespread application in the field of industrial automation control, including:

This series of DAC products not only offers a variety of output signal ranges, but also provides three selectable resolutions: 8-bit, 12-bit, and 15-bit. It allows for the choice of either single-channel or dual-channel configurations, and multiple modules can be cascaded to form a multi-channel output. When coupled with Arduino controllers, Raspberry Pi, STM32, and similar controllers, it finds application in various automation control scenarios, including:

The following table presents the functional parameters of each DAC product for reference in the selection process.

DFR1071-GP8211S (1-Channel 15-bit I2C to 0-5V/10V DAC Module)

FUNCTIONS

This is a 1-channel DAC module with I2C communication, a resolution of 15-bit, and 0.01% output voltage linearity error, capable of generating analog voltage outputs of 0-10V or 0-5V. The 0-10V or 0-5V voltage output is a standard driving method. It can be widely used in automation control scenarios such as lighting adjustment, frequency converters, valve regulation, and pump control,etc. This product can drive a variety of 0-10V or 0-5V controlled devices available in the market through Arduino programming.

The high precision and resolution of this module make it suitable for control scenarios that require higher signal accuracy, such as fine speed control or angle control.

FEATURES

DIMENSION

FUNCTIONAL DIAGRAM

Name Description Remarks
I2C Interface + Positive terminal of the power supply (3.3V-5V)
- Negative terminal of the power supply
C SCL
D SDA
Voltage Signal Output Port VOUT Positive terminal of output voltage signal
GND Negative terminal of the output voltage signal

SPECIFICATIONS

TUTORIAL

In this example, we will demonstrate the correlation between the input signal values and the corresponding voltage output in the channels.

Input signal value range: 0-32767

Input value of 21457, resulting in an output voltage of 6.548V

SOFTWARE REQUIREMENTS

HARDWARE CONNECTION

SAMPLE CODE

#include <DFRobot_GP8XXX.h>

DFRobot_GP8211S GP8211S;

void setup() {

  Serial.begin(9600);

  while(GP8211S.begin()!=0){
    Serial.println("Communication with the device has encountered a failure. Please verify the integrity of the connection or ensure that the device address is properly configured.");
    delay(1000);
  }
GP8211S.setDACOutRange(GP8211S.eOutputRange10V);
  /**
   * @brief. Configuring different channel outputs for DAC values
   * @param data. Data values corresponding to voltage values
   * @n (0 - 32767).This module is a 15-bit precision DAC module, hence the values ranging from 0 to 32767 correspond to voltages of 0-10V respectively.
   */
  GP8211S.setDACOutVoltage(21456);//Output 6.548V

  delay(1000);

  //The set voltage is saved internally in the chip for power-off retention.
  //GP8211S.store();
}

void loop() {

}

RESULT

After downloading the program, the actual output voltage of channel was measured as 6.548V using a voltmeter.

More Documents

DFR1071 Documents:

DFR1071-Schematics.pdf

DFR1071_Dimensions.pdf

DFR1071_3D File.rar

DFR1071_2D_CAD File.rar

DFR1071_GP8211 Datasheet.pdf

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum.