Sunday, 8 May 2011

Digital Infrared motion sensor

Introduction
This is a simple to use motion sensor. Power it up and wait 1-2 seconds for the sensor to get a snapshot of the still room. If anything moves after that period, the 'alarm' pin will go low.
Specification
  • Type: Digital
  • Supply Voltage:3~5V
  • Current:50μA
  • Working temperature:0℃~+70℃
  • Output level(HIGH):4V
  • Output level(LOW):0.4V
  • Detect angle:110 Degree
  • Detect distance:7 meters
  • Size:28mm×36mm
  • Weight:25g

Sample


InterruptPort  PIR = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di13, false, Port.REsistorMode.PullDown, Port.InterruptMode.InterruptEdgeHigh);
PIR.OnInterrupt += new NativeEventHandler(doSomething);


static void doSomething(uint port, uint state, DateTime time) {
    //do something, turn on led, write file, ecc
}

1 comment:

Ecosens said...

This is really interesting blog on Infrared Motion Sensor, You are a very skilled blogger. I've joined your rss feed and look forward to seeking more of your excellent post. Also, I've shared your web site in my social networks! Thank You!!!