You are on page 1of 4

Assignment 5-Arduino 5%

Step Module percentage Score (out of 100%)


Assignment 5 Arduino 5%

Semester: Fall Year: 2021


Course Title: Transforming ideas into innovation II
Course Code: ENGR132
Instructor:

STUDENT NAME STUDENT ID Class

Signature of Evaluator: _
Academic Honesty Statement:
IMPORTANT! Please carefully read and sign the Academic Honesty Statement, below. You will
not receive credit for this lab experiment unless this statement is signed in the presence of your
lab instructor.

“In signing this statement, I hereby certify that the work on this Assignment is my own and
that I have not copied the work of any other student (past or present) while completing this
Assignment. I understand that if I fail to honor this agreement, I will receive a score of ZERO
for this Assignment and be subject to possible disciplinary action.”
Name: ID: Section:
Signature: Date:
Regulations:

 Plagiarism: In case of plagiarism, you will receive an email to resubmit your work,
with the following rule:
o Resubmission within 24h from email notification: 40% deduction
o Resubmission within 48h from email notification: 60% deduction.
o Failing to resubmit within two days after notification means that the
assessment will be awarded 0.
 Late Submission: After the submission deadline, students have a maximum 2-days
grace period for late submissions with the following penalty (excluding Fridays):
o first day, within 24h from the deadline, 40% deduction
o Second day, within 48h from the deadline, 60% deduction.
o Failing to submit within two days after notification means that the assessment
will be awarded 0.
 Wrong Submission: Students have the full responsibility of:
o submitting the required documents within the deadline
o verifying that the correct files are submitted
o Verifying that the submitted files are not corrupted.
o Resubmission of student’s work falls under late submission policy.
Question (1) [50 points]

You are requested to build an Arduino temperature monitoring circuit. The circuit
consists of a LM35 temperature sensor and three LEDs, each of which is connected
with a resistor in series. Arduino will receive the temperature value and check; if
the temperature is greater than 77 Fahrenheit (°F), make the LED_1 blink every
2.2 seconds (2.2 seconds ON, 2.2 seconds OFF). If the temperature is less than
64.4 °F, make LED_2 blink every 1.55 seconds (1.55 seconds ON, 1.55 seconds
OFF). Otherwise, LED_3 blink every 2.75 seconds (2.75 seconds ON, 2.75
seconds OFF). Complete the wiring of the circuit below. Note that you can use any
suitable pins in your wiring.
Question (2) [50 points]

Consider the Arduino example described earlier in Question 1. Write the sequence
of code to read the temperature value and you display the temperature (in
Fahrenheit) on your monitor (computer). Check if the temperature is greater than
77 Fahrenheit (°F), make the LED_1 blink every 2.2 seconds (2.2 seconds ON, 2.2
seconds OFF). If the temperature is less than 64.4 °F, make LED_2 blink every
1.55 seconds (1.55 seconds ON, 1.55 seconds OFF). Otherwise, LED_3 blink
every 2.75 seconds (2.75 seconds ON, 2.75 seconds OFF). To convert temperatures
from degrees Celsius to Fahrenheit use the following formula: TemperatureF =
TemperatureC*(9/5) + 32.

You might also like