Wow! Much replies! Such help! Great thanks!
Doge jokes aside: Thanks guys.
I’m asking the OP to clarify in which sense he means mixing.
Top hit for “sine mixer”:
And as I said, an audio mixer is generally actually a summing amplifier.
Just asking the OP to clear this up.
I don’t quite know now when you’re asking me.
I would like to mix two sine waves in the same way that one would mix two audio files.
Lets say one sine is at 500Hz, and the second sine is at 1000Hz, the output should be
both of them at the same time through the same DAC.
In my application, the sines might or might not be on at the same time, therefor I need to mix them together.
Imagine how a music mixing software works, you have two songs, you can play one song at a time, or both of them at
the same time.
that’s more or less how I want to work with sinewaves.
Also, how can I generate frequencies at the 20kHz range and above?
That hardly seems audio.
Yes, it does not have to be audio in the human hearable range. As long as a FFT can capture it it is alright.
If you are looking for a high resolution i.e. low distortion sin wave, you may want to consider using a direct digital synthesizer (DDS) controlled by the Arduino, then use op amp summer to mix the signal.
Direct Digital Synthesis
That one looks nice. I will read more about it.