Microprocessor Pup Exp 4
Microprocessor Pup Exp 4
COLLEGE OF ENGINEERING
Department of Computer Engineering
Sta. Mesa, Manila
BSCpE 4-4
Monday/Tuesday 1:30PM 4:30PM/3:00PM-6:00PM
COLLEGE OF ENGINEERING
Department of Computer Engineering
Sta. Mesa, Manila
BSCpE 4-4
Monday/Tuesday 1:30PM 4:30PM/3:00PM-6:00PM
JAMLANG, TEEJAY Y.
BSCpE 4-4
Monday/Tuesday 1:30PM 4:30PM/3:00PM-6:00PM
BSCpE 4-4
Monday/Tuesday 1:30PM 4:30PM/3:00PM-6:00PM
BSCpE 4-4
Monday/Tuesday 1:30PM 4:30PM/3:00PM-6:00PM
II.
III.
Theoretical Framework
Properties of Pins Configured as INPUT
Arduino pins default to inputs, so they don't need to be explicitly declared as inputs
with pinMode() when you're using them as inputs. Pins configured this way are said
to be in a high-impedance state. Input pins make extremely small demands on the
circuit that they are sampling, equivalent to a series resistor of 100 megohm in front
of the pin. This means that it takes very little current to move the input pin from one
state to another, and can make the pins useful for such tasks as implementing a
capacitive touch sensor, reading an LED as a photodiode, or reading an analog sensor
with a scheme such as RCTime.
Properties of Pins Configured as OUTPUT
Pins configured as OUTPUT with pinMode() are said to be in a low-impedance state.
This means that they can provide a substantial amount of current to other circuits.
Atmega pins can source (provide positive current) or sink (provide negative current)
up to 40 mA (milliamps) of current to other devices/circuits. This is enough current to
brightly light up an LED (don't forget the series resistor), or run many sensors, for
example, but not enough current to run most relays, solenoids, or motors.
List of Materials/Equipment
1 Arduino Uno
1 Breadboard
2 Tact Switch
4 Common Anode Seven-Segment Display
8 220 Ohms Resistor
4 Shift Registers
Connecting Wires
IV.
Procedures/Methodology
1. Assemble the circuits given in this problem:
Problem 1: Design an interfacing circuit on your breadboard that displays the 2
digit counter from 0-15 that can be incrementing or decrementing based on the
button switches.Write a sketch that will display the characters in the 7-segment
display using shift registers.
Problem 2: Design an interfacing circuit on your breadboard that displays the 2
digit counter from 0-15 that can be incrementing or decrementing based on the
button switches.Write a sketch that will display the characters in the 7-segment
display using shift registers where the starting number will be given by the user in
the serial console.
Problem 3: Design an interfacing circuit on your breadboard that displays the 1
digit counter which value is also the value of the time where the led is on .Write a
sketch that is similar to a traffic light system and will display the characters in the
7-segment display using shift registers.
Problem 4: Design an interfacing circuit on your breadboard that displays the
word hello and bye in a marquee. Which is controlled by 2 button switch or 2
sensors .Write a sketch that is similar to a the characters in the 7-segment display
using shift registers.
2. Write a sketch for each of the following problems
V.
Experimental Circuit/Setup
PROBLEM 1:
PROBLEM 2:
PROBLEM 3:
PROBLEM 4:
VI.
Analysis/ Discussion/ Problems Encountered/Solutions
We encountered the lack of pins to use in the Arduino and the shift registers and the solution we
made is to use shift registers to control another shift registers.
VII.
We can use shift registers to extend the use of the limited pins in Arduino. We recommend to
fully understand how the shift register works to able to make a sketch successful and working.