From LedHed's Wiki
Jump to: navigation, search
(Created page with "Often I wear my headphones at work and listen to music. Unfortunately I sit at a corner desk and my view of the office entrance is obstructed. This leads to people standing ov...")
 
Line 13: Line 13:
 
== Design ==
 
== Design ==
 
After doing some research I decided a PIR (Passive Infrared) sensor would be sufficient.
 
After doing some research I decided a PIR (Passive Infrared) sensor would be sufficient.
I found this one [[http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/51/List/0/SortField/0/Level/a/ProductID/83/Default.aspx (Parallax PIR Rev.B)]]
+
I found this one [http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/51/List/0/SortField/0/Level/a/ProductID/83/Default.aspx (Parallax PIR Rev.B)]
 
which is widely available at your local Radio Shack.  
 
which is widely available at your local Radio Shack.  
 +
 +
[[File:USBEye-Diagram.png|480px]]
  
 
== Parts List ==
 
== Parts List ==
 +
PIR Sensor <br>
 +
[http://www.radioshack.com/product/index.jsp?productId=12330342 Catalog #: 276-135]
 +
 +
1/8" Stereo Panel-Mount Audio Jack (2-Pack) <br>
 +
[http://www.radioshack.com/product/index.jsp?productId=2103452 Catalog #: 274-249]
 +
 +
9-Pin Female Solder D-Sub Connector <br>
 +
[http://www.radioshack.com/product/index.jsp?productId=2102498# Catalog #: 276-1538]
 +
 +
9-Position Shielded Connector Hood <br>
 +
[http://www.radioshack.com/product/index.jsp?productId=2104053 Catalog #: 276-1513]
 +
 +
'''Wire:'''
 +
I used strands of wire from CAT5 cable I had laying around for the internal wiring.
 +
I also used an old headphone cable for the link cable between the Serial port to the project box (AKA Altoids can).
 +
 +
=== USB to Serial adapter ===
 +
The USB to Serial Adapter is optional, assuming you have a serial port available on your PC.
 +
If you don't have a serial port (few laptops have serial ports any more), then you will need to use an adapter. <br>
 +
I use one based on the Prolific PL2303 chipset, available [http://www.newegg.com/Product/Product.aspx?Item=N82E16812200141 here] <br>
 +
Other USB adapters should also work but I haven't tested any other adapters so your results may vary.
 +
  
  
Line 26: Line 50:
  
 
== References ==
 
== References ==
 +
  
 
[[Category:Tech_Notes]]
 
[[Category:Tech_Notes]]

Revision as of 23:48, 21 February 2013

Often I wear my headphones at work and listen to music. Unfortunately I sit at a corner desk and my view of the office entrance is obstructed. This leads to people standing over my shoulder with out my knowing about it. This bugs me, so one day I decided to do something about it.

Goals

While I could very well have placed a mirror on my desk or monitor I decided that it would be nice when someone walks in to receive some form of notification in the form of a balloon notification, audible tone, or a screen flash. This requires a motion sensor that can interface with my PC.

Requirements

  • Inexpensive
  • Simple to build
  • Small
  • Reliable (Not to many false positives)


Design

After doing some research I decided a PIR (Passive Infrared) sensor would be sufficient. I found this one (Parallax PIR Rev.B) which is widely available at your local Radio Shack.

USBEye-Diagram.png

Parts List

PIR Sensor
Catalog #: 276-135

1/8" Stereo Panel-Mount Audio Jack (2-Pack)
Catalog #: 274-249

9-Pin Female Solder D-Sub Connector
Catalog #: 276-1538

9-Position Shielded Connector Hood
Catalog #: 276-1513

Wire: I used strands of wire from CAT5 cable I had laying around for the internal wiring. I also used an old headphone cable for the link cable between the Serial port to the project box (AKA Altoids can).

USB to Serial adapter

The USB to Serial Adapter is optional, assuming you have a serial port available on your PC. If you don't have a serial port (few laptops have serial ports any more), then you will need to use an adapter.
I use one based on the Prolific PL2303 chipset, available here
Other USB adapters should also work but I haven't tested any other adapters so your results may vary.


Pictures

.NET Code

References