MCP4725 Digital to Analogue Converter + MATLAB
Posted: Fri Aug 19, 2022 9:53 am
Hi,
Ive connected the MCP4725 DAC to an arduiono uno (I2C interface). I'm controlling the DAC's input voltage through matlab, and the arduino acts as a 5v power supply. Everything works perfectly and I can send 10 bit number to the DAC with the write(dac, [64 127 240], 'uint8') command. The variable 'dac' stores the MCP4725 DAC's I2C address. I found this function from https://uk.mathworks.com/matlabcentral/ ... =srchtitle
However, I dont know the relationship between [64 127 240] and the DAC's voltage output (). Why is this array sent to the DAC?
Any help is appreciated.
Ive connected the MCP4725 DAC to an arduiono uno (I2C interface). I'm controlling the DAC's input voltage through matlab, and the arduino acts as a 5v power supply. Everything works perfectly and I can send 10 bit number to the DAC with the write(dac, [64 127 240], 'uint8') command. The variable 'dac' stores the MCP4725 DAC's I2C address. I found this function from https://uk.mathworks.com/matlabcentral/ ... =srchtitle
However, I dont know the relationship between [64 127 240] and the DAC's voltage output (). Why is this array sent to the DAC?
Any help is appreciated.