Instructables

How To Control Your Computer With Sonar

Picture of How To Control Your Computer With Sonar
There are many ways in which people try to limit the amount of power that their computer uses. From screensavers to shutting down your pc using twitter, people keep coming up with interesting ways to go green. This tutorial shows one way to save power using sonar.


 
Remove these adsRemove these ads by Signing Up

Step 1: What is sonar?

Picture of What is sonar?
Sonar is a means of emmitting sound pulses and listening for echos. Submarines use sonar to detect objects so they can navigate through the water.Now that that's out of the way, let's figure out how to incorporate this into our computer.

Step 2: Putting sonar on your PC

If you go to steve tarzia.com, you'll find a sonar program that you can download and install for free. This program uses your computers speakers and microphone to emit sound pulses and listen for echoes to detect whether or not you are sitting in front of the computer. So if you move away from your computer, the sonar will detect it and will automatically put your computer to sleep. While this program is pretty incredible on it's own, the website also gives you the source code so that you can edit and tweak the program and make it do whatever you want with your computer, which is what we'll be doing in the next step.

Step 3: How to edit the source code

NOTE: If you're not a programmer, then you probably don't want to try this, as it can be pretty difficult. But if you know what you're doing, then just download and extract the source code from the steve tarzia site to a folder called "sonar_dist".

In order to edit and compile it, you'll need a few things first:
- Begin by downloading Visual C++ Express 2008, which Microsoft offers for free.
- Then you also want to download and install wxWidgets version 2.8.10.
- Lastly, you'll need to download PortAudio and extract it to your "sonar_dist" folder using 7zip.
Hummm carputer with sonar on the rear part of the car.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!