Professional Documents
Culture Documents
GAID - ECE18D Final Project Technical Report
GAID - ECE18D Final Project Technical Report
GAID - ECE18D Final Project Technical Report
College of Engineering
Electronics and Communications Department
In partial fulfillment of
ECE 18 Digital Electronics 1 Final Project
Technical Report
December 2022
TABLE OF CONTENTS
Pages
I. Introduction 1 - 10
● Background/Motivation of the Design
● Real Scenario for the Application
● Problem/Need
● Technical Narratives of the Purpose
● Functionality of the Logic Circuit
● Presentation of Input and Output Variables
● Description of the Input Conditions
● Design Flowchart
III. Implementation 17 - 23
● Different Circuit Implementations
of the Logic Circuit
● Simulations of Different Circuit
Implementations
● Best and Appropriate Design for
for Implementation
Communication has become one of the basic needs of the people. One
of the typical ways to get in touch with other is through widely used
smartphones. Based on a lot of experiences, the battery life of a smartphone
is the primary concern when it comes to the limit on its usage. Thus,
oftentimes even simple scenarios where an essential communication device
(mobile phone) are left charging at home most especially when in rush.
Circumstances wherein charging phones are played by the young members of
the family while charging without the adults knowing. Such circumstance is
an example of an external activity done on the phone while charging which
was considered as a primary cause of overheating of smartphone batteries
that eventually will damage the battery itself, shortening its battery health and
capacity to function efficiently (Jabin, 2022). Worst-case scenarios causes
too much and continuous heating of a Li-ion smartphone batteries leads to
fire hazards which is harmful to young users of this generation. Li-ion
smartphone batteries have a tendency to overheat, and can be damaged at
high voltages which can lead to thermal runaway and combustion causing fire
hazards (Clean Energy Institute, 2020).
Input Condition A
𝑡𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑡𝑠𝑒𝑡 (before the actual charging started) and the peak power
an optimized battery).
On the other hand, Input A is logic high (1) when 𝑃𝑖𝑛 ≥ 𝑃𝑝𝑒𝑎𝑘.
𝑃𝑖𝑛 𝑃𝑝𝑒𝑎𝑘 𝑃𝑖𝑛 < 𝑃𝑝𝑒𝑎𝑘 𝑃𝑖𝑛 = 𝑃𝑝𝑒𝑎𝑘 𝑃𝑖𝑛 > 𝑃𝑝𝑒𝑎𝑘
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
Fig. 1.4. 1-bit magnitude Comparator of Input A
Since, Input Condition A is logic high only when Pin = Ppeak OR Pin >
Ppeak, the Boolean Equation for Input Condition A is generated through
Sum-of-Products Method below:
Input Condition B
On the other hand, Input B is logic high (1) when 𝑡𝑐ℎ𝑎𝑟𝑔𝑖𝑛𝑔 ≥ 𝑡𝑠𝑒𝑡.
𝑡𝑐ℎ𝑎𝑟𝑔𝑖𝑛𝑔 𝑡𝑠𝑒𝑡 𝑡𝑐ℎ𝑎𝑟𝑔𝑖𝑛𝑔 < 𝑡𝑠𝑒𝑡 𝑡𝑐ℎ𝑎𝑟𝑔𝑖𝑛𝑔 = 𝑡𝑠𝑒𝑡 𝑡𝑐ℎ𝑎𝑟𝑔𝑖𝑛𝑔 > 𝑡𝑠𝑒𝑡
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
Fig. 1.5. 1-bit magnitude Comparator of Input B
Input Condition C
The figure below describes the flowchart of the design which is the
primary source of determining the logic state of the outputs in response to the
different combination of the three (3) input conditions.
Table 2.1.1 is the characteristic table of the three (3) input variables
(power percentage difference, time difference, and external activity done in
simultaneous while charging) that generates the two (2) outputs (Alarm
Reminder Generates Message to User, and Start-Stop Charging) of the design.
Inputs Outputs
A B C Y Z
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
Table 2.1.1. A general characteristic table of the Input and Output Variables
Table 2.1.2 is the design function table that considers the primary
inputs (Pin, Ppeak, t charging, and t set) that generate the function of Input
Conditions A and B together with Input Condition C. It also consists of two (2)
outputs: Alarm Reminder Generates Message to User (Y), and Start-Stop
Charging (Z).
0 0 0 0 0 1 1
0 0 0 0 1 1 1
0 0 0 1 0 0 0
0 0 0 1 1 1 1
0 0 1 0 0 0 0
0 0 1 0 1 1 1
0 0 1 1 0 1 1
0 0 1 1 1 1 1
0 1 0 0 0 1 0
0 1 0 0 1 1 0
0 1 0 1 0 0 0
0 1 0 1 1 0 0
0 1 1 0 0 1 0
0 1 1 0 1 1 0
0 1 1 1 0 1 0
0 1 1 1 1 1 0
1 0 0 0 0 1 1
1 0 0 0 1 1 1
1 0 0 1 0 0 0
1 0 0 1 1 1 1
1 0 1 0 0 1 1
1 0 1 0 1 1 1
1 0 1 1 0 1 1
1 0 1 1 1 1 1
1 1 0 0 0 1 1
1 1 0 0 1 1 1
1 1 0 1 0 0 0
1 1 0 1 1 1 1
1 1 1 0 0 1 1
1 1 1 0 1 1 1
1 1 1 1 0 1 1
1 1 1 1 1 1 1
The researcher used Karnaugh Map to simplify the General Truth Table
of the Input and Output Variables (depicted in Table 2.1.1) and generate its
boolean expression.
Inputs Outputs
A B C Y Z
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
Step 2: Reflect the Primary Inputs (Pin, Ppeak, t charging, and t set)
which generates the Input Variables A and B in the Boolean
Expression from the K-Map.
For Output Variable Y:
Y = AC + B
Y = ((Pin ⊙ Ppeak) + (Pin)(Ppeak’))C +
(tcharging ⊙ tset) + (tcharging)(tset’)
Z = AB + AC
Z = ((Pin ⊙ Ppeak) + (Pin)(Ppeak’))
((tcharging ⊙ tset) + (tcharging)(tset’)) +
((Pin ⊙ Ppeak) + (Pin)(Ppeak’))C
Step 3: Boolean Expressions of Table 2.1.1 and Table 2.1.2
The following are the design’s verilog hdl codes and algorithms are generated
from Quartus II 13.01sp used to program FPGA Cyclone V devices.
module \00_rawfinal (
Pin1,
Ppeak2,
Tcharging3,
Tset4,
C5,
Y6,
Z7
);
wire SYNTHESIZED_WIRE_14;
wire SYNTHESIZED_WIRE_15;
wire SYNTHESIZED_WIRE_5;
wire SYNTHESIZED_WIRE_6;
wire SYNTHESIZED_WIRE_7;
wire SYNTHESIZED_WIRE_8;
wire SYNTHESIZED_WIRE_9;
wire SYNTHESIZED_WIRE_10;
wire SYNTHESIZED_WIRE_11;
wire SYNTHESIZED_WIRE_12;
wire SYNTHESIZED_WIRE_13;
assignSYNTHESIZED_WIRE_8 = ~Ppeak2;
assignSYNTHESIZED_WIRE_9 = ~Tset4;
endmodule
ANALYSES OF THE CONSTRUCTED LOGIC CIRCUIT DESIGN
COMPARATOR A
COMPARATOR B
The researcher maximizes the use of this virtual laboratory amidst the
limitation of not having enough time and an FPGA at hand. Compilation
results are documented below.
Conclusion
The researcher makes use of Logic Circuit and Switching Theory Applications
to generate the outputs of this design. Logic Circuit and Switching Theory
Applications of Digital Electronics are used sufficiently to give solution to the existing
problem/need for development of current charging systems today. The logic circuit
design process of Automatic Start-Stop SmartPhone Timer-Charger with an Integrated
Alarm Reminder is well-represented through the Design Flowchart that generates the
output of the three (3) input conditions of the device. The function/characteristic
Table 2.1.2 shows clear relationship of the input combinations towards the
generation of the outputs of the circuit. Furthermore, the analysis of the design from
the schematic formulated with the Boolean Expression through Karnaugh Map
Method, shows series of successful compilations and simulations through Quartus II
and ModelSim output results. The verilog hdl output of the design shows the
compatibility of the verilog hdl codes necessary to program the FPGA Cyclone V
device and the truth table in the first part of the design process which identifies the
successful generation of verilog file of the design.
The output of the design were represented through LED (ON/OFF) activation
and does the working/functionatlity expected from the design/device.
Recommendations
Amidst the efforts of the researcher into further developing and improving the
design in the process, the Automatic Start-Stop Phone Timer-Charger with an
Integrated Alarm Reminder design still has a lot to improve and develop in terms of
the fundamentals most especially in studyingthoroghly the different charging
processes of various charging systems, how each of it are designed and how they
best works in terms of providing good power, and fast current to the charging battery
while preserving the battery health and condition. Furthermore, the researcher
recommends the analyzation of the results both virtually in Virtual Laboratories and
also through programming the design in physical FPGA’s.
Hence, whatever the researcher missed to include in this paper and all the
limitations experienced by the researcher from enough time of physical FPGA
programming of the design are recommended as an essential primary step in the
continuation and improvement of the design.
The researcher also uses studies of current charging systems and how it is
focused by most of the researchers is a potential aspect for development for future
needs. Whereas, the working and functionality of the circuit is also potential
application for other digital electronics application in the future.
List of References
Charging while using phone - is it really bad? Tech News Today. (2022, October 11).
Retrieved December 7, 2022, from
https://www.technewstoday.com/is-charging-while-using-phone-bad/
Gen Z statistics 2022: How many people are in gen Z? EarthWeb. (2022, November
25). Retrieved December 9, 2022, from https://earthweb.com/gen-z-statistics/
Belov, Dmitry & Yang, Mo-Hua. (2008). Failure mechanism of Li-ion battery at
overcharge conditions. Journal of Solid State Electrochemistry. 12. 885-894.
10.1007/s10008-007-0449-3.