| Electronic Components Datasheet Search |
|
DFR0971 Datasheet(PDF) 11 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0971 Datasheet(HTML) 11 Page - DFROBOT |
|
11 / 18 page ![]() 2023/10/12 15:10 2-Channel 0-10V I2C Digital to Analog DAC Module Arduino Wiki - DFRobot https://wiki.dfrobot.com/SKU_DFR0971_2_Channel_I2C_0_10V_DAC_Module 11/18 10000. channel : channel select, 0: channel 0; 1: channel 1; 2: all the channels. Sample: dac.setDACOutVoltage(3500,0) // output 3.5V via channel 0. #include "DFRobot_GP8403.h" DFRobot_GP8403 dac(&Wire,0x58); void setup() { Serial.begin(115200); while(dac.begin()!=0){ Serial.println("init error"); delay(1000); } Serial.println("init succeed"); dac.setDACOutRange(dac.eOutputRange10V);//Set the output range as 0-10V dac.setDACOutVoltage(1433,0);//The DAC value for 3.5V output in OUT0 channel delay(1000); dac.store(); //Save the set 3.5V voltage inside the chip } void loop(){ } Result After downloading the code, the strip was lit, and at this time, the output voltage of channel 0 measured by a multimeter is 3.5V. Output Sine Wave This sample will show how to output a sine wave with a frequency of 10Hz and an amplitude of 5.12V. It should be noted that the waveform is generated by code simulation, which has a relatively large error, so it's just for learning. Connect the oscilloscope to the output and the generated sine waveform can be seen |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |