Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

Experiment 03 :
INTERFACING ANALOG INPUTS

Leader : • _____________________________ Rating :


c3

Members : • _____________________________ Date Performed : ____________

• _____________________________ Date Submitted : ____________

• _____________________________

• _____________________________

• _____________________________

❖ SCENARIOS

 SCENARIO 1 1

An Arduino program that will :


➢ simulate a simple count up timer. The display count values from 0 up to 9 using a seven segment
display (SSD).

Initial Configuration and Condition:


➢ the display value start at 0.
➢ transition between display is 1 second.
➢ when the display reached its maximum value of 9, the display value will go back to 0 and count up
again.

 SCENARIO 2 1
Additional Components :
• 2 pcs. Light Emitting Diode (LED 0 - 1)
• 1 pc. Light Dependent Resistor ( LDR )

An Arduino program that will :


➢ count the number of times a shadow is cast on the LDR. ( max value : 9 )
➢ turn ON LED 0 when minimum value is reached.
➢ turn ON LED 1 when maximum v….alue is reached.
➢ stop counting when maximum value is reached

Initial Configuration :
➢ the display value must at 0.
➢ LED 0 is ON
➢ LED 1 is OFF

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

 SCENARIO 3 1
Additional Component :
• 1 pc. toggle switch
• 1 pc. 10kΩ potentiometer

An Arduino program that has the following features :


➢ a switch state dependent counter that counts the number of times a shadow is cast on the LDR.
➢ when switch state is ON, the display will count up when a shadow is cast on the LDR.
➢ when switch state is OFF, the display will count down when a shadow is cast on the LDR.
➢ turn ON LED 0 when minimum value is reached. min : 0
➢ turn ON LED 1 when maximum value is reached. max : 9
➢ adaptive when the circuit is deployed to a different environment with different lighting source.

Initial Configuration :
➢ the display value start at 0.
➢ LED 0 state is ON.
➢ switch state is OFF.

❖ EQUIPMENTS and MATERIALS

Name Quantity Value Symbol Remarks

I/O Components
• LED 2 0.5 watts L0 – L1 ----
• Seven Segment Display 1 0.5 watts SSD1 Common Cathode
• LDR 1 ---- LDR1 5mm
• 10kΩ Potientiometer 1 10kΩ P1 ----
• Toggle Switch 1 ---- S1 Push to ON – Normally Open

Controllers and ICs


• Arduino Uno Board 1 --- --- ----
• 7447 Decoder 1 --- --- BCD Seven Segment Decoder

Others
• Breadboard 1 Full --- ---
• USB Data Cable 1 1m --- Type A Male to B Male
• Connecting Wires 30 10cm --- Male to Male

❖ HARDWARE CONNECTIONS

Arduino Board pins


• Digital Pins
• connected to
• connected to
• connected to
• connected to
• connected to
• Analog Pins
• connected to
• connected to

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

BCD Seven Segment Decoder ( 7447 )


• pin 1 connected to
• pin 2 connected to
• pin 3 connected to
• pin 4 connected to
• pin 5 connected to
• pin 6 connected to
• pin 7 connected to
• pin 8 connected to
• pin 9 connected to
• pin 10 connected to
• pin 11 connected to
• pin 12 connected to
• pin 13 connected to
• pin 14 connected to
• pin 15 connected to
• pin 16 connected to

❖ INITIAL SETUP CONDITION

❖ SCHEMATIC CIRCUIT DIAGRAM

*insert the schematic circuit diagram of SCENARIO 3 because it has all


the components used in this experiment.

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

❖ PICTORIAL CIRCUIT DIAGRAM

*insert the pictorial circuit diagram of SCENARIO 3 because it has all the
components used in this experiment.

❖ EXPERIMENT LINK LOCATION

Refer to the link below for the output experiment that can be simulated :

• <insert full link address here>

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

❖ SOURCE CODES

 SCENARIO 1 1
INITIAL SOURCE CODE ( SCENARIO 1 )

Experiment 03
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97
17 98
18 99
19 100
20 101
21 102
22 103
23 104
24 105
25 106
26 107
27 108
28 109
29 110
30 111
31 112
32 113
33 114
34 115
35 116

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

INITIAL SOURCE CODE ( SCENARIO 1 )

Experiment 1
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

 SCENARIO 2 1
INITIAL SOURCE CODE ( SCENARIO 2 )

Experiment 03
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97
17 98
18 99
19 100
20 101
21 102
22 103
23 104
24 105
25 106
26 107
27 108
28 109
29 110
30 111
31 112
32 113
33 114
34 115
35 116

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

INITIAL SOURCE CODE ( SCENARIO 2 )

Experiment 1
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

 SCENARIO 3 1
INITIAL SOURCE CODE ( SCENARIO 3 )

Experiment 03
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97
17 98
18 99
19 100
20 101
21 102
22 103
23 104
24 105
25 106
26 107
27 108
28 109
29 110
30 111
31 112
32 113
33 114
34 115
35 116

INITIAL SOURCE CODE ( SCENARIO 3 )

Submitted to : ENGR. RAFAEL A. VENTURA


NATIONAL UNIVERSITY MANILA MICROPROCESSOR SYSTEMS LABORATORY REPORT

Experiment 1
1 36
2 37
3 38
4 39
5 40
6 41
7 42
8 43
9 44
10 45
11 46
12 93
13 94
14 95
15 96
16 97
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

Submitted to : ENGR. RAFAEL A. VENTURA

You might also like