Skip to content

bradparks/doppler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.7%
  • HTML 18.3%