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

X  

DFR0552 Datasheet(PDF) 5 Page - DFROBOT

Part # DFR0552
Description  Gravity: 12-Bit I2C DAC Module SKU: DFR0552
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0552 Datasheet(HTML) 5 Page - DFROBOT

  DFR0552 Datasheet HTML 1Page - DFROBOT DFR0552 Datasheet HTML 2Page - DFROBOT DFR0552 Datasheet HTML 3Page - DFROBOT DFR0552 Datasheet HTML 4Page - DFROBOT DFR0552 Datasheet HTML 5Page - DFROBOT DFR0552 Datasheet HTML 6Page - DFROBOT DFR0552 Datasheet HTML 7Page - DFROBOT DFR0552 Datasheet HTML 8Page - DFROBOT DFR0552 Datasheet HTML 9Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 5 / 23 page
background image
uint16_t OUTPUT_VOLTAGE = 5000;
// Input DAC output voltage (0~REF_VOL
TAGE,unit: mV)
void setup(void) {
Serial.begin(115200);
/* MCP4725A0_address is 0x60 or 0x61
* MCP4725A0_IIC_Address0 -->0x60
* MCP4725A0_IIC_Address1 -->0x61
*/
DAC.init(MCP4725A0_IIC_Address0, REF_VOLTAGE);
}
void loop(void) {
Serial.print("DFRobot_MCP4725 output: ");
Serial.print(OUTPUT_VOLTAGE);
Serial.println(" mV");
DAC.outputVoltage(OUTPUT_VOLTAGE);
delay(500);
}
Store the DAC Value in EEPROM
Set the I2C address to 0x60 with the ADDR switch. For I2C address 0x61, you need to modify the
first parameter of the function DAC.init () in the code below.
Open Arduino IDE, upload the following sample code to the Arduino UNO, and use a digital
multimeter to measure the output voltage of VOUT.
The user can change the value of OUTPUT_VOLTAGE to change the analog voltage output.
REF_VOLTAGE can be set to the value used in the Calibration section. If not calibrated, simply set it
to 5000 (for 5V controllers such as Arduino) or 3300 (for 3.3V controller such as Raspberry Pi,
FireBeetle etc.) .



Html Pages

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


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