You are on page 1of 12

Home Automation

Using
Raspberry Pi & Motion sensor
Hardware Components required
HDMI Monitor
Raspberry pi
Power adaptor
PIR Motion sensor
Relay module
Connecting wires
Bread board
Keyboard & mouse
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B Features
A 1.2GHz 64-bit quad-core ARMv8 CPU
802.11n Wireless LAN
Bluetooth 4.1
Bluetooth Low Energy (BLE)
1GB RAM
4 USB ports
40 GPIO pins
Full HDMI port
Ethernet port
Combined 3.5mm audio jack and composite video
Camera interface (CSI)
Display interface (DSI)
Micro SD card slot (now push-pull rather than push-push)
Video Core IV 3D graphics core
Raspberry pi Gpio pins
GPIO capabilities includes the
following:

GPIO pins can be configured to be input or output.


GPIO pins can be enabled/disabled.
Input values are readable (typically high=1, low=0).
Output values are writable/readable.
Motion sensor:
Working of PIR Motion Sensor
The PIR sensor itself has two slots in it, each slot is
made of a special material that is sensitive to IR.
When the sensor is idle, both slots detect the same
amount of IR, the ambient amount radiated from the
room or walls or outdoors.
When a warm body like a human or animal passes by,
it first intercepts one half of the PIR sensor, which
causes a positive differential change between the two
halves.
When the warm body leaves the sensing area, the
reverse happens, whereby the sensor generates a
negative differential change. These change pulses are
what is detected.
Setup
Setup
First of all we need an empty SD card.
Now download NOOBS zip file(link in
description).
Unzip the NOOBS.zip file and copy files to newly
formatted SD card.
Now insert the card in raspberry pi and give
supply to pi.
Now after booting it will show multiple OS to
install but choose raspbian OS and click on
install.
It will take about 30 minutes to complete
installation and we are good to go then.
Circuit Diagram
Programming:
With libraries:
Wiring pi
BCM2835
Rpi.gpio

With Out libraries:


By Using System Driver Calls in the embedded c
programming.

You might also like