Escolar Documentos
Profissional Documentos
Cultura Documentos
PROJECT DESIGN
System Architecture
The Nurse on duty residing on the nurse station would first input the dosage of the IV fluid in the web interface.
The web interface would read the dosage gathered from the nurse then transmits the data from the web to
the microcontroller via wired or wireless communication. Then the microcontroller processes the dosage and
transmits the required control to the motor which the motor drives the drop rate of the IV line. Then from the
IV lines Drip chamber a sensor installed would garner the drop rate and would sends the resistance to the
microcontroller. The microcontroller would process the data gathered, process the data for drop rate
calculation, and sends the drop rate data to the web interface. The web interface processes the received
data for the nurse to read the drop rate of the IV line.
12
Figure 3.2 Control and Monitoring System Block Diagram
There are three main operational areas that are needed to be complied with regards to the overall functionality
of the project design. And or as this would serve as the means to comply to achieve the proponents stated
objectives.
Wireless
Control
Web System transmission
System
System
13
Organizational Chart of the Project Design
The figure below shows the hierarchal system of the Design. In which mainly there are two variations of the
design one mainly on using Infrared and the other one is for the Image processing. Each Design options has
three subdivisions for the communication system, power converter system, Control System, and the remote
system.
The Central Monitoring for Dextrose main purpose is determine the drop rate that passes through the primary
IV tubing. Having those its design could be met using two variations of design. One is by Infrared Detection
and the other one is by Image detection.
14
Hardware Design
In this design the main objective is to attain the following objectives of the design:
The Whole design should be able to interconnect communication module, Pinching module,
Sensing Module, Power input, and with its corresponding microcontroller.
Design Option 1
In this design the system is capable of determining drops on the primary IV tubing by processing image data
gathered by the microcontroller. The processed data from the image will be processed to determine a drop
passing through the camera. Then the MCU passes the processed data to the web interface. The web
interface loads the data and also capable of controlling the system. The Figure below shows the connection
of the design per module.
GSM Module
GSM (Global System for Mobile communication) is a digital mobile telephony system that is widely used in
Europe and other parts of the world. GSM uses a variation of time division multiple access (TDMA) and is
the most widely used of the three digital wireless telephony technologies (TDMA, GSM, and CDMA). It is also
used to establish communication between a computer and a GSM-GPRS system. Global System for Mobile
communication (GSM) is an architecture used for mobile communication in most of the countries. Global
Packet Radio Service (GPRS) is an extension of GSM that enables higher data transmission rate.
15
The SIM card mounted GSM modem upon receiving digit command by SMS from any cell phone send that
data to the MC through serial communication. While the program is executed, the GSM modem receives
command ‘STOP’ to develop an output at the MC, the contact point of which are used to disable the ignition
switch.
PROs CONs
● Can swap out a phone just by ● Battery life seems a bit less on GSM.
removing/inserting SIM card and your ● Seems to cause more interference since it’s
address book goes with the SIM. not frequency hopping like CDMA.
● Phone must be at GSM Network Range.
● Worldwide (almost) roaming with some
● Signal Dependent
phones.
● Text messaging seems to be universal with
GSM, with CDMA it’s not.
● Lots of phone choices.
Table 3.1 PRO’s and CON’s for GSM Module
The type of interface used in GSM is digital air interface. The analogue voice signals are converted to digital
signals before transmission. Up to 8 MS, subscribers can be handled by the GSM RF carrier at a time. The
rate of transmission is 270 Kbps. The Gaussian minimum shift keying (GMSK) is used for transmitting the
digital signals. In GMSK , a phase change represents the change from a digital “1 ” or a “0 “,occurs over a
period of time. The addition of high frequency components to the spectrum is reduced. In GSMK, the phase
change is not constant and it is spread- out.
16
Figure 3.6 GSM Network Architecture
1. Mobile Station Mobile Handset - is one of the most complicated GSM device. It provides user
the access to the Network. Each handset has unique identity no. called IMEI
Subscriber Identity Module - SIM is a removable module goes into the mobile
handset. Each SIM has unique number called International Mobile Subscriber
Identity (IMSI). It has built in Microcomputer & memory into it. It contains the
ROM of 6 to 16KB,RAM of 128 to 256 bytes and EEPROM of 3 to 8KB
17
BSC has database for all of its BTS’s parameters.
BSC provides path from MS to MSC.
4. Mobile Switching MSC is heart of the entire network connecting fixed line network to Mobile
Centre (MSC) network.
MSC manages all call related functions and Billing information.
MSC is connected to HLR & VLR for subscriber identification & routing
incoming calls.
MSC capacity is in terms of no of subscribers.
MSC is connected to BSC at one end and Fixed Line network on other end.
Call Detail Record (CDR) is generated for each & every call in the MSC.
18
Short Message Service Centre: To provide text message service.
To send short messages from mobile to another mobile subscriber.
Messages can also be sent by Manual Terminal connected to SMSC
Switching System
In the switching system, the AC input (50/60Hz) which has been converted to DC is converted back to high-
frequency AC, permitting the use of smaller transformers and output capacitors, thus substantially reducing
the form factor. In the section on basic operations we stated that “the switching system, after rectifying and
smoothing of the input AC, operates in the same manner as a DC/DC converter,” and this is also precisely
true for the switching wall adapter. In terms of efficiency also, the switching permits the extraction exclusively
of the required power, for improved efficiency, and obviously, reduced heat dissipation.
19
Figure 3.8 PWM Module
The principles of voltage stepping down using a pulse-width modulation (PWM) system, which is a
representative control method. PWM is a control method that controls the on/off time ratio, which is the duty
cycle, by keeping the cycle (frequency) constant, and it is used in a variety of applications. PWM converts
DC voltage to a required duty-cycle AC by switching, and returns it to DC by rectifying it to produce a desire
the principles of voltage stepping down using a pulse-width modulation (PWM) system, which is a
representative control method. PWM is a control method that controls the on/off time ratio, which is the duty
cycle, by keeping the cycle (frequency) constant, and it is used in a variety of applications. PWM converts
DC voltage to a required duty-cycle AC by switching, and returns it to DC by rectifying it to produce a desired
DC voltage.
20
Design of Buck Converter
Output Voltage 5V
21
5𝑉
𝑀𝑎𝑥𝑖𝑚𝑢𝑚 𝐷𝑢𝑡𝑦 𝐶𝑦𝑐𝑙𝑒: 𝐷 = = 0.4630
220 𝑥 0.9
(𝑉𝑖𝑛−𝑉𝑜𝑢𝑡)𝑥 𝐷
𝐼𝑛𝑑𝑢𝑐𝑡𝑜𝑟 𝑅𝑖𝑝𝑝𝑙𝑒 𝐶𝑢𝑟𝑟𝑒𝑛𝑡: 𝛥 𝐼 L = 𝑓𝑠 𝑥 𝐿
(12−5)𝑥 0.4630
𝐼𝑛𝑑𝑢𝑐𝑡𝑜𝑟 𝑅𝑖𝑝𝑝𝑙𝑒 𝐶𝑢𝑟𝑟𝑒𝑛𝑡: 𝛥 𝐼 L = = 0.9821
150𝑘𝐻𝑧 𝑥 22µ𝐻
Data Sheet According to Figure
𝐼𝑚𝑎𝑥𝑜𝑢𝑡 = 3 𝐴 27 of Texas Instrument 2016
𝛥𝐼𝑙
𝐼𝑠𝑤 = + 𝐼𝑜𝑢𝑡 = 3.4910
2
Inductor Selection
Data Sheet According to Table 2
of Diodes incorporated
𝐿 = 22 µ𝐻 Data Sheet According to Table 2
of Diodes incorporated
ΔIL= estimated inductor ripple current
𝑃𝑑 = 𝐼𝑓 𝑥 𝑉𝑓 = 0.03
22
Output Voltage Setting
The current through the resistive divider needs to be at least 100 times as big as the feedback bias current.
𝐼𝑟1.2 = 50µ𝐴
𝑉𝑓𝑏 = 1.267 𝑉
𝑉𝑓𝑏
𝑅2 = = 25340
𝐼𝑟1.2
𝑉𝑜𝑢𝑡
𝑅1 = 𝑅2 𝑥 ( 𝑉𝑓𝑏 − 1) = 4374660
This adds less than 1% inaccuracy to the voltage measurement and for the calculation of the feedback
divider: the current into the feedback pin can be neglected. The current also can be a lot higher. The only
disadvantage of smaller resistor values is a higher power loss in the resistive divider, but the accuracy is
increased a little.
23
Input Capacitor Selection
The minimum value for the input capacitor is normally given in the data sheet. This minimum value is
necessary to stabilize the input voltage due to the peak current requirement of a switching power supply
𝛥𝐼𝑙
𝐶𝑜𝑢𝑡 = = 150nF
8 𝑥 𝑓𝑠 𝑥 𝑉𝑜𝑢𝑡
Often the selection of the output capacitor is not driven by the steady-state ripple, but by the output
transient response. The output voltage deviation is caused by the time it takes the inductor to catch up with
the increased or reduced output current needs
The following formula can be used to calculate the necessary output capacitance for a desired maximum
overshoot:
PROS CONS
24
Raspberry-Pi Microcontrollers
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and
uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore
computing, and to learn how to program in languages like Scratch and Python.
Raspberry-Pi Parameters
Raspberry Pi 3 Model B
- Quad Core 1.2GHz Broadcom BCM2837 64bit CPU - 1GB RAM
- BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board - 40-pin extended GPIO
- Upgraded switched Micro USB power source up to 2.5A - 4 USB 2 ports
- CSI camera port for connecting a Raspberry Pi camera - Full size HDMI
- 4 Pole stereo output and
- DSI display port for connecting a Raspberry Pi touchscreen display
composite video port
- Micro SD port for loading your operating system and storing data
PROS CONS
● Super powerful with lot of memory and
processing capabilities. Expandable ● You need good knowledge of Linux
memory. systems to get things moving.
● Linux based OS and now even Windows ● The processing power will be an overkill
10 can be run on top of it to make processing-wise for most of the
processing more user friendly. applications since we will use it only to
● Python, C, C++, Ruby, Go and many send data across.
more can be used to program the Pi ● Closed source.
exactly the way you can code any ● Power hungry.
computer.
Table 3.4 PROS and CONS for Raspberry-Pi Microcontroller
25
Figure 3.11 Image Drop Detection Algorithm Flowchart
26
Getting the Time cost for an algorithm:
In-order to get the cost of the algorithm, the proponents use the microcontroller to check for the milliseconds
time in-order to run a specific code. Below are the codes that have been set for the microcontroller to run and
print. Gathering the specific time needed by the microcontroller to run such codes using (arduino).
Serial.begin(9600); x=0;
} x=0;
x=0;
x=0;
Serial.println(micros()); x=0;
x=0; x=0;
x=0; x=0;
x=0; x=0;
x=0; Serial.println(micros());
x=0; delay(1000);
x=0;
x=0; Serial.println(micros());
27
if (x=0){} else {} if (x=0){} else {}
Serial.println(micros());
if (x=0){} else {}
x = x+1;
x = x+1;
x = x+1;
28
x = x+1; x = x+1;
x = x+1; x = x+1;
x = x+1; Serial.println(micros());
x = x+1; delay(1000);
x = x+1; }
After running the codes listed above the microcontroller displays the start and stop time for each type of code
such as IF statements, assign statements, and computation statements. Below are the outputs shown in the
microcontroller.
There for the time cost in nanoseconds would be the difference of each statement and divided upon by 25.
29
Pseudo Code for Image Drop Detection Algorithm: (1408x792 resolution)
1 - Load values to client
4 - {
9 - }
10 - else
11 - {
13 - {
15 - {
16 - if (pixelcolor[i][j] = steadypixelcolor[i][j])
17 - {}
18 - else
19 - {
20 - drop count + 1
23 - }
24 - }
30
25 - }
28 - delay
3.76 1 3.76
1
2 3.76 1 3.76
3 3.2 1 3.2
5 3.76 1 3.76
6 3.76 1 3.76
7 3.76 1 3.76
8 3.76 1 3.76
10 3.2 1 3.2
26 3.76 1 3.76
27 3.76 1 3.76
3.76 1 3.76
1
2 3.76 1 3.76
31
3 3.2 1 3.2
5 3.76 1 3.76
6 3.76 1 3.76
7 3.76 1 3.76
8 3.76 1 3.76
10 3.2 1 3.2
Web applications
Web applications are used to handle data’s through the cloud. In which all data’s and controls were met
wirelessly. This applications should determine the control of the given device via user interface and also
monitors via web application. Which means all controls and monitoring would be handles in the user interface
of the web application.
In this kind of app, upgrading content is very simple and the server doesn’t even have to be accessed when
modifying it. In addition, it allows the implementation of plenty of features such as forums or databases.
Design − besides content − can be modified to match the administrator’s preferences.
PROS CONS
32
● Higher conversion rates: personalized, ● Relatively expensive: it takes time and
relevant content converts at much higher effort to produce high quality blog posts on
rates than static content and landing pages. a regular basis or to develop content
● Improved search visibility: Google and strategies for multiple personas and buyer
other search engines respond positively to journeys. Finding and hiring brand
fresh, dynamic content, especially content journalists or content marketing agencies
that is shared and subscribed to. can add significantly to your marketing
budget.
● Requires analysis: it doesn't do you any
good to simply publish dynamic content.
You need marketing automation
technology and experts to monitor the
different channels, optimize for conversion
rates and report results to managers
looking for budget justification and
planning.
Table 3.6 PROS and CONS for Dynamic Web Applications
Servo Motor
A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position,
velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. It also
requires a relatively sophisticated controller, often a dedicated module designed specifically for use with
servo motors. Servo motors are not a specific class of motor although the term servomotor is often used to
refer to a motor suitable for use in a closed-loop control system.
Servomotors are used in applications such as robotics, CNC machinery or automated manufacturing.
PROS CONS
33
Based on the MIL-Hdbk217f for 8
bit microcontrollers
𝝀𝒑 = [(𝑪𝟏 ∗ 𝝅𝒕) + (𝑪𝟐 ∗ 𝝅𝒆)] ∗ 𝝅𝒒 ∗ 𝝅𝑳
𝑪𝟏 = 𝟎. 𝟏𝟒
𝝅𝒕 = 𝟎. 𝟗𝟖
T= 85 ⁰C
Based on equation from MIL-Hnbk-
𝑪𝟐 = 𝟎. 𝟎𝟏𝟔𝟔𝟕𝟔 217f page 5-14 [1] for SMT with 44
pins
𝝅𝒆 = 𝟐
𝝅𝒒 = 𝟏𝟎
𝜋𝐿 = learning factor
Number used for devices older
𝝅𝑳= 1 than 2 years in production pins
𝟏. 𝟕𝟎𝟓𝟓𝟐
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Servo Motor
𝒕𝟐 𝟏
𝝀𝒑 = 𝟑
+
⍶𝒃 ⍶𝒘
2357
1
⍶𝑏 = (102.534−𝑇+273 + 4500 )-1
(20− )
10 𝑇+273 +300
T= 55⁰C
⍶𝑏 = 44000
2357
⍶𝑤 = 10(𝑇+273−1.83)
⍶𝑤 = 2.3𝑒 5
𝟎. 𝟎𝟐𝟔𝟑𝟕
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Availability of Design Option 1
𝑼𝒏𝒂𝒗𝒂𝒊𝒍𝒂𝒃𝒊𝒍𝒊𝒕𝒚 = 𝟏. 𝟗𝟔𝟗𝟐𝟐
34
𝑨𝒗𝒂𝒊𝒍𝒂𝒃𝒊𝒍𝒊𝒕𝒚 𝒐𝒇 𝑫𝒆𝒔𝒊𝒈𝒏 𝑶𝒑𝒕𝒊𝒐𝒏 𝟏 = |𝟏 − 𝟏. 𝟗𝟔𝟗𝟐𝟐|
Design Option 2
In this design the system is capable of determining drops on the primary IV tubing by detecting the emission
of infrared from the emitter IR. The design should also be capable of handling communication transfers from
web to the system and vice versa. And The microcontroller should be capable of handling the control system
of the pinching module which is powered by a specific power converter. The Figure below shows the
connection of the Design per module.
35
Figure 3.12 Infrared drop detection Hardware diagram
PROs CONs
● The wireless nature of such networks allow ● To combat this consideration, wireless
users to access network resources from networks may choose to utilize some of the
nearly any convenient location within their various encryption technologies available.
primary networking environment. Some of the more commonly utilized
● With the emergence of public wireless encryption methods, however, are known to
networks, users can access the internet have weaknesses that a dedicated
even outside their normal work adversary can compromise.
environment. Most chain coffee shops, for ● The typical range of a common 802.11g
example, offer their customers a wireless network with standard equipment is on the
connection to the internet at little or no cost. order of tens of meters. While sufficient for
● Users connected to a wireless network can a typical home, it will be insufficient in a
maintain a nearly constant affiliation with larger structure. To obtain additional range,
their desired network as they move from repeaters or additional access points will
place to place. For a business, this implies have to be purchased. Costs for these items
that an employee can potentially be more can add up quickly.
productive as his or her work can be ● The speed on most wireless networks
36
accomplished from any convenient (typically 1-54 Mbps) is far slower than even
location. the slowest common wired networks
● Initial setup of an infrastructure-based (100Mbps up to several Gbps). However, in
wireless network requires little more than a specialized environments, the throughput of
single access point. Wired networks, on the a wired network might be necessary.
other hand, have the additional cost and ● Like any radio frequency transmission,
complexity of actual physical cables being wireless networking signals are subject to a
run to numerous locations (which can even wide variety of interference, as well as
be impossible for hard-to-reach locations complex propagation effects that are
within a building). beyond the control of the network
administrator.
● Wireless networking hardware is at worst a
modest increase from wired counterparts.
This potentially increased cost is almost
always more than outweighed by the
savings in cost and labor associated to
running physical cables.
Table 3.7 PRO’s and CON’s for Wi-Fi
𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑃𝑒𝑜𝑝𝑙𝑒
𝑃𝑜𝑝𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝐷𝑒𝑛𝑠𝑖𝑡𝑦 =
𝐹𝑙𝑜𝑜𝑟 𝐴𝑟𝑒𝑎
37
Ward 2 13 100m x 200m .00065
2nd to 5th
Ward 3 13 100m x 200m .00065
Floor
Ward 4 10 100m x 200m .0005
Table 3.8 shows the estimated number of users per floor and population density
Normal zones: zones that are in need of Wi-Fi service and an AP can be placed in it.
Limited zones: zones that may or may not be in need of Wi-Fi service but nonetheless, an AP
cannot be placed in it for some reasons.
Exclusion zones: zones that do not need Wi-Fi service, therefore, no AP can be placed in it
38
Hallways, Comfort Emergency Exits
2nd to the 5th Floor Wards
Rooms Free Space
Cubicle
Door
39
Wood Door (Hollow Solid) 3–4 6–7
Brick/Concrete Wall 6 – 18 10 – 30
Bullet-proof glass 10 20
C. Co-Channel Interference
Co – channel interference is present when two adjacent access points use the same channel. It is most likely
the cause of limited performance and capability of a Wi-Fi network. In order to prevent this scenario, access
points that have the same channel will be assigned separately. No adjacent access points will be set up with
the same channel. Available channels for 2.4GHz band and 5GHz band are presented at Figure 3.5
40
Figure 3.16 Effective Radius of Access Point – to – Access Point
Distance
𝐝 𝟏
𝐎𝛑𝐑𝟐 = 𝟐𝐑𝟐 𝐜𝐨𝐬 −𝟏 ( ) − 𝐝√𝟒𝐑𝟐 − 𝐝𝟐
𝟐𝐑 𝟐
Where: R - Access Point Effective Radius
The cell-to-cell overlapping intended to increase the chance of accessibility of a user to the network. To
accomplished this intent, the recommended degree of cell to cell overlap should be considered. For sufficient
reliable roaming with data applications, a minimum of 10% cell-to-cell overlap is recommended. After
computing for the AP effective radius, the computation for effective transmitted power of an AP can now be
completed using the formula:
Where
The Rxpower depends on the requirement of the designs. However, the GainTx depends on the antenna
gain of the AP used. For 2.4GHz, the antenna gain is 3dBi, while for the 2.4 / 5GHz, the antenna gain is 5dBi.
Furthermore, the path loss model corresponds to free space loss with the distance referenced to 1 meter.
Lastly, the path loss exponent depends on the environment that surrounds the position of the AP. For the
designs, the chosen value of n is 6. For reference, below is the table of different path loss exponent for
different environments.
41
Radio Frequency Propagation Simulation
Servo Motor
A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position,
velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. It also
requires a relatively sophisticated controller, often a dedicated module designed specifically for use with
servo motors. Servo motors are not a specific class of motor although the term servomotor is often used to
refer to a motor suitable for use in a closed-loop control system.
Servomotors are used in applications such as robotics, CNC machinery or automated manufacturing.
PROS CONS
42
Transformer System
For the transformer used for AC/AC conversion, a low-frequency transformer is used since AC frequency is
60 Hz. Transformers that are designed as power supply units are called power transformers or commercial
frequency transformers (commercial transformers). The size (volume) of a transformer may be thought of
as being proportional to the output power of the power supply unit. A familiar example is AC adapters,
which are supplied in units such that the larger their current capacity the bulkier and heavier the units. The
basic structure of a transformer consists of an iron core, and primary and secondary winding wires. A core
is commonly made of a silicon steel plate.
Core Area:
√Wattage Rating
Core Area=
5.58
√15
Core Area= =0.69≈1 sq.in
5.58
Where: 0.69 is constant for 60-cycle frequency according to transformer winding and trouble shooting
43
The number of turns per Volt
T 7.5
=
V Core Area
T 7.5
= =7.5 volts per turn
V 1
Where: 7.5 is constant for 60-cycle frequency according to transformer winding and trouble shooting
Turns Primary
T
Turns Primary=Ep x
V
Turns Primary=220 x 7.5=1655 turns
Turns Secondary
T
Turns Secondary=Es x
V
Turns Secondary=5 x 3.55=17.75 or 18 turns
To this, add 6% for core losses. Thus, 6% of 90 is equal to 5.4. Therefore, the total number of turns in
secondary is equal to 18 turns.
Primary current
W
Primary Current=
Ep
15
Primary Current= =0.0682 A
220
Secondary Current
W
Secondary Current=
Es
44
15
Secondary Current= =3 A
5
Size of Wire Primary
cm.pri=0.0682 x 1000= 68.2 circular mills, size no. 29 According to Table 1.4 in [35]
Size of Wire Secondary
cm.pri=3 x 1000= 3000 circular mills, size no. 13 According to Table 1.4 in [35]
Computation For losses
Copper loss= I2 R
2
Copper loss=(0.0652) (2)=0.0085 Watts
Since the required current of load is 2.5 ampere the resistance to be used is 2 ohms using ohms law.
pout
η=
pin
Pout
η= x 100%
Pout+Plosses
15
η= x 100
15+7.5085
η=66.64%
Computations on Capacitor
45
V= IZ
Z= 5V / 0.86 = 5.8140 Ω
Z= 1 / 2 pi (60) ( C )
5.8140= 1 / 2 pi (60) ( C )
C = 0.456mF
PROS CONS
Arduino Microcontrollers
An open-source platform used for building electronics projects. Arduino consists of both a physical
programmable circuit board and a piece of software, or IDE that runs on your computer, used to write and
upload computer code to the physical board.
- DC Current for 3.3V Pin 50 mA - Digital I/O Pins provide PWM output) 14 (of which 6
46
PROS CONS
47
Figure 3.20 Infrared Algorithm Flowchart
In-order to get the cost of the algorithm, the proponents use the microcontroller to check for the milliseconds
time in-order to run a specific code. Below are the codes that have been set for the microcontroller to run and
print. Gathering the specific time needed by the microcontroller to run such codes.
48
void setup() { x=0;
Serial.begin(9600); x=0;
} x=0;
x=0;
x=0;
Serial.println(micros()); x=0;
x=0; Serial.println(micros());
x=0; delay(1000);
x=0;
x=0; Serial.println(micros());
x=0;
49
if (x=0){} else {} Serial.print("Start Time For (computation): ");
x = x+1;
x = x+1;
x = x+1;
Serial.println(micros()); x = x+1;
delay(1000); x = x+1;
x = x+1;
50
x = x+1; Serial.println(micros());
x = x+1; delay(1000);
After running the codes listed above the microcontroller displays the start and stop time for each type of code
such as IF statements, assign statements, and computation statements. Below are the outputs shown in the
microcontroller.
There for the time cost in nanoseconds would be the difference of each statement and divided upon by 20.
51
4 - save analog data from infrared to int x
6 - {
11 - }
12 - else
13 - {
15 - {}
16 - else
17 - {
19 - {
20 - drop count + 1
23 - }
27 - delay
52
Program Time Algorithm Complexity For IR Drop Detection:
Program Line Code Cost (nS) Frequency Total Cost (nS)
3.76 1 3.76
1
2 3.76 1 3.76
3 3.76 1 3.76
4 3.76 1 3.76
5 3.2 1 3.2
7 3.76 1 3.76
8 3.76 1 3.76
9 3.76 1 3.76
10 3.76 1 3.76
12 3.2 1 3.2
14 3.2 1 3.2
16 3.2 1 3.2
18 3.2 1 3.2
20 3.72 1 3.72
21 3.72 1 3.72
22 3.76 1 3.76
24 3.76 1 3.76
25 3.76 1 3.76
26 3.76 1 3.76
27 3.76 1 3.76
53
Web applications
Web applications are used to handle data’s through the cloud. In which all data’s and controls were met
wirelessly. This applications should determine the control of the given device via user interface and also
monitors via web application. Which means all controls and monitoring would be handles in the user interface
of the web application.
In this kind of app, upgrading content is very simple and the server doesn’t even have to be accessed when
modifying it. In addition, it allows the implementation of plenty of features such as forums or databases.
Design − besides content − can be modified to match the administrator’s preferences.
PROS CONS
54
Comparison between Wireless Standards
---
Wi-Fi
Market Name Standard GSM/GPRS
802.11b
CDMA/1Xrtt
Application Focus Wide Area Voice and Data Web, E-mail and Video
Network Size 1 32
55
Failure Rate of Design Option 2
𝝀𝒑 = 𝝀𝒃 ∗ 𝝅𝒓 ∗ 𝝅𝒒 ∗ 𝝅𝒆
𝛌𝐛 = 𝟎. 𝟎𝟎𝟐𝟔
πr = resistance factor
πr =< .1MΩ
𝛑𝐫 = 𝟎. 𝟏
56
πe = environmental factor
𝛑𝐞 = 𝟏. 𝟎
𝟎. 𝟎𝟎𝟐𝟔
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Component 2: IR Emitter
𝝀𝒑 = 𝝀𝒃 ∗ 𝝅𝒕 ∗ 𝝅𝒒 ∗ 𝝅𝒆
𝛌𝐛 = 𝟎. 𝟎𝟎𝟏𝟑
1 1
𝜋𝑡 = 𝑒 −2790 ( 𝑇+273− 298)
𝑇 = 85 ⁰𝐶
𝝅𝒕 = 𝟒. 𝟖
πe = environmental factor
𝛑𝐞 = 𝟏. 𝟎
𝟎. 𝟎𝟎𝟎𝟒𝟑𝟔𝟖
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Component 3: IR Photodiode
𝝀𝒑 = 𝝀𝒃 ∗ 𝝅𝒕 ∗ 𝝅𝒒 ∗ 𝝅𝒆
𝛌𝐛 = 𝟎. 𝟎𝟎𝟒𝟎
1 1
𝜋𝑡 = 𝑒 −2790 ( 𝑇+273− 298)
𝑇 = 60 ⁰𝐶
𝝅𝒕 = 𝟐. 𝟕
According to Table 4, Appendix E of
πq = quality factor MIL-PRF-19599M
57
𝛑𝐪 = 𝟎. 𝟕
𝛑𝐞 = 𝟏. 𝟎
𝟎. 𝟎𝟎𝟎𝟖𝟑𝟏𝟔
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
𝒕𝟐 𝟏
𝝀𝒑 = 𝟑
+
⍶𝒃 ⍶𝒘
2357
1
⍶𝑏 = (102.534−𝑇+273 + 4500 )-1
(20− )
10 𝑇+273 +300
T= 55⁰C
⍶𝑏 = 44000
2357
⍶𝑤 = 10(𝑇+273−1.83)
⍶𝑤 = 2.3𝑒 5
𝟎. 𝟎𝟐𝟔𝟑𝟕
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Component 5: Capacitor
𝝀𝒑 = 𝝀𝒃 ∗ 𝝅𝒄𝒗 ∗ 𝝅𝒒 ∗ 𝝅𝒆
𝑠 5 𝑇+273 18
λb = 0.0086[( ) + 1] ∗ 𝑒 0.25 ( 398 ) Based on the given parameters of
0.4
capacitor datasheet
𝑠 = 0.23
Based on the given parameters of
𝑇 = 85 ⁰𝐶 capacitor datasheet
λb = 0.0014
58
πq = quality factor
𝛑𝐪 = 𝟑. 𝟎
𝛑𝐞 = 𝟏. 𝟎
𝟎. 𝟎𝟎𝟐𝟗𝟒
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Component 6: PCB
𝝀𝒑 = 𝝀𝒃 ∗ 𝝅𝒌 ∗ 𝝅𝒑 ∗ 𝝅𝒆
−2073.6 𝑇+273 4.66
λb = 0.216 𝑒 [( 𝑇+273 + 423
)
T= 130 ⁰C
𝛌𝐛 = 𝟎. 𝟎𝟎𝟒𝟒
𝝅𝒌 = 𝟏. 𝟎
𝑁−1 0.51064
𝜋𝑝 = 𝑒 ( 10
)
N= 7 contacts
𝝅𝒑 = 𝟐. 𝟐
𝝅𝒆 = 𝟏. 𝟎
𝟎. 𝟎𝟎𝟗𝟔𝟖
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Component 7: Microcontroller (Arduino)
𝝅𝒕 = 𝟎. 𝟗𝟖
T= 85 ⁰C
Based on equation from MIL-Hnbk-
𝑪𝟐 = 𝟎. 𝟎𝟏𝟔𝟔𝟕𝟔 217f page 5-14 [1] for SMT with 44
pins
𝝅𝒆 = 𝟐
59
𝝅𝒒 = 𝟏𝟎
Number used for devices older
𝜋𝐿 = learning factor than 2 years in production pins
𝝅𝑳= 1
𝟏. 𝟕𝟎𝟓𝟓𝟐
𝝀𝒑 =
𝟏𝟎𝟔 𝒉𝒐𝒖𝒓𝒔
Design Option 2
A B C
1.70552
60
Availability of C
Availability of B
Availability of A
61