Skip to content

sparkfun/SparkFun_MCP4725_Arduino_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkFun MCP4725 Arduino Library

SparkFun MCP4725 Arduino Library

Arduino Library for the SparkFun MCP4725 Arduino Library

GitHub License Release Release Date Documentation - build Compile Test GitHub issues

The SparkFun MCP4725 Arduino Library provides full control over Microchip's MCP4725, a 12-bit single-channel I2C digital-to-analog converter (DAC). The MCP4725 is compatible with SparkFun's Qwiic connect system, so no soldering is required to get started. An onboard EEPROM allows the device to retain its DAC value and power-down settings across power cycles, making it ideal for applications that require a consistent analog output at startup.

This library is available in the Arduino Library Manager; search for SparkFun MCP4725.

This library allows you to:

  • Set a 12-bit DAC output value (0–4095)
  • Use fast-mode writes for high-speed waveform generation
  • Persist DAC values and power-down settings to onboard EEPROM
  • Read back the current DAC register and EEPROM contents
  • Configure three power-down modes (1 kΩ, 100 kΩ, and 500 kΩ load to GND)

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • /docs - Datasheet for the MCP4725.
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

Products That Use This Library

  • [BOB-31206] - SparkFun Qwiic 12-Bit DAC Breakout - MCP4725
  • [TODO: SKU] - SparkFun I2C DAC Breakout - MCP4725

License Information

This product is open source!

This product is licensed using the MIT Open Source License

About

Arduino Library for the SparkFun MCP4725 breakout boards. Generate precise, true analog voltage signals from your microcontroller using this 12-bit Digital-to-Analog Converter.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages