You are on page 1of 12

J – COMPONENT REPORT.

FALL SEM

CONTROL SYSTEMS.
SUBJECT CODE : ECE2010
TOPIC : OBJECT LEVEL DETECTION.
SLOT : G2 +TG2.
GUIDED BY : Prof. VIDHYA.

SUBMITTED BY:
P. Tarun 17BIS0145
B.S Susee laksman 17BIS0034
G. Mohan 17BIS0115
K. Rakesh Reddy 17BIS0069
N. Sathya Varun Kumar 17BIS0105
CERTIFICATE

This is to certify that the project work " CONTROL SYSTMES


" that is submitted by P. Tarun, B.S Susee laksman, G. Mohan, K. Rakesh
Reddy, N. Sathya Varun Kumar for “ CONTROL SYSTEMS
(ECE2010)” is a record of bonafide work done under my supervision.
The contents of this project work, in full or in parts, have neither been
taken from any other source nor have been submitted for any other NON-
CAL course.

Place: Vellore

Date:01-11-2018
ACKNOWLEDGEMENTS

We have taken efforts in this project. However, it would not have


been possible without the kind support and help of many individuals and
organization. I would like to extend my sincere thanks to all of them. We
would like to express my special thanks of gratitude to our Faculty, Prof.
Vidhya.S who gave us the golden opportunity to do this wonderful project
on the topic, Object level detection which also helped us in doing a lot of
Research and we came to know about so many new things we am really
thankful to them. I would also like to extend my gratitude to the VIT
University management for letting us do this project. Secondly, we would
also like to thank my parents and friends who helped us a lot in finalizing
this project within the limited time frame.
Abstract
Object level detection device, this device is made to help people to find their
height in an easy way with much faster and accurate readings without much
difficulty. This is a new innovation which can lead to a better cause.
Introduction
Object level detection device is a new model which helps to find the height of
the person using sensors. The main component of the device is Ultrasonic sensor, it
helps us to calculate the distance. This sensor is attached to a scale. We need to put
the scale on head and it calculates our height and shows the output on our mobile.
Also, this device can be used in various applications like it can be used as anti-theft
alarm and even helps in parking a car. These all activities can just be performed just
in one click and the interesting part is, it is a portable wireless device which shows
its reading in mobile
Ease of Use
A. Placing the scale
The scale has two ends, one end is free and the other contains the sensor. First
stand near the wall and hold the scale on your head then see to that the free end of
the scale is attached to the wall and the sensor is facing the ground so that you could
get the readings and also make sure that there are no obstacles in between the sensor
and the ground so that you will get the correct readings.
B. Maintaining the Integrity of the Specifications
The scale is being used as support for the ultrasonic sensor. Some sarcastic
comments are programmed in the Arduino regarding our heights. So while putting
the scale over your head see to that it is straight and also see to that there are no
obstacles in between the sensor and the ground. Please do not move the scale while
calculating your height.
Design
Before we go into the design of device lets learn about its essential
components. The essential components of the device are ultrasonic sensor, Bluetooth
module, Arduino(Nano).
C. Ultrasonic sensor
There are several ways to calculate distance. In recent times ultrasonic sensor
has been applied with considerable success in the field of Engineering and it also
used in light industry, agriculture and power industry.

Other USES:
Ultrasonic distance measurement applications:
1.used to measure obstacle distance
2.Used in terrain monitoring robots
3.Automatic parking sensors
4.Speed check in roads
5.Fixed unit installed in check booths that can click pictures of over speeding
vehicles.
6.Radars for robot
D. Bluetooth module
HC‐05 module is a straightforward to use Bluetooth SPP (Serial Port Protocol)
module, designed for clear wireless serial association setup. The HC-05 Bluetooth
Module are often utilized in a Master or Slave configuration, creating it a good
answer for wireless communication. This port Bluetooth module is absolutely
qualified Bluetooth V2.0+EDR (Enhanced knowledge Rate) 3Mbps Modulation
with complete a pair of.4GHz radio transceiver and baseband. It uses CSR Blue core
04‐External single chip Bluetooth system with CMOS technology and with AFH
(Adaptive Frequency Hopping Feature). The main of Bluetooth module is that
it(device) can be made wireless means the device is portable.
E. Arduino
Microcontroller will act as the brain of the robot. The robot movement will be
decided by the microcontroller. In this system we will be using microcontroller
named Arduino UNO which contains ATMEGA 328P microcontroller chip. The
microcontroller is programmed with the help of the Embedded C programming.
Arduino has it own programming burnt in its Read Only Memory (ROM). C-
program is very easy to implement for programming the Arduino Nano. All of the
works going in today world is done on this device. It acts as a platform for all the
newly upcoming technical development. IOT is a perfect example for it.

