Datasheet
Hook up a multimeter to the Vout pin of the board (positive/red lead to Vout, ground/black lead to board GND) and
you should see about 1.65 volts DC output. Try setting dac.value to other numbers like 0 or 65535 to see how the
voltage changes.
You can use the MCP4725 instance anywhere you might use the AnalogOut class!
However you might prefer a few other simpler properties to change the output voltage:
normalized_value - Set this to a floating point number between 0 and 1.0. A value of 0 is ground/0V and 1.0 is
Vdd or max voltage/3.3V. Anything in-between is a proportional voltage. This is handy for scaling the output
value without having to worry about how many bits of resolution it has.
raw_value - Set this to a 12-bit value 0-4095 to control the raw 12-bit output of the DAC. Unlike the value
property this raw_value exposes the true 12-bit resolution of the DAC and is free from quantization errors. If you
need the most precise output use the raw_output value for setting voltage.
dac.normalized_value = 0.5 # ~1.65V output
dac.raw_output = 2047 # Also ~1.65V output
© Adafruit Industries https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial Page 11 of 14