Documente Academic
Documente Profesional
Documente Cultură
From Robot Wiki
Contents
1 Introduction
2 Specification
3 Application
4 PinOut
5 Tutorial
5.1 Connection Diagram
5.2 Sample Code Digital Infrared motion sensor
5.3 Result (SKU:SEN0018)
6 Trouble shooting
7 More
Introduction
This is a simple to use motion sensor. Power it up and wait 12 seconds for the sensor to get a snapshot
of the still room. If anything moves after that period, the 'alarm' pin will go low. The sensor integrates a
connector, and is shipped with its wire. Jumper selector for the working mode
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
Application
Automatic door
Infrared burglar alarm
The highway vehicle traffic counter
PinOut
Pin Description
1 Digital Signal Out
2 VCC(5V)
3 GND
Tutorial
Connection Diagram
Motion sensor Connection diagram
Sample Code
?
1 const int buttonPin = 2;
2 const int ledPin = 13;
3 void setup() {
4 pinMode(ledPin, OUTPUT);
5 pinMode(buttonPin, INPUT);
6 }
7 void loop()
8 {
9 if (digitalRead(buttonPin) == HIGH)
10 {
11 digitalWrite(ledPin, HIGH);
12 }
13 else {
14 digitalWrite(ledPin, LOW);
15 }
16 }
Result
When sensors detect people closed, the light will be lighted.
Trouble shooting
More question and cool idea,visit DFRobot Forum (http://www.dfrobot.com/index.php?
route=DFblog/blogs)
More
Library installation (https://www.arduino.cc/en/Guide/Libraries#.UxU8mdzF9H0)
Click to buy on DFRobot Store (http://www.dfrobot.com/index.php?
route=product/product&keyword=sen0018&category_id=0&description=1&model=1&product_id=119)
DFRobot Distributor List (http://www.dfrobot.com/index.php?
route=information/distributorslogo)
Retrieved from "https://www.dfrobot.com/wiki/index.php?
title=Digital_Infrared_motion_sensor_(SKU:SEN0018)&oldid=30114"
Categories: Product Manual SEN Series Sensors
This page was last modified on 17 August 2015, at 17:55.
This page has been accessed 35,609 times.