ENGR351 Lab 2020 Fall
Lab 4
Name: Nicolas Llarena Email:
Njllarenaarias@fortlewis.edu
1. Lab 3 - LEDs and SSDs
2. Introduction
The purpose of this Homework is to get familiar with LEDs (light emiting
diode) and SSDs (seven segment display). In the LED tutorial we will
learn how to program an ARDUINO together with LEDs to output specific
blinking patterns. In the SSD tutorial we will learn how to use single
and multiple SSD together with an ARDUINO. we will also a use shift
register and a decoder to facilitate this process.
3. Materials
Materials
Quantity
74HC595N shift register
1
2k Ohm Resistor
1
330 Ohm Resistor
7
single SSD
1
tweezers
1
BreadBoard
1
ARDUINO UNO
1
Jumper Wires
20
4. Results
Task 1- LEDs
Figure 1. Blinking the on-board
LED.
Figure 2. Blinking an external
LED.
Figure 3. Running LEDs shown on
the breadboard with code provided.
Figure 4. LED turning on when
pushbutton is pressed and turned off when released.
Figure 5. LED turning off when
pushbutton is pressed and turned on when released.
Figure 6. First video shows a
simple circuit where the pushbutton is pushed to make the LED blink.
The second video is modified to have the LED blinking four times per
second until the pushbutton is pressed, making the LED blink at one
time a second.
Task 2- SSDs
Figure 7. One SSD powered by
individual wires, figures show every digit from 0-9 displayed by
disconnecting the required wires manually.
Figure 8. SSD powered by three
wires and a decoder. Code shows the required pins for the decoder to
work correctly by converting 3-bit inputs into 8-bit.
Figure 9. Using a shift
register to change the state of eight LEDs so it appears as if they are
shifting.
Figure 10. Displaying decimal
numbers to an SSD by using a shift register by using MSBFIRST.
Figure 11. Displaying decimal
numbers to an SSD by using a shift register by using LSBFIRST.
Figure 12. Displaying '2019' on a multi-digit SSD by using LSBFIRST and a shift register.
Discussion
This was a challenging Homework, The tutorials provide enough
information to get us going while at the same time it requires us to
find the specific details that make the program or circuit work
correctly. LEDs are very common and important since they provide us
with data and other benefits SSDs for example have LEDs on them. This
is why it is important to know how they work and how to work with them.
SSDs are also important. in today's industry many technologies are
developed using SSDs from digital clocks to microwave ovens. since they
are so common and useful, it is important to know how to use them and
to learn how they work.