Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

DFR0972 Datasheet(PDF) 12 Page - DFROBOT

Part # DFR0972
Description  I2C 4-20mA DAC Module Arduino Wiki
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0972 Datasheet(HTML) 12 Page - DFROBOT

Back Button DFR0972 Datasheet HTML 8Page - DFROBOT DFR0972 Datasheet HTML 9Page - DFROBOT DFR0972 Datasheet HTML 10Page - DFROBOT DFR0972 Datasheet HTML 11Page - DFROBOT DFR0972 Datasheet HTML 12Page - DFROBOT DFR0972 Datasheet HTML 13Page - DFROBOT DFR0972 Datasheet HTML 14Page - DFROBOT DFR0972 Datasheet HTML 15Page - DFROBOT DFR0972 Datasheet HTML 16Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 19 page
background image
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(){



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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