Lab01-2P - Analog Signals - AD2021
Lab01-2P - Analog Signals - AD2021
Mechatronics Department
Electrical and Electronics Engineering
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.
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:
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:
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: