Go Down

Topic: waveform generator with Due (Read 296 times) previous topic - next topic

pzheng

I followed the "waveform generator with Due" tutorial and found a minor typo,
Code: [Select]
sample = constrain(t_sample, 0, oneHzSample);
should read
Code: [Select]
sample = constrain(sample, 0, oneHzSample);
The code compiled correctly and I was able to generate sine, square and saw-tooth waveform, the signal measured about 2.32 Vp-p
and a dc component about 0.5 V, since the signal is generated from DAC I should be able to change the amplitude of the signal, can someone show me where to find the information to do this.

Go Up