Sinuswave with randomly variable frequency
- February 22, 2017
- 4 replies
- 2220 views
Hi everyone,
I seem to need the help of the forum often lately... 
I need for test purposes to generate a sinus-wave with randomly varying frequency (and possibly also amplitude, but that is the lesser problem). Something like an oscillator whose frequency is not perfectly stable. Or an oscillator whose frequency setting adjustment button would be slightly turned right and left randomly by a small amount. Something like this:

I attached my solution, but I am not happy with it at all. Obviously the "randomness" becomes higher and higher with the time, and for the same reason there are unwished jumps in the later part of the simulated signal.

I understand that the problem is the time variable "t" in the equation A*sin(2*pi*f(t)*t) .
But at the moment I can find no good simple way to correct the behaviour.
Maybe I am missing something obvious ... I will be grateful for any hint.
Best regards
Claudio


