Introducció
The DIYmall MCP4728 is a 12-bit digital-to-analog converter (DAC) breakout module featuring four buffered outputs and an I2C interface. This module is designed for applications requiring precise voltage output control, such as set point adjustments, sensor calibration, and programmable voltage sources. It includes on-board nonvolatile memory (EEPROM) for DAC codes and I2C address bits, offering flexibility in various electronic projects, particularly with microcontrollers like Arduino.
Característiques
- 12-Bit Voltage Output DAC with Four Buffered Outputs
- On-Board Nonvolatile Memory (EEPROM) for DAC Codes and I2C Address Bits
- Internal or External Voltage Reference Selection
- LDACn pin for simultaneous update of all outputs
- Applications include Set Point or Offset Adjustment, Sensor Calibration, Closed-Loop Servo Control, Low Power Portable Instrumentation, PC Peripherals, Programmable Voltage and Current Source, Industrial Process Control, Instrumentation, and Bias Voltage Adjustment for Power Ampaixecadors.
Especificacions
| Especificació | Valor |
|---|---|
| Marca | DIYmall |
| Volum de subministrament màximtage | 5.5 volts |
| Subministrament mínim Voltage | 2.7 volts |
| Tipus de muntatge | Board Mount, Freestanding |
| Nombre de pins | 10 |
| Classificació de temperatura superior | 125 °C |
| Interfície | I2C, Parallel |
| Nombre de canals | 4 |
| Tipus de material | Plom |
| Dispositius compatibles | Amplifiers, PC |
Configuració
Diagrama de pinout
Refer to the diagram below for the pin assignments of the MCP4728 module.

Connection to Arduino
To connect the MCP4728 module to an Arduino board, follow these connections:
- V (VCC) to Arduino 5V
- G (GND) to Arduino GND
- SCL to Arduino SCL (A5 on Uno)
- SDA to Arduino SDA (A4 on Uno)

Software Setup and Code Upload
Before operating the module, ensure your Arduino IDE is set up correctly. This involves selecting the appropriate board and port, and then uploading the necessary code. An example demonstration of this process is shown in the video below.
Operating the Module
After successful connection and code upload, the MCP4728 module can be controlled via the I2C interface. The example code typically initializes the DAC and sets voltage values for its four channels (DACA, DACB, DACC, DACD). You can monitor the output and communication status using the Arduino IDE's Serial Monitor.

L'example code demonstrates how to set specific 12-bit values for each DAC channel, which correspond to analog voltage outputs. The mcp.setChannelValue() function is used for this purpose. Ensure that the correct library for the MCP4728 (e.g., Adafruit MCP4728 library) is installed in your Arduino IDE.
Manteniment
The MCP4728 module is a robust electronic component requiring minimal maintenance. Keep the module clean and free from dust and moisture. Avoid exposing it to extreme temperatures or static discharge. Ensure all connections are secure to prevent intermittent operation.
Resolució de problemes
- Mòdul no detectat: Verify I2C connections (SCL, SDA, VCC, GND). Check if the I2C address in your code matches the module's address. Ensure the power supply is within the specified range (2.7V to 5.5V).
- Vol incorrectetage Sortida: Double-check the digital values being written to the DAC channels. Ensure the voltage reference is correctly configured (internal or external). Calibrate your measurement equipment.
- Funcionament intermitent: Inspect all solder joints and wire connections for looseness or shorts. Ensure stable power supply.
- Arduino IDE Errors: Confirm that the necessary libraries (e.g., Adafruit MCP4728) are installed and updated. Check for syntax errors in your code.
Garantia
This product is covered by a standard manufacturer's warranty against defects in materials and workmanship. Please refer to the retailer's return policy for specific details regarding warranty claims and returns.
Suport
For technical assistance or further inquiries, please contact DIYmall customer support through their official website or the platform where the product was purchased. Online resources, community forums, and documentation for the MCP4728 chip are also available from Microchip Technology Inc.
