↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Motion sensing using the doppler effect

The page describes a way to detect motion on a normal computer with only a speaker and a microphone. It sends a 20 kHz sinusoid, watches how motion shifts the frequency spectrum around that tone, and uses the left-right bandwidth difference as the signal for interaction.

Reading notes
#

  • A moving object changes the frequency of reflected sound, so motion can be detected without special hardware.
  • The method sends an inaudible 20 kHz tone and reads shifts in the microphone spectrum near that frequency.
  • The page says Chrome needs a fairly high speaker volume for the setup to work well.
  • Moving a hand toward the mic shifts the bulge toward higher frequencies, and moving away shifts it toward lower frequencies.
  • The bandwidth difference can drive a box that gets smaller when the hand moves toward the microphone and larger when it moves away.
  • The same signal can be used for scrolling, with fast movement toward the computer and slow movement away from it.
  • The page also sketches a Theremin-like instrument that modulates a 440 Hz tone from the bandwidth difference.
  • A small library is provided to experiment with the technique.