Sie sind auf Seite 1von 20

SONAR

(Sound Navigation and Ranging)


Sound Navigation and Ranging
• technique that uses sound propagation to navigate
• first proposed as a means of detecting icebergs
• Interest in sonar was heightened by the threat posed by
submarine warfare in World War I
Active Sonar System
Application
Ultrasonic sensors
can measure the distance to a
wide range of objects regardless of
shape, color or surface texture
able to measure an approaching or
receding object
Application
Benefits of the Project
useful in to leveling the water
tanks
alert the car if it bump while
reverse
can also help disable person like
the deaf and blind
COMPONENTS OF THE SYSTEM

RGB
A rectifier that will emit
different colors by
compounding the three
basic colors red, green,
and blue
COMPONENTS OF THE SYSTEM

ULTRASONIC (HC-SR04)
It emits an ultrasound at
40 000 Hz which travels
through the air and if there
is an object or obstacle on
its path It will bounce back
to the module
COMPONENTS OF THE SYSTEM

PIEZO BUZZER
produces sound based on
reverse of the piezoelectric
effect
can be used alert a user of
an event corresponding to
a switching action, counter
signal or sensor input
COMPONENTS OF THE SYSTEM

I2C LCD
Used to display texts
and numbers
Circuit Connection

RGB
Circuit Connection

LCD
Circuit Connection

Buzzer
Circuit Connection

Ultrasonic Sensor
OVERALL SCHEMATIC CIRCUIT

CODING
Language Reference
analogWrite()
 Writes an analog value to a pin
Long
 extended size variables for number storage
Language Reference
#define
 allows the programmer to give a name to a
constant value before the program is compiled
Language Reference
delay()
 Pauses the program for the amount of time (in
miliseconds)
Serial.begin()
 Sets the data rate in bits per second (baud) for serial data
transmission
Language Reference
Serial.print()
 Prints data to the serial port as human-readable
ASCII text
Libraries
Pre set codes from the Libraries to be use:
NewPing : LiquidCrystal_I2c:
NewPing label(TRIGGER PIN, ECHOPIN, lcd.init(); to run the LCD
MAX DISTANCE);to define the input and lcd.backlight(); to turn on the backlight of
output pin .also indicate the label of the the LCD
new ping lcd.print(); to print in the LCD

ping_cm(): to measure distance by


centimeter
CODING

Das könnte Ihnen auch gefallen