Professional Documents
Culture Documents
Informe Guia 4 Lab Micros
Informe Guia 4 Lab Micros
0
MECHATRONICS ENGINEERING PROGRAM Period 2022-1
Dynamic visualization
Espejo David
{Est.david.espejo}@unimilitar.edu.co
Profesor: Puerto Jorje
Resumen—In this practice we wanted to configure the input row and column are connected through the pins outside –
and output pins of the micro controlled system to perform a pin R1-R4 as labeled beside control the rows, when L1-
dynamic display of the output signals. To comply with this, a L4, the columns. A 4×4 matrix keypad consisting of micro
calculator was developed using a matrix keyboard for data entry
and 5 multiplexed screens for data output. Finally, the reasons switch buttons.How Keypads Work. Pressing a button closes
why a membrane keyboard is not the best option for this type the switch between a column and a row trace, allowing current
of application are given, and all the advantages offered by the to flow between a column pin and a row pin.
use of variables such as flags are also highlighted.
Palabras clave—Keyboard, display, flag, variables, conversion.
II-B. Multiplexed 7-segment display
By multiplexing seven-segment displays the number of pins
I. I NTRODUCCI ÓN required to drive the displays can be reduced. In the scheme of
Figure 4 the segments are driven high by the micro-controller.
PF4
PF3
PF2
PF1
PF0
Figura 1. Display multiplexing
Start
Configure a cycle that move by 5 VectorF positions and assign every value to
GPIOD->ODR Interruptions
Yes
in the figure 3 it is possible to observe how the rows and position "r" in port E and Vector_PruebaEn at
its position r in port F
Yes
obtained by providing the following codes for each operation: row is 3 a char variable.
No
The first position of
Vector_Numero_1 is
No equal to numero
Sum 9802
Subtraction 9803 While a
colum button is Identificador < 2
Multiplication 9804 pressed
No
Tangent 9808
Figura 6. Column 1,2,3 interrupt
In the figure 5 you can also see how when you press a button
that is an operation, the number is stored at that moment in
a separate variable and the first variable is reset to be able to
receive another number.
And in this way in how numbers can be read, as seen in
the figure or know the desired operations.
Start interruption A, B,
C, D
No
No
No
Finish
No
Become
numero_1 No
and 2 to
double
No No
No
No
V. A NALYSIS OF RESULTS
Sometimes when one button is press just one time, is
read twice
Sometimes when one number is entered through a ope-
ration button, the number is not save
The multiplexing display was successful
The results are correct
VI. C ONCLUSIONS
A calculator has an error range so low that it can be
taken as zero, it must be such a symmetrical process
that each possible case, indeterminacy or contradiction
must already be foreseen and solved by a generality
specifically for each problem to be dealt with.
Display multiplexing reduces the amount of hardware but
keep in mind that this does overloading the software
The keyboard quality is not sufficient and sometimes read
twice the number.
R EFERENCIAS
[1] Rubasinghe AP. Connect a 4X3 matrix keyboard to a microcontroller
using two I/O pins. EDN Europe. 2013;6:44-45. Accessed March 17,
2022.
[2] Lin, Z & Shi, X 2016, ‘4 × 4 matrix keyboard interface circuit achieved
by single port lines’, Electronics Letters (Wiley-Blackwell), vol. 52, no.
11, pp. 803–805, viewed 17 March 2022
[3] Frenzel, Louis E., Jr. 2020. “APPENDIX B: Solutions to Design Projects.”
Chap. B in Practical Electronic Design for Experimenters. 1st ed. New
York: McGraw-Hill Education. viewed 17 March 2022
LABORATORY PRACTICE REPORT Version 1.0
MECHATRONICS ENGINEERING PROGRAM Period 2022-1
VII. A NNEXES
Figura 10. Dynamic Display of number 9801 with low speeder, number 8
LABORATORY PRACTICE REPORT Version 1.0
MECHATRONICS ENGINEERING PROGRAM Period 2022-1
Figura 11. Dynamic Display of number 9801 with low speeder, number 0