Motion Detection: Iot Project Team Name: Code Trackers
Motion Detection: Iot Project Team Name: Code Trackers
IOT PROJECT
Team Name: CODE TRACKERS
Why Motion Detection?
First, the world is dynamic, and motion
information is one of the keys to many
practical applications such as video mining,
Robert navigation, intelligent traffic system,
etc.
Motion Detection is also a basic step to
machine learning, pattern recognition in
dynamic context.
The main principals used in this
project:
Because the objects are always moving, in
image space, every pixel will be disclosed
after the moving objects leave.
According to the above fact, we can record
every pixel’s variations along time axis. We
will get some segments in which the pixel’s
variation is o, along time axis. Among those
segments, we select the largest segment, and
select the middle point from the segment as
the corresponding background pixel.
COMPONENETS:
Arduino sensor
Bread board
PIR Sensor
LED light
Jumper Wires
Get background image:
According to the PDIFF, we compute
the largest length in PDIFF along time
axis for every fixed pixel, select the
middle point among the segment as the
corresponding pixel of background.
Then we get the whole background
image.
Motion detection:
We can locate the motion according to
the comparison between a frame at any
time t and the background image;
Circuit Diagram
Programming :
void setup() {
pinMode(2, INPUT);
pinMode(3, OUTPUT);
}
void loop() {
if (digitalRead(2) == HIGH)
{
digitalWrite(3, HIGH);
delay(100);
digitalWrite(3, LOW);
delay(100);
}
}
Conclusion:
Finally we conclude that Arduino sensor
is very useful in our smart daily life as it
reduces the human efforts and time
management ,economically useful.