• Interactivity
  • Create a sine wave and try to pick up using sound detector

I modified the code to play the sine tone and try to use a mic (Sparkfun sound detector) to pick up the signal. I found this. I can see the envelope is my sine wave but I want to know the physics behind it. I mean what is happening here?
alt text

that looks like there is an error somewhere either in your code or in the backend. Can you post your code and describe the wiring?

    4 days later

    giuliomoro By changing the sample rate (n/2), I managed to get the desired plot. Thanks a lot.