Control Systems.: J - Component Report
Control Systems.: J - Component Report
Control Systems.: 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
Place: Vellore
Date:01-11-2018
ACKNOWLEDGEMENTS
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.
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 :
FIGURES
CODE
#include<SoftwareSerial.h>
SoftwareSerial rxtx(8,9); //9-->tx 8---
>rx
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);
}
}