Go Down

Topic: waveform generator with Due (Read 316 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy