| Electronic Components Datasheet Search |
|
DFR0972 Datasheet(PDF) 16 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0972 Datasheet(HTML) 16 Page - DFROBOT |
|
16 / 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 16/19 #include "DFRobot_GP8302.h" DFRobot_GP8302 module; void setup(){ Serial.begin(115200); while(!Serial){ //Wait for USB serial port to connect. Needed for native USB port only } 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!"); module.calibration4_20mA(/*dac_4 =*/652, /*dac_20 =*/3265); uint16_t dac = module.output(/*current_mA =*/4); } 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 |