Bought from here
![](https://peter.quantr.hk/wp-content/uploads/2023/10/image-1-573x600.png)
![](https://peter.quantr.hk/wp-content/uploads/2023/10/img_7115-1-1440x1080.jpg)
![](https://peter.quantr.hk/wp-content/uploads/2023/10/img_7115-1-1440x1080.jpg)
#include <Wire.h>
#include <Adafruit_MCP4725.h>
Adafruit_MCP4725 dac;
#define DAV_RESOLUTION (9)
void setup() {
Serial.begin(9600);
Serial.println("MCP4725 Test");
// 0x62 default
// 0x63 Addr pin tied to VCC
// 0x60 Addr pin tied to GND
dac.begin(0x60);
}
void loop() {
for (int x=1;x<=5;x++){
dac.setVoltage(x*4096/5, false);
delay(50);
}
}
Testing maximum frequency, around 800us
#include <Wire.h>
#include <Adafruit_MCP4725.h>
Adafruit_MCP4725 dac;
#define DAV_RESOLUTION (9)
void setup() {
Serial.begin(9600);
Serial.println("MCP4725 Test");
// 0x62 default
// 0x63 Addr pin tied to VCC
// 0x60 Addr pin tied to GND
dac.begin(0x60);
}
void loop() {
dac.setVoltage(1, false);
dac.setVoltage(4095, false);
}
![](https://peter.quantr.hk/wp-content/uploads/2023/10/img_7118-1-1440x1080.jpg)