Buy from here. I am using the example from here but ignore the switch buttons.
![](https://peter.quantr.hk/wp-content/uploads/2023/11/img_7422-1-600x450.jpg)
![](https://peter.quantr.hk/wp-content/uploads/2023/11/img_7423-1-600x450.jpg)
![](https://peter.quantr.hk/wp-content/uploads/2023/11/img_7424-1-600x450.jpg)
You need to add this zip into the library and make sure don’t install the other library call “AD9833”, very important
#include <AD9833.h>
#include <digitalWriteFast.h>
AD9833 gen(9);
long f;
void setup()
{
gen.Begin();
gen.EnableOutput(true);
}
void loop()
{
f = map(0,0,1023,1000,5000);
// gen.ApplySignal(SINE_WAVE, REG0, f);
// gen.ApplySignal(TRIANGLE_WAVE,REG0,f);
gen.ApplySignal(SQUARE_WAVE,REG0,f);
// gen.ApplySignal(HALF_SQUARE_WAVE,REG0,f);
}