Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: waveform generator with Due  (Read 291 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I followed the "waveform generator with Due" tutorial and found a minor typo,
Code:
sample = constrain(t_sample, 0, oneHzSample);
should read
Code:
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.
Logged

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: