Question: Components required: , 1 LCD 1 6 2 1 2 C [ for display ] ( Select the Type after inserting I 2 C LCD
Components required:
LCD
for display
Select the Type after inserting IC LCD in simulation: PCFbased
Ultrasonic distance sensor HCSRfor detection of Object distance
RGB LED for Light indication of Gas Hazard
Ohm resistors
for Light indication of Gas Hazard
Ohm
for RGB LED pins
LD IC
for Motor driving
DC Motor
for Movement
Slide switch
for switching ONOFF the system
Arduino UNO board
board for controlling
Schematic diaaram:
Functionality of System
write Program according to this:
If Slide switch is Low then DC Motor should stop, RGB LED should be Off and Ultrasonic should not be active. Display on first row of LCD "Rest".
If slide switch is HIGH then:
a Input and calculate the distance of Object from ultrasonic sensor in CM
b If distance is more than then:
i Rotate motor in clockwise direction.
ii Switch on the RGB led in green color.
iii. Display on the first row of LCD "Away".
iv Display on row the value of distance in
c Else If distance is more than the:
i Rotate motor in Counter clockwise direction.
ii Switch on the RGB led in Blue color.
iii. Display on the first row of LCD "Near".
iv Display on row the value of distance in
d Else:
i Stop the motor movement.
ii Display on the first row of LCD "Stop".
iii. Toggle the RGB led colors from red to blue to green with a delay of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
