Skip to content

About

Contains case programs of M5Stack Unit DDS

Resources

Stars

2 stars

Watchers

4 watching

Forks

Repository files navigation

M5Unit - DDS

Overview

Library for Unit DDS using M5UnitUnified.
M5UnitUnified is a library for unified handling of various M5 units products.

SKU:U105

Unit DDS is a signal source Unit. It uses the AD9833 programmable waveform generator + STM32F0 control scheme. It provides an I2C communication interface (addr: 0x31) and operates by configuring registers in practical use. It allows easy control of the signal source to output various waveforms (sine wave, triangle wave, square wave output, sawtooth wave, signal output amplitude 0-0.6V), and to adjust frequency and phase. It also supports sleep strategies to further reduce power consumption when idle. This Unit is suitable for use as a signal source in the electronic circuit prototyping of various test instruments.

Related Link

Required Libraries

License

Examples

See also examples/UnitUnified

For ESP-IDF settings

NOTE: The ESP-IDF native build (idf.py) targets ESP-IDF 5.1 or later (5.x and 6.x). Only the M5UnitUnified driver (M5UnitUnifiedDDS.h) is available. The legacy driver (Unit_DDS.h) is for Arduino only.

Each example covers a single unit, so the examples need no Kconfig choice. Build them directly:

cd examples/UnitUnified/UnitDDS/Output
idf.py set-target esp32s3               # or esp32 / esp32c5 / esp32c6 / esp32h2 / esp32p4 / ...
idf.py build flash monitor

Support via PaHub

Unit Support Note
UnitDDS OK

See also the ViaPaHub example and M5Unit-HUB

Doxygen document

GitHub Pages

If you want to generate documents on your local machine, execute the following command

bash docs/doxy.sh

It will output it under docs/html
If you want to output Git commit hashes to html, do it for the git cloned folder.

Required

Legacy library

The legacy library is a standalone driver that does not depend on M5UnitUnified. It is for Arduino only (it uses Wire). Do not use it at the same time as the M5UnitUnified library.

Include file

#include <Unit_DDS.h>

Examples

About

Contains case programs of M5Stack Unit DDS

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages