Question: Components required: , 1 LCD 1 6 2 1 2 C [ for display ] ( Select the Type after inserting I 2 C LCD

Components required:
,1 LCD 16212C
[for display]
(Select the Type after inserting I2C LCD in simulation: PCF8574-based)
1 Ultrasonic distance sensor HC-SR04[for detection of Object distance]
1 RGB LED [for Light indication of Gas Hazard]
3,470 Ohm resistors
[for Light indication of Gas Hazard]
3,470 Ohm
[for RGB LED pins]
1 L293D IC
[for Motor driving]
1 DC Motor
[for Movement]
1 Slide switch
[for switching ON/OFF the system]
1 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 100cm 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 2nd row the value of distance in cm.
c. Else If distance is more than 50cm 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 2nd row the value of distance in cm.
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 300ms.
 Components required: ,1 LCD 16212C [for display] (Select the Type after

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!