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:
Motor speed control
Sound intensity control
Temperature regulation
Adjustment of light brightness
Valve angle modulation
etc.
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:
Laboratory testing equipment
Automatic motor speed control
Indoor and outdoor lighting control
Automated volume adjustment
Backlight control for displays
etc.
The following table presents the functional parameters of each DAC product for reference in the selection process.
DFR1035 GP8512 (1-Channel 15bit I2C to 0-2.5V/VCC DAC Module)
FUNCTIONS
This is a 1-channel analog voltage output DAC module with I2C communication, 15-bit resolution, and 0.01% output voltage linearity error. It is well-suited for control projects operating within the 3.3V range, such as ESP32, Raspberry Pi, STM32, and other microcontrollers that require analog signal output.
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
- Support 3.3V-5V power supply.
- Output voltage linearity error of 0.01%.
- Two channels of voltage output, either 0-2.5V or 0-VCC, enabling connection and control of standard analog voltage devices.
- Gravity interface, I2C communication, Arduino control, suitable for program automation control.
- The high precision and resolution of this module make it suitable for control scenarios that require higher signal accuracy.
DIMENSION
FUNCTIONAL DIAGRAM
Name | Description | Remarks |
---|---|---|
12C Interface | + | Positive terminal of the power supply (3.3V-5V) |
- | Negative terminal of the power supply | |
C | SCL | |
D | SDA | |
0-2.5V/0-VCC Switching Switch | 0-VCC | Switch output voltage to 0V-VCC(Supply voltage) |
0-2.5V | Switch output voltage to 0V-2.5V | |
Voltage Signal Output Port | VOUT | Positive terminal of output voltage signal |
GND | Negative terminal of the output voltage signal |
SPECIFICATIONS
- Chip Type: GP8512
- Operating Voltage: 3.3V-5V
- Output Voltage: 0-2.5V or 0-VCC
- Number of Channels: 1 channel
- Communication Method: I2C
- Resolution: 15-bit
- Value Range: 0 - 32767 corresponding to 0-2.5V or 0-VCC
- Output voltage linearity error: 0.01%
TUTORIAL
In this example,We will demonstrate the generation of distinct voltage values under two different conditions.
Input signal value range: 0 - 32767
- In the state of 0-2.5V: input 24903, resulting in an output of 1.9V.
- In the state of 0-VCC: input 24903, resulting in an output of 3.8V.
SOFTWARE REQUIREMENTS
Download Arduino IDE: Click to download Arduino IDE
Download Arduino libraries: Click to download https://github.com/DFRobot/DFRobot_GP8XXX
Click the link to view:How to install the library?;
Note: All modules in this series utilize the same library.
HARDWARE CONNECTION
SAMPLE CODE
#include <DFRobot_GP8XXX.h>
DFRobot_GP8512 GP8512;
void setup() {
Serial.begin(9600);
while(GP8512.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);
}
/**
* @brief. Set the output DAC value.
* @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-2.5V or 0-VCC respectively. The specific voltage range depends on the selection of the module's voltage fluctuation switch.
*/
GP8512.setDACOutVoltage(24903);//Output voltage of 1.9V under the 0-2.5V state and 3.8V under the 0-VCC state.
delay(1000);
//The set voltage is saved internally in the chip for power-off retention.
//GP8512.store();
}
void loop() {
}
RESULT
After downloading the program, the voltmeter was used to measure the actual output voltage of 1.9V under the 0-2.5V state and 3.8V under the 0-VCC state.
More Documents
DFR1035 Documents:
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.