I am trying to produce a 0-5V variable output from a Raspberry Pi using:
- adafruit MCP4725 DAC breakout (https://www.adafruit.com/product/935)
- SparkFun PCA9306 level translator breakout (https://www.sparkfun.com/products/15439) to shift between the Pi 3.3V logic and the 5V I want at the MCP4725
Between GND and VIN/VREF on the MCP4725 breakout I have 5.17V, but with the DAC raw value set at maximum 4095, I have only 3.23V between GND and VOUT. Varying the DAC raw value does vary VOUT but between 0-3.23V. All connections seem good visually.
To debug I have tried running the VIN/VREF from 3.3V rail which gives 3.26V between GND and VIN/VREF but maximum 2.12V between GND and VOUT.
What am I doing wrong?
import board
import busio
import adafruit_mcp4725
i2c = busio.I2C(board.SCL, board.SDA)
dac = adafruit_mcp4725.MCP4725(i2c)
dac.raw_value = 4095 # (0-4095)