DAC, is a unit with the ability to convert digital signal to analog signal (voltage waveform signal) with support for audio waveform and more. It integrates a 12-bit high resolution DAC chip named MCP4725 which has an on-board non-volatile memory (EEPROM). The unit communicates with the M5Core using the I2C protocol.
The DAC input and configuration data can be programmed to the EEPROM in order for the data to be saved after reboot or system shutdown.
The device I2C address is 0x60 by default unless changed manually.
Resources | Parameter |
---|---|
Resolution | 12 bit |
voltage range | 0-3.3V |
Communication protocol | I2C: 0x60 |
Net weight | 4g |
Gross weight | 19g |
Product Size | 32.2*24.2*10.3mm |
Package Size | 67*53*12mm |
M5Core(GROVE A) | GPIO22 | GPIO21 | 5V | GND |
---|---|---|---|---|
DAC Unit | SCL | SDA | 5V | GND |
The code below is incomplete (just for reference). To get the complete code, please click here