ENGR 351 2020 Fall
HW 4
Name: Nicolas Llarena Email:
Njllarenaarias@fortlewis.edu
1. HW4 - LCDs
2. Introduction The
purpose of this lab is to get familiar with LCDs And Sensors while
working with Arduino UNO. We will learn how to output data to an LCD.
We will also work with different temperature and humidity sensors.
Other tasks include learning how to use the 328P MCU as a standalonoe
MCU without the Arduino UNO. We will use everything learned in this and
past homeworks to make a standalone temperture meter displayed on an
SSD.
3. Materials
Materials
Quantity
Arduino UNO
1
Bread Board
1
10k Ohm Resistor
3
Thermistor
1
tweezers
1
330Ohm Resistor
5
DHT11 Sensor
1
LED
3
jumper wires
20
22 pF Capacitor
2
Oscillator
1
Pushbutton
1
LCD
1
4-digit SSD
1
Shifter Register
1
4. Results
Task 1&2
Figure
1. LCD displaying "Hello, World!" and on the second line, the device counts to 5 and then resets to count again.
Task
3
Figure 2. LCD displaying
scrolling text "Durango". When the text reaches the middle of the
screen, it blinks three times and then continues scrolling. done with
the 'lcd.clear()' command.
Task 4
Figure 3. Showing the room temperature on the LCD by using a thermistor by converting resistance to temperature.
Task
5
Figure 4. Displaying
temperature and humidity of the room by using LCD and a DHT11 sensor.
Sensor was blown to show change in humidity and temperature.
Task 6
Figure 5. Using a TMP36 (integrated circuit temperature sensor) to display room temperature.
Task 7
Figure 6. Displaying
codes for each key pressed on the arduino kit remote. remote worked
with almost no problems. I had no access to the robot car remote at the
time, but the remote used gave me no problems.
Task 8
Figure 7. Using the standalone 328p MCU to blink an LED on a breadboard without having to use the Arduino UNO.
Task 9
Figure 8. Using the standalone 328p
MCU, 4-digit SSD, Shift Register, and DHT11 to display room temperature
and humidity on the SSD. (could not make it work, code might not be
sufficient)
Discussion Some parts of this homework
were challenging. LCDs in general are easy and fun to work with, there
are many projects that can be done easily with LCDs. I
ran into some problems since my Arduino kit came with no thermistor or
DHT11 so I had to borrow them from other classmates. I also only had
one capacitor so I had to borrow that as well. Other than those issues,
everything worked well until task 9. Task 9 was the most challenging,
the wiring was not too bad, the issue I ran into was figuring out how
to code everything together to work with the 4-digit SSD. The
LCD would have been easier to code. If I had all the components in my
kit, I would have had more time to debug my code for task 9, next time
I will make sure to check whether I have all the necessary components.
Overall, this homework taught me a lot of new things that I will be able to apply in future projects.