| Electronic Components Datasheet Search |
|
DFR0972 Datasheet(PDF) 12 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0972 Datasheet(HTML) 12 Page - DFROBOT |
|
12 / 19 page ![]() 2023/10/12 15:11 I2C 4-20mA DAC Module Arduino Wiki - DFRobot https://wiki.dfrobot.com/SKU_DFR0972_I2C_4_20mA_DAC_Module 12/19 #include "DFRobot_GP8302.h" DFRobot_GP8302 module; void setup(){ Serial.begin(115200); while(!Serial){ } Serial.print("I2C to 0-25 mA analog current moudle initialization ... "); uint8_t status = module.begin(); // use the pin used by the I2C Wire object of the MCU hardware by default if(status != 0){ Serial.print("failed. Error code: "); Serial.println(status); Serial.println("Error Code: "); Serial.println("\t1: _scl or _sda pin is invaild."); Serial.println("\t2: Device not found, please check if the device is connected."); while(1) yield(); } Serial.println("done!"); uint16_t dac = module.output(10); //control the converter module to output a current of 10mA and return the corresponding Serial.print("DAC value: 0x"); Serial.println(dac, HEX); module.store(); Serial.println("Save current configuration."); //the above current config will be saved and will not be l } void loop(){ |
|
|
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 |