Search Posts

Arduino + AD9833

Buy from here. I am using the example from here but ignore the switch buttons.

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()

void loop()
  f = map(0,0,1023,1000,5000);
  // gen.ApplySignal(SINE_WAVE, REG0, f);
  // gen.ApplySignal(TRIANGLE_WAVE,REG0,f);
  // gen.ApplySignal(HALF_SQUARE_WAVE,REG0,f);

Leave a Reply

Your email address will not be published. Required fields are marked *