0% found this document useful (0 votes)
18 views3 pages

Lab01-2P - Analog Signals - AD2021

The document provides instructions for a lab assignment to build a circuit that reads temperature using an analog sensor and controls LEDs. Students are asked to design the circuit, write Arduino code to read the sensor and control the LEDs based on temperature thresholds, build the circuit in Tinkercad, and record a video demonstrating its operation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

Lab01-2P - Analog Signals - AD2021

The document provides instructions for a lab assignment to build a circuit that reads temperature using an analog sensor and controls LEDs. Students are asked to design the circuit, write Arduino code to read the sensor and control the LEDs based on temperature thresholds, build the circuit in Tinkercad, and record a video demonstrating its operation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Science and

Mechatronics Department
Electrical and Electronics Engineering

Partial 2 – Lab assignment 1: Analog Signals


NAME: ___________________________________________ ID: ____________________
NAME: ___________________________________________ ID: ____________________
NAME: ___________________________________________ ID: ____________________
NAME: ___________________________________________ ID: ____________________

INSTRUCTIONS: Work in groups on this assignment. Whenever asked, write your steps, including formulas diagrams and calculations,
as well as the corresponding units in the final answers, otherwise your work will not be considered. DEADLINE: see in Canvas.

ATTENTION! Points will be deducted in the following situations:

a) If procedure is not included in the required situations (analysis and calculations)


b) If electric diagrams are not included (when required)
c) If COMPLETE data (name, ID, date, etc.) is not included above
d) If corresponding units are not included in the answers
e) If pictures (screenshots or images) are not shown clearly (as a rule of thumb, text in the pictures must have the same size
as the text in the rest of the document)

OBJECTIVE: to implement a solution that handles analog (and digital) signals


Background (15 pts.)
Answer the following questions:
1. What is an analog signal?

2. What is the main difference between an analog and a digital signal?

3. In the Arduino Uno board, what pins can be used as analog inputs? Search for a picture and paste it here:

4. What is the instruction to read the current value of an analog pin? (write the single instruction)

5. Write the instruction to read the analog value at analog pin 3 (single instruction):

6. In Arduino Uno, what is the value that the analogRead() function returns? Explain.

7. In order to get the actual, real value of the voltage at a given analog pin, what conversion must be used?
Write the corresponding formula:

1 Roberto Hernández – [email protected]


Computer Science and
Mechatronics Department
Electrical and Electronics Engineering

Problem statement
You are asked to design and implement a circuit that reads the current temperature in the environment, and
turns on an LED as a red flag to notify that the temperature has reached 30 oC, and to turn on a green LED when
the temperature drops below 20 oC. In any other case, both lights must remain off.
For this, there are many sensors that you can use, such as the LM35 or any of the TMP35-37 series. In this case,
we have the TMP36 available, which has a linear response, returning increments of 10mV per oC, and works in
the range from −40°𝐶 to +125°𝐶. More particularly, the relationship between the output voltage in this sensor
and the corresponding measured temperature is given by:
𝑇
𝑣= + 0.5
100
Where 𝑣 is the voltage returned from the sensor (in volts) and 𝑇 is the sensed temperature (in oC).
Design
(5 pts.) In order to accomplish the required tasks, your system will have:
How many analog inputs? ___
How many digital inputs? ___
How many digital outputs? ___
What is the TMP36 sensor? Write a very brief description, and paste a picture of the physical device and a
picture of its pinout:

In Arduino, build a sketch to do each the following:

• Read the signal from the TMP36 sensor


• Convert the signal to voltage
• Convert that voltage to temperature
• Print in the Serial Monitor the voltage from the sensor, and the corresponding temperature
• Compare the temperature against the given limits, and turn the corresponding LEDs accordingly.
Paste your Arduino sketch here (PLEASE use http://hilite.me/ to format your code, otherwise it will not be
considered). Code (15 pts.):

2 Roberto Hernández – [email protected]


Computer Science and
Mechatronics Department
Electrical and Electronics Engineering

Implementation
Build and test your system in Tinkercad and paste a screenshot of the circuit (35 pts.):

(25 pts.) Record a short video where you show the physical system working, showing every significant detail
(circuit, serial monitor, temperature readings, etc.). For that, please use the Screencast-o-matic recorder, or any
other tool that does the job (you should record both the screen and your voice). The video should be no less
than 1 minute and 2 min max in length. Paste the link to your video (YouTube or similar):

Part 3 – Conclusions. To finish, draw your conclusions on the project, including complications that you may have
found and how you solved them. Also, elaborate on general and particular aspects of both analog and digital
signals and how they are found in your system.
(5 pts.) Conclusions and comments:

3 Roberto Hernández – [email protected]

You might also like