Skip to content

Latest commit

 

History

History
68 lines (36 loc) · 1.95 KB

File metadata and controls

68 lines (36 loc) · 1.95 KB

This repository contains device specific support for various devices.

This is an example implementation and will need to be adjusted to fit your needs.

Project by Tom Aarts

               Adafruit MCP4725 

Pi 5V Vin Pi Grnd GND Pi Pin5 SCL Pi Pin3 SDA Pi Grnd A0 MCP3008 ch7 Vout

  1. mvn clean package
  2. cd target/distribution
  3. sudo ./runMCP4725.sh parms........

https://datasheetspdf.com/pdf-file/634126/MicrochipTechnology/MCP4725/1

-rde anf -rdf both have max input value 0x0FFF

-ef and -ev cannot exceed -vref

-vref option: the -d feature will display calculated output voltage.

Updates using raw binary value To Update DAC and EEPROM, set to 50 % of reference voltage Vin of 5 volts

sudo ./runMCP4725.sh -b 0x01 -a 0x62 -rde 0x7ff -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage
sudo ./runMCP4725.sh -b 0x01 -a 0x62 -rdf 0x7ff -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage Set trace level 'off' sudo ./runMCP4725.sh -b 0x01 -a 0x62 -rdf 0x07ff -t off -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage, reset chip, dump DAC and EEPROM
sudo ./runMCP4725.sh -b 0x01 -a 0x62 -rdf 0x07ff -r -d -vref 5.0

Updates using voltage value

To Update DAC and EEPROM, set to 50 % of reference voltage Vin of 5 volts

sudo ./runMCP4725.sh -b 0x01 -a 0x62 -fv 2 -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage
sudo ./runMCP4725.sh -b 0x01 -a 0x62 -fv 1.8 -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage Set trace level 'off' sudo ./runMCP4725.sh -b 0x01 -a 0x62 -ev 5.0 -t off -vref 5.0

To Update DAC Fast, set to 50 % of reference voltage, reset chip, dump DAC and EEPROM
sudo ./runMCP4725.sh -b 0x01 -a 0x62 -ev 3.1 -r -d -vref 5.0