DFR0971_2_Channel_I2C_0_10V_DAC_Modul
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi,
I am using DAC module SKU_DFR0971_2_Channel_I2C_0_10V_DAC_Module and configure for 5volt and 10 volt both with below details.
dac.setDACOutRange(dac.eOutputRange10V);//Set the output range as 0-10 V
dac.setDACOutVoltage(4095,2);
But I am not getting 10 volt in both the channel. Max voltage is showing 4.5 volt.
Thanks,
Ravi Kumar
There is no need to calculate the output voltage value because the formula for converting I2C output to voltage has already been encapsulated in the library. 0-5V corresponds to 0-5000, 0-10V for 0-10000. For example, to make it output 3.5V within the range of 10V, revise the data in the function setDACOutVoltage(data, channel); to 3500. The product wiki has been modified, please go to the wikipage for details.
![userHeadPic](https://dfimg.dfrobot.com/62fba4cb025a892c98c6da64/makelog/ee56c850c3ab064883d06db441ab3a40_50x50.png)