Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

PROJECT: MOTION DECTECTING MOTOR

GROUP:

REPORT

SUBMITTED BY

MIAN JUNAID MUZAMIL

ASIF QADRI

MEHDI

In partial fulfillment for the grades of 7th semester

BS Electrical Engineering At

University of Management and Technology

SUBMITTED TO:

SIR WASEEM IQBAL


OBJECTIVES

 We are making Motion detector motor


 IR sensor
 Software arduino
 When motion of person is detected by sensor, motor will start running
HARDWARE COMPONENT

 NodeMCU ESP8266
 IR sensor
 Voltage supplied by battery/ source
 Motor
SOFTWARE

 Arduino IDE
DESCRIPTION

DC motor converts electrical energy in the form of Direct Current into mechanical energy in the form of
rotational motion of the motor shaft. The DC motor speed can be controlled by applying varying DC
voltage; whereas the direction of rotation of the motor can be changed by reversing the direction of
current through it. For applying varying voltage, we can make use of the PWM technique. For reversing
the current, we can make use of H-Bridge circuit or motor driver ICs. NodeMCU based ESP8266 can be
used to control the speed and rotational direction of DC Motor. NodeMCU has a PWM feature on its
GPIO pins using which we can control the DC motor.

IR sensor is an electronic device, that emits the light in order to sense some object of the surroundings.
An IR sensor can measure the heat of an object as well as detects the motion. Usually, in the infrared
spectrum, all the objects radiate some form of thermal radiation
NodeMCU is a low-cost open source IoT platform It initially included firmware which runs on the
ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which was based on the ESP-12
module. Later, support for the ESP32 32-bit MCU was added.

The circuit connections are made as follows:


1. Vcc pin of the HC-SR501 is connected to +12v of the NodeMCU.
2. Output pin of the HC-SR501 is connected to Digital pin D7 of the NodeMCU.
3. GND pin of the HC-SR501 is connected to Ground pin (GND) of the NodeMCU.

Arduino is an open-source electronics platform based on easy-to-use hardware and


software. Arduino board are able to read inputs

CODE
#define IR D4
bool ir;

int motor1Pin = D1;


int motor2Pin = D2;

{ pinMode(IR, INPUT);
pinMode(motor1Pin, OUTPUT);
pinMode(motor2Pin, OUTPUT);
}
void loop() {
ir = digitalRead(IR);

if(ir ==1)
{
digitalWrite(motor2Pin, LOW);
digitalWrite(motor1Pin, LOW);
Serial.println("Object");
}
else
{
digitalWrite(motor1Pin, HIGH);
digitalWrite(motor2Pin, LOW);
Serial.println("Object");

CIRCUIT DIAGRAM
This project is based on motion sensor network. We make the different material to turn on by detecting
motion like gadgets, machinery and in utility side lights, doors, other electronic appliances. It solved the
real time problems of mankind. It provides friendly environment to use it and detect the motion within
specified range of IR sensor. It provides quality of safety to a low level buildings and also on a large
scale. It is now more advance nowadays it provides safety in user friendly environment. It is either
controlled by smart phones with alarm alert notification. Sensor are of different types: active sensor in
which radar works as radiowave. It sent the transmitted signal to the object and received it as in form of
ecosystem. Then it turns on alarm. Passive sensor detect the infrared heat thus detect the change in
ambient temperature within a sensor range then turns on alarm or light indication. In this lab project we
are using IR sensor. It is mostly used in residential area properties. It detects in form of motion within it’s
protected range it signal to the motor then motor start running. There are many applications in which
these autonomous projects are demanded in
I. Military center
II. Large scale Industrial units.
III. In a warehouse
IV. Smart homes
V. Power Generation units
VI. Underground car parking in Malls
It is implemented in factories that machine will start working in the presence of worker in that it start
consuming power and in closed buildings to get the information of unauthorized person movement.In
this project we are going to make a motor which is start consuming power when motion or presence of
person detected by IR sensor. The Node MCU ESP8266 interface with IR motion sensor. The movement
in term of motion is detected by starting of motor. It will turn on it is a unique way to detect the
movement of particular person or other things within the range of a sensor.

You might also like