F. HOW TO OPERATE HITFIT:


1.Initially burn or upload the program in the Arduino software
2.Now give the connections as per the circuit diagram
3.While giving the connections make sure the VCC of ultrasonic module is
connected to the 5V battery.

4.Place the HITFIT device over the top of your head and just enter ‘1 ‘which sends

the message via Bluetooth module to the HITFIT and thereby u can see your height

in ‘feet’.

SOFTWARE REQUIREMENTS:
ARDUINO software
Hardware:
Bread Board
Bluetooth module HC-05
Batteries
Few male to male jumper pins
Ultrasonic sensor SR04
Smart phone

FUTURE SCOPE:
The range can be considerably increased by using a high power drive circuit
1.Using temperature compensation , it can used over wide range temperature
2.The resolution of the measurement can be improved by incorporating phase drift
method along with time of flight method.
What is ARDUINO and why ARDUINO?
An open source , prototyping platform , easy to ude hardware and software ,
works according to the instructions of the microcontroller to the board
Inexpensive , cross platform , simple clear programming environment , open
source – extensible hardware and software
Equations:
Now that we've the time, we are able to use the equation :

speed = distance/time, however we are going to create it time x

speed = distance as a result of we've the speed.


What speed can we have?
The speed of sound, of course! The speed of sound is close to 340 meters per
second, however since the pulseIn() perform returns the time in microseconds, we
are going to ought to have a speed in microseconds conjointly, that is simple to
induce. a fast Google rummage around for "speed of sound in centi-meters per
microsecond" can say that it's .0343 c/μS. We 'll do the mathematics, however
looking out it's easier. Anyway, thereupon data, we are able to calculate the distance!
simply multiply the length by .0343 and also the divide it by 2(Because the sound
waves trip the article AND back). we are going to store that within the distance
variable.
Conclusion:
The objective of this project was to design and implement a portable height
measurement device which is of 95% accuracy.As described in this report a device
is developed that can calculate the height or even any short distance between two
objects
With respect to ultrasonic sensor requirements ;
1. the device can measure height almost accurately.
2.This device has the capability to interact with other peripheral if used as a
secondary device.
3.This can also communicate with PC through serial port.
4. This is the lowest and cheap height measuring device u could have witnessed
that shows your height digitaly , and a efficient type of non contacting distance type
measurements.

FIGURES
CODE
#include<SoftwareSerial.h>
SoftwareSerial rxtx(8,9); //9-->tx 8---
>rx

const float trigPin =4 ;


const float echoPin =7 ;
int data;

void setup()
{
rxtx.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}

void loop()
{
float duration, distance;
if(rxtx.available()>0)
{
rxtx.println("Enter the Input");
rxtx.println("1) GARBAGE LEVEL
DETECTION");
rxtx.println("2) CAR PARKING");
rxtx.println("3) HEIGHT");
data=rxtx.read();
rxtx.println(" ");
if(data=='1')
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.41;
rxtx.print(distance);
rxtx.println("cm");

delay(500);
if(distance < 3)
{
rxtx.println("WARNING");
rxtx.println("GARBAGE FULL");
}
else
{
rxtx.println("NO PROBLEM");
rxtx.println("MINIMUM
GARBAGE");
}
delay(500);
}
if(data=='2')
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.41;
rxtx.print(distance);
rxtx.println("cm");
delay(500);
if(distance<3)
{
rxtx.println("WARNING") ;
rxtx.println("BE CARE-FULL");;
}
else
{
rxtx.println("YOU ARE SAFE");
rxtx.println("GO A HEAD") ;
}
delay(1000);
}
if (data=='3')
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.41;
rxtx.println("YOUR HEIGHT IS ");
rxtx.print(distance);
rxtx.println("cm");
delay(1000);
}
else
{
rxtx.println("Either Send 1 or 2 or
3");
}
delay(500);
}
}

You might also like