DFR1036_1_Channel_PWM_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.

DFR1036 GP8101S (1-Channel PWM to 0-5V/10V DAC Module)

FUNCTIONS

This is a 1-channel DAC module with PWM communication, a resolution of 8-bit, and 0.1% 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.

PWM signal drive allows the module to be controlled by MCU digital ports, providing a simple and convenient usage.

FEATURES

DIMENSION

FUNCTIONAL DIAGRAM

Name Description Remarks
PWM Interface VCC Positive terminal of the power supply (3.3V-5V)
GND Negative terminal of the power supply
D PWM Input Port
0-5V/0-10V Switching Switch 0-10V Switch output voltage to 0V-10V
0-5V Switch output voltage to 0V-5V
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 Demonstrates the variation of output voltage for the same input signal in two different states.

Input signal value range: 0-255

SOFTWARE REQUIREMENTS

HARDWARE CONNECTION

SAMPLE CODE

#include <DFRobot_GP8XXX.h>

//Output IO Port
int pwmPin = 9;
DFRobot_GP8101S GP8101S(pwmPin);
void setup() {

  GP8101S.begin();

  /**
   * @brief. Set the output DAC value.
   * @param data pwm 
   * @n. Optional parameters (0-255) correspond to voltage ranges of (0-5V) or (0-10V), and the specific voltage range is determined by the fluctuation switch selected based on the module voltage. 
   */
  GP8101S.setDACOutVoltage(176);//Output voltage of 3.45V under the 0-5V state and 6.90V under the 0-10V state.
}

void loop() {

}

RESULT

After downloading the program, the voltmeter was used to measure the actual output voltage of 3.45V under the 0-5V state and 6.90V under the 0-10V state.

More Documents

DFR1036 Documents:

DFR1036-Schematics.pdf

DFR1036_Dimensions.pdf

DFR1036_3D File.rar

DFR1036_2D_CAD File.rar

DFR1036_GP8101S Datasheet.pdf

FAQ

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