Use the USB port on your computer to interface to various electronic devices.
USBmicro U401 Versatile I/O
USBmicro U421 Versatile I/O
USBmicro U451 Relay Board
USB PIR detector
CircuitGizmo Parts
Relay
30 Pin Header
3-position Screw Terminal
BareBones Board
Home Domination
Temperature Sensor
Project Box
Red LEDs
Society of Robots Kit
Small Pushbutton
See More CG Products
Passive Infra-Red Module
|
|
USB PIR Motion Detector Passive Infra-Red Module
The CGUSPPIR module assembly is a motion detector combined with a U421. The module detects changes
in the field of infra-red that it "sees", and interprets that as motion. The sensor has a range of
about 20 feet. If you have a trouble area in the field of view of the sensor (such as pets walking by
on the floor) you can cover part of the lens with black tape.
The PIR module performs a self-calibration on powerup that lasts up to 80 seconds. During this period it
is important to provide the sensor with as little motion or change in environment as possible.
To use this device you need to set two U421 pins to output to give the PIR module power, and set
one line to input to read the PIR status.
Port A bit 4 must be set to output and set low.
Port A bit 7 must be set to output and set high.
Port A bit 6 must be set to input.
Read Port A bit 6 in order to read the PIR status. The pin is normally low, motion makes it
momentarily high.
For examples of detecting motion with similar setups, see:
The USBPIR Motion Detector with example code
Weekend Project: USB Motion Detector
Linux code for U401 (Make Magazine Blog)
Other products that go well with this:
| |||||||||||
| |||||||||||
|