Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ELEC 1 0 0 Introduction to Electrical and Electronics Engineering Fall 2 0 2 3 Date: January 5 , 2 0 2 4 Due Date:

ELEC100 Introduction to Electrical and Electronics Engineering
Fall 2023
Date: January 5,2024
Due Date: January 12,11:59 P.M.[Late submissions are NOT allowed]
[Please complete all circuit implementations and code writing on Tinkercad, and submit the pictures of the circuits you implemented and all the Arduino codes in a pdf file on Blackboard.]
ARDUINO HOMEWORK 2
Question 1[50 pts]:
Dsign a project using an Arduino, a photoresistor sensor, two LEDs (green and red), two 100 resistors, and one 10K resistor in Tinkercad. The project should function as follows:
a) If the luminosity detected by the photoresistor is over the threshold of 100, the red LED will be illuminated. Otherwise, the green LED will be illuminated.
(Include your circuit design and code)
b) Additionally, add a code for serial printing to display the readings of sensor in the serial monitoring screen.
(Include the code and a screenshot of the serial monitoring output)
Question 2[50 pts]:
Create an Arduino program that utilizes ultrasonic sensors to measure distance. If the measured distance is less than 60cm, turn on a red LED and print "Too close." If the distance falls within the range of 60cm to 200cm, turn on a yellow LED and print "Warning." If the distance exceeds 200cm, turn on a green LED and print "Safe."
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions