Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Uesing the same pins numbers in the Schematic diagram provided Write an Arduino Uno program according to the following : 1 . If Slide switch

Uesing the same pins numbers in the Schematic diagram provided Write an Arduino Uno program according to the following :
1. 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.
2. 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 100 cm 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 50 cm 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.
Note: Follow the types of components provided for more guidance.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

Students also viewed these Databases questions

Question

Understand the department managers key role in employee retention

Answered: 1 week ago