Last updated
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.
Up to 12 bits of resolution
Two Lego-compatible holes
MP3 Audio Player
mini Oscilloscope
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 |
What is EasyLoader?1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.
After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)
M5Core(GROVE A) | GPIO22 | GPIO21 | 5V | GND |
---|---|---|---|---|
DAC Unit | SCL | SDA | 5V | GND |
Datasheet - MCP4725
The code below is incomplete (just for reference). To get the complete code, please click here
Feature Introduction
Perform DA conversion and output voltage, up to 3.7V
output voltage save Output voltage 0-3.3, and confirm whether to save to EEPROM
output voltage with raw data save Output voltage 0-4096, and confirm whether to save to EEPROM
Usage