Remote Controlled Motion Sensor System

by Adit1212 in Circuits > Arduino

213 Views, 1 Favorites, 0 Comments

Remote Controlled Motion Sensor System

Screenshot_174.png

Purpose:

The purpose of this project is to have it function as a security system, where it alerts the user via the LCD Display if the PIR sensor is activated. If the PIR sensor goes off, the LED turns on and the LCD Display displays a "Thief Detected" message. After this, the whole circuit can be shut off with the simple click of a button with the IR Remote.


TinkerCad Link

Supplies

Screenshot_178.png

The parts required to build this project:

- 1X Breadboard ($9.60)

- 1X Arduino ($27.99)

- 1X LED ($16.59)

- 1X LCD ($13.99)

- 1X PIR Motion Sensor ($10.89)

- 1X Potentiometer ($16.99)

- 1X IR Remote ($16.98)

- 1X IR Sensor ($7.98)

- 2X 220 Ohm Resistor(s) ($7.99)

- Multiple connection jumper wires ($10.99)

Total: $139.99 CAD

Schematic

Screenshot_175.png

This schematic can be used to recreate and or replicate my project if you wish to remake it. Despite this schematic being not that simple, there is a alternate option to follow and remake the system.


This virtual build is essentially what the schematic is made up of.

TinkerCad Build

Screenshot_176.png

This circuit can be used to recreate and or replicate my project if you wish to remake it. This TinkerCad Build is easier to follow than the schematic, as beginners can follow the virtual build

This virtual build is essentially what the schematic is made up of.


Wiring:

  • I started out with wiring the LCD by hooking the LCD's ports which help me finish half of the circuit
  • Next, I set up the PIR Motion Sensor by hooking it up to the power and ground rails, with a connection running from the 6th PWM Arduino pin to the Signal port for the Sensor.
  • Next I finished hooking up the Potentiometer to the Ground rail in the LCD and a connection running from the LCD's contrast pin to the Potentiometer's Wiper rail
  • After that, I hooked up the IR Sensor to the power and ground with a connection running from the Out port towards the 9th PWM pin on the Arduino
  • At last, I finally hooked up the LED with a resistor ground connection in the Cathode, and a connection from the Arduino's 7th pin to the Anode as well as a connection stemming towards a resistor coming from the LED Anode pin in the LCD

Code

Screenshot_177.png

This code can be used to recreate and or replicate my project if you wish to remake it. The header image is just a preview of the full code.


  • This code is easy to follow and understand as first it is the initial setup of the code with all the libraries, and pin setups. The next portion is the void setup function where it setups the pin modes and the LCD and IR Receiver



 The next portion is the void loop function where its programmed to do the following:

  • What the PIR Sensor will do when motion is detected (LCD will turn on and it will display "Thief Detected"), and turn on the LED
  • It will also let the IR Remote turn off the entire system via a conditional if statement