orakle / doppler

Motion detection using the doppler effect

Home Page:http://danielrapp.github.io/doppler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Motion sensing using the doppler effect

This is an implementation of the SoundWave paper on the web. It enables you to detect motion using only the microphone and speakers!

How to use it

Just run it like this

doppler.init(function(bandwidth) {
  console.log(bandwidth.left - bandwidth.right);
});

See more in example.html. Read more about the theory of how this works on the github-pages site.

Firefox?

Unfortunately this doesn't work on Firefox since it doesn't seem to support the echoCancellation: false parameter to navigator.getUserMedia. This means there's no way to turn off it filtering out the sounds which are coming from the computer itself (which is precisely what we want to measure).

About

Motion detection using the doppler effect

http://danielrapp.github.io/doppler/

License:MIT License


Languages

Language:JavaScript 81.7%Language:HTML 18.3%