[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720588-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-720588-en":130,"doc-similar-720588":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","mcp4725-12-bit-dac-tutorial-720588","MCP4725 12-Bit DAC Tutorial","","Tutorial explaining how to use the MCP4725 12-bit DAC breakout board with a microcontroller over I2C. Covers wiring of power, ground, SDA/SCL, and the ADDR and VOUT pins, including address selection for multiple DAC boards and voltage output scaling across 3.3V or 5V rails. Provides guidance for using the Adafruit MCP4725 Arduino library, including setup, begin() and setVoltage() usage, EEPROM storage behavior, and options to increase I2C update speed. Includes pointers to Python and CircuitPython usage.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/mcp4725-12-bit-dac-tutorial-720588/720588/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/mcp4725-12-bit-dac-tutorial-720588/720588.png","ImageObject",300,407,{"name":42,"@type":43},"lugxt","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the MCP4725 DAC used for in this tutorial?","Question",{"text":63,"@type":64},"It teaches controlling the MCP4725 12-bit digital-to-analog converter via I2C by sending a value to be output on the VOUT pin, useful for analog or audio projects without PWM.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do you set the I2C address and connect multiple MCP4725 boards?",{"text":68,"@type":64},"By default the address is 0x62; connecting A0 to VDD changes it to 0x63. You can connect two boards on the same SDA/SCL bus by giving one board the alternate address using A0.",{"name":70,"@type":61,"acceptedAnswer":71},"How does storeflag in setVoltage(value, storeflag) affect the output?",{"text":72,"@type":64},"storeflag determines whether the chosen output voltage is written to EEPROM so the device restores that value after power cycling. Writing should be used only when required to avoid EEPROM wear.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},720588,1795038320,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},3985747862600,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","MCP4725 12-Bit DAC Tutorial  \nCreated by lady ada  \n[https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial](https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial)  \nLast updated on 2021-11-15 05:51:37 PM EST  \n©Adafruit Industries Page 1 of 14  \nTable of Contents  \nOverview 3  \nWiring 3  \nArduino Code 6  \n• Increasing the speed 7  \n• Using the library 7  \nPython & CircuitPython 8  \n• CircuitPython Microcontroller Wiring 8  \n• Python Computer Wiring 8  \n• CircuitPython Installation of MCP4725 Library 9  \n• Python Installation of MCP4725 Library 10  \n• CircuitPython & Python Usage 10  \n• Full Example Code 12  \nPython Docs 12  \nDownload 13  \n• Files 13  \n• Schematic & Fabrication Print 13  \n©Adafruit Industries Page 2 of 14  \nOverview  \nYour microcontroller probably has an ADC (analog-> digital converter) but does it have a DAC (digital -> analog converter)??? Now it can! This breakout board features the easy-to-use MCP4725 12-bit DAC. Control it via I2C and send it the value you want it to output, and the VOUT pin will have it. Great for audio / analog projects, such as when you can't use PWM but need a sine wave or adjustable bias point.  \nWe break out the ADDR pin so you can connect two of these DACs on one I2C bus, just tie the ADDR pin of one high to keep it from conflicting. Also included is a 6-pin header, for use in a breadboard. Works with both 3.3V or 5V logic.  \nSome nice extras with this chip: for chips that have 3. 4Mbps Fast Mode I2C (Arduino's don't) you can update the Vout at ~200 KHz. There's an EEPROM so if you write the output voltage, you can 'store it' so if the device is power cycled it will restore that voltage. The output voltage is rail-to-rail and proportional to the power pin so if you run it from 3.3V, the output range is 0-3.3V. If you run it from 5V the output range is 0-5V.  \nAvailable from the Adafruit shop! ([http://adafru.it/935](http://adafru.it/935))  \nWiring  \nWiring up the MCP4725 breakout PCB is super easy. To start, we'll attach the breakout headers so we can plug it into a breadboard.  \n©Adafruit Industries Page 3 of 14  \nBreak off a strip of 6-pins of 0.1\" male header and stick the LONG pins down into abreadboard  \nBreak off a strip of 6-pins of 0.1\" male header and stick the LONG pins down into a breadboard  \nPlace the breakout board on top so the short ends of the header stick up through the pads  \n©Adafruit Industries Page 4 of 14  \nSolder each pin using a soldering iron and solder, to make solid connection on each pin.  \nThis part is not optional! You cannot'press fit' the header on, it must be attached permanently  \nNow that the header is attached, we can wire it up. We'll demonstrate using an Arduino.  \nFIrst, connect VDD (power) to a 3-5V power supply, and GND to ground.  \nThe DAC uses I2C, a two-pin interface that can have up to 127 unique sensors attached (each must have a different ADDRESS) .  \n• SDA to I2C Data (on the Uno, this is A4 on the Mega it is 20 and on the Leonardo digital 2)  \n• SCL to I2C Clock(on the Uno, this is A5 on the Mega it is 21 and on the Leonardo digital 3)  \nThere's two other pins remaining.  \n• A0 allow you to change the I2C address. By default (nothing attached to A0) the address is hex 0x62 . If A0 is connected to VDD the address is 0x63 . This lets you have two DAC boards connected to the same SDA/SCL I2C bus pins.  \n©Adafruit Industries Page 5 of 14  \n• VOUT is the voltage out from the DAC! The voltage will range from 0V (when the DAC value is 0) to VDD (when the DAC 'value' is the max 12-bit number: 0xFFF)  \nArduino Code  \nNext up, download the Adafruit MCP4725 library. This library does all of the interfacing, so you can just \"set and forget\" the DAC output. It also has some examples to get you started  \nThe library is available on GitHub ([https://adafru.it/aPz](https://adafru.it/aPz)). You can download it by clicking the button below.  \nDownload Adafruit MCP4725 Library  \n[https://adafru.it/cDA](https://adafru.it/cDA)  \nRename the uncompressed","cbCaie6eDiNEYgL3","https://ap.wps.com/l/cbCaie6eDiNEYgL3","pdf",1411930,14,"English","# Overview\n# Wiring\n# Arduino Code\n## Increasing the speed\n## Using the library\n# Python & CircuitPython\n## CircuitPython Microcontroller Wiring\n## Python Computer Wiring\n## CircuitPython Installation of MCP4725 Library\n## Python Installation of MCP4725 Library\n## CircuitPython & Python Usage\n## Full Example Code\n# Download\n## Files\n## Schematic & Fabrication Print","[{\"question\":\"What is the MCP4725 DAC used for in this tutorial?\",\"answer\":\"It teaches controlling the MCP4725 12-bit digital-to-analog converter via I2C by sending a value to be output on the VOUT pin, useful for analog or audio projects without PWM.\"},{\"question\":\"How do you set the I2C address and connect multiple MCP4725 boards?\",\"answer\":\"By default the address is 0x62; connecting A0 to VDD changes it to 0x63. You can connect two boards on the same SDA/SCL bus by giving one board the alternate address using A0.\"},{\"question\":\"How does storeflag in setVoltage(value, storeflag) affect the output?\",\"answer\":\"storeflag determines whether the chosen output voltage is written to EEPROM so the device restores that value after power cycling. Writing should be used only when required to avoid EEPROM wear.\"}]","MCP4725 12-Bit DAC Tutorial | PDF",35,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4722bc23ab8727e7481e8d136e1fa6f4.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/798419de8588798f84eedf437743b239.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f458c93ef6c0b30932eda2950e1b7d8d.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0450b3355cae77cb221c9dc4c4371415.webp",980,1385,{"list":163,"token":11},[164,169,174,180,186,192,198,204,210,217],{"doc_id":165,"doc_title":10,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":55,"category_name":29,"create_tm":168},720587,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024400676/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=RPIGMYnSbSwo5T6pwfQSa8wlDew%3D","mcp4725-12-bit-dac-tutorial-720587",1795038313,{"doc_id":170,"doc_title":10,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":102,"category_name":29,"create_tm":173},720580,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675645/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=sHzI49C%2BPFLLsjJW9IR88VPwwBc%3D","mcp4725-12-bit-dac-tutorial",1795038301,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":97,"category_name":29,"create_tm":179},690039,"Adafruit MCP23017 I2C GPIO Expander Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001921785/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=VYgYq60NoBr9m%2BRuoH6KKp5vUZs%3D","adafruit-mcp23017-i2c-gpio-expander-breakout",1794145753,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":55,"category_name":29,"create_tm":185},720615,"Adafruit 4-Channel ADC Breakouts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=ffVJFUXKZogIPOH25qPqehIAX94%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":102,"category_name":29,"create_tm":191},700225,"Adafruit STM32F405 Feather Express","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=kQevyHr33Ukzg5ilD7509Pjm0yo%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":30,"category_name":29,"create_tm":197},720582,"MCP4725 - 12-Bit Digital-to-Analog Converter with EEPROM Memory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675612/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=39WELyZUn9x7kQ1kt4jDYSa9vUc%3D","mcp4725-12-bit-digital-to-analog-converter-with-eeprom-memory-720582",1795038302,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":102,"category_name":29,"create_tm":203},720649,"OLED 4 Pin 128x64 Display Module 0.96 inch Blue Color - Product Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024401915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=aEdyIczgBIDyiIFyqiB1J9OPGx4%3D","oled-4-pin-128x64-display-module-096-inch-blue-color-product-overview",1795038628,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":97,"category_name":29,"create_tm":209},689889,"Adafruit PCA9685 16-Channel Servo Driver","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002212409/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=Bdl2qHE%2FaCIi44p4jmn1Q3CPeCM%3D","adafruit-pca9685-16-channel-servo-driver",1794133091,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},690357,"Adafruit LIS3DH Triple-Axis Accelerometer Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002631446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=zc7T1TBpkZDDtFUNAeFstLyNpyI%3D","adafruit-lis3dh-triple-axis-accelerometer-breakout-guide",12,1794164631,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":97,"category_name":29,"create_tm":222},720490,"Adafruit INA219 Current Sensor Breakout - Overview, Assembly, Addressing, and Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674161/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=SqjQuJv4dJa85kJQX2RZ2EWTIHQ%3D","adafruit-ina219-current-sensor-breakout-overview-assembly-addressing-and-wiring",1795037523]