Tsunami
borispavlov
—
2015-10-10T00:51:34Z —
#1
How can i make Tsunami to generate a sweep frequency 500 Hz to 10 kHz range through function for gradually changing sweep but not a sweep generated through a frequency loop by increment by 1.
Thanks
nickjohnson
—
2015-10-13T06:39:12Z —
#2
Hi,
Have you looked at the example code here? If that's not meeting your requirements, can you explain in more detail what you're trying to do?
Solomute
—
2015-10-17T01:01:07Z —
#3
It sounds like he wants a continuous sweep with no discontinuities.
borispavlov
—
2015-10-17T02:13:20Z —
#4
the sweep is based on a "chirp" signal that uses a complicated mathematical formula to be created.
produces very gradual where there is no "jumping" between adjacent frequencies. some dds chips like Analog devices AD9854 can do that. not sure if the chip you use is capable.
nickjohnson
—
2015-10-17T17:29:30Z —
#5
The AD9838 DDS doesn't have built in sweep facilities, no. I'm not sure what you mean by a 'chirp' - can you link to an example?
borispavlov
—
2015-10-17T21:09:19Z —
#6
here are 2 links
http://forum.arduino.cc/index.php?topic=91979.0
there is a lot more detailed info in MATLAB
the chirp signal can be used in microwave detection security sensors
It is very hard to generate if you do not have a DDS chip.
TonyAR
—
2017-06-24T10:57:10Z —
#7
I'm a bit late to the party here, but if the OP was looking for the type of sweep used in audio testing, he probably wants a log type sweep, where the frequency increments at so many % per decade.
Wikipedia explanation
This example will increment the frequency by 12.22% for each step, over 10 steps per decade.
for (float x = 10; x < 1000000; x = x + (x / 100) * 12.22) {
// use the frequency
Serial.println(x);
}
Output will look like this:
100
112.2
125.9
141.3
158.5
177.8
199.5
223.9
251.2
281.8
316.2
354.8
398.1
446.7
501.2
562.3
631
707.9
794.3
891.3
1000
... multiply * 10 for each decade.