You are on page 1of 24

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 43: Internet of Things

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Ngo Hoang Anh Student ID GCD191031

Class GCD0807A Assessor name Tran Minh Trong

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.

Student’s signature Anh

Grading grid

P5 P6 P7 M5 M6 D3 D4
 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:


Table of Contents
P5 EMPLOY AN APPROPRIATE SET OF TOOLS TO DEVELOP YOUR PLAN INTO AN IOT
APPLICATION. ........................................................................................................................................................... 5
I. The problem...................................................................................................................................................... 5
II. Solution. ............................................................................................................................................................ 5
III. Schematic. ..................................................................................................................................................... 6
IV. A plan to execute the project. ...................................................................................................................... 7
V. Component selection and Cost. ........................................................................................................................ 7
VI. Code .............................................................................................................................................................. 8
VII. Tools. ............................................................................................................................................................. 9
1. Hardware: ................................................................................................................................................... 10
2. Tool. ............................................................................................................................................................ 12
3. Software. ..................................................................................................................................................... 12
4. Framework – Blynk. .................................................................................................................................... 12
5. Fritzing. ....................................................................................................................................................... 13
6. Test case. .................................................................................................................................................... 13
7. Case ............................................................................................................................................................. 14
8. Run the project. .......................................................................................................................................... 15
9. Advantage and Disadvantage of the product. ............................................................................................ 16
P6 Run an end-user test and check for feedback. ...................................................................................................... 18
I. Run application. .............................................................................................................................................. 18
II. Apply practical solutions. ................................................................................................................................ 18
III. Customer feedback. .................................................................................................................................... 18
IV. Result of the customer’s feedback. ............................................................................................................ 20
P7 Review end user feedback from your IoT application. .......................................................................................... 23
I. Feasibility. ....................................................................................................................................................... 23
II. Commercialize IoT solutions or applications and improve their ability to meet their needs. ....................... 23

Figure 1 ......................................................................................................................................................................... 5
Figure 2 ......................................................................................................................................................................... 6
Figure 3 ......................................................................................................................................................................... 7
Figure 4 ....................................................................................................................................................................... 10
Figure 5 ....................................................................................................................................................................... 11
Figure 6 ....................................................................................................................................................................... 12
Figure 7 ....................................................................................................................................................................... 13
Figure 8 ....................................................................................................................................................................... 15
Figure 9 ....................................................................................................................................................................... 16
Figure 10 ..................................................................................................................................................................... 16
Figure 11 ..................................................................................................................................................................... 18
Figure 12 ..................................................................................................................................................................... 19
Figure 13 ..................................................................................................................................................................... 19
Figure 14 ..................................................................................................................................................................... 19
Figure 15 ..................................................................................................................................................................... 20
Figure 16 ..................................................................................................................................................................... 20
Figure 17 ..................................................................................................................................................................... 21
Figure 18 ..................................................................................................................................................................... 21
Figure 19 ..................................................................................................................................................................... 22

Table 1........................................................................................................................................................................... 8
Table 2......................................................................................................................................................................... 13
P5 EMPLOY AN APPROPRIATE SET OF TOOLS TO
DEVELOP YOUR PLAN INTO AN IOT APPLICATION.
I. The problem.
The heart is the most important organ of the body, holding important functions in the
circulatory system. The heart is like a pump, helping to pump blood to carry nutrients and
oxygen along the arteries to other organs in the body to nourish and ensure the vital activities
of all internal organs. as well as cells. Thanks to the heart, all vital activities of the body are
maintained stably. Therefore, any disorder that occurs in the heart has an effect on the body.
I once read a very good saying that "those with health have hope and hope has everything",
or another very poignant saying about human health that "Those with health If you are
healthy, you will have hundreds of thousands of dreams. If you are not healthy, you will only
have one dream, which is health. These two sayings both reinforce a single thought and
meaning that for human beings nothing is as important and valuable as health, as long as
people have health, they will achieve their dreams in many ways, otherwise we will have
nothing but a sick body. Especially in today's modern life, although people's material and
spiritual life has become better, medical services have also improved significantly, but living
habits are not in moderation. Working, excessive overtime, and unhealthy recreational
activities are still eroding people's health that no medicine can cure.
So how do they detect if the heart rate is stable or not so that they can go to the doctor in
time?

Figure 1

II. Solution.
Special equipment is required to measure heart rate every day. To detect how heart rate
works at home. IoT devices and technologies have been adopted. It can connect to mobile
phone through wireless network.
Figure 2

This device above will send a message to the phone every time you put your hand in to
measure your heart rate. So, the owner can control heart rate and blood oxygen levels as well
as health easily. Seek medical attention promptly if you find a problem.
III. Schematic.
Figure 3

IV. A plan to execute the project.


• Initiation: The project needs capital to implement, so the first thing is to find investors.
A project team should be formed then, as it is not possible for one person to take on
all the work on the project.
• Planning: Product manufacturing planning begins with coding the product features.
These will be checked once the sketch is complete. If an error occurs, error handling
will be performed immediately. If there are no errors, the product will be shipped for
demo. Test procedures must also be performed in parallel during the prototype cycle
to ensure product consistency. After all the tests are done, the product will start
production.
• Construction: Products are imported to the market and sold to customers. And
advertised on different platforms like Facebook or YouTube.
• Finish: Maintain and develop products that will provide a better user experience. Get
reviews from consumers and address product weaknesses.
V. Component selection and Cost.
Table 1

Component Type Quality Price


Board wifi ESP8266 NodeMCU ESP8266 1 52.000đ
Heart rate sensor MAX30100 1.8~5.5V 1 80.000đ
Oled LCD screen 0.96 inch 1 78.000đ
VI. Code
#define BLYNK_TEMPLATE_ID "TMPLqA7EBkeQ"
#define BLYNK_DEVICE_NAME "Anh"
#define BLYNK_AUTH_TOKEN "ZSTWhSgeDHUowKbyljSoL_M2L0VKAPGC"
#include <Wire.h>
#include "MAX30100_PulseOximeter.h"
#define BLYNK_PRINT Serial
#include <Blynk.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "Adafruit_GFX.h"

#define REPORTING_PERIOD_MS 1000

char auth[] = "ZSTWhSgeDHUowKbyljSoL_M2L0VKAPGC";


char ssid[] = "Tran Vu Hai";
char pass[] = "1qaz4321";

PulseOximeter pox;

float BPM, SpO2; // Declaring BPM and SpO2


uint32_t tsLastReport = 0;

void onBeatDetected()
{
Serial.println("Beat Detected!");
}

void setup()
{
Serial.begin(115200);
pinMode(16, OUTPUT);
Blynk.begin(auth, ssid, pass);
Serial.print("Initializing Pulse Oximeter..");

if (!pox.begin())
{
Serial.println("FAILED");
for (;;);
}
else
{
Serial.println("SUCCESS");
pox.setOnBeatDetectedCallback(onBeatDetected);
}
}

void loop()
{
pox.update();
Blynk.run();

BPM = pox.getHeartRate();
SpO2 = pox.getSpO2();

if (millis() - tsLastReport > REPORTING_PERIOD_MS)


{
Serial.print("Heart rate:");
Serial.print(BPM);
Serial.print(" SpO2:");
Serial.print(SpO2);
Serial.println(" %");

Blynk.virtualWrite(V1, BPM);
Blynk.virtualWrite(V2, SpO2);

tsLastReport = millis();
}
}
VII. Tools.
1. Hardware:
NodeMCU ESP8266 Boards
Node MCU ESP8266 is built on LUA language which is very simple to learn but developers
can also use Arduino IDE for programming Node MCU. It has Wi-Fi module ESP8266 which
means it can quickly connect to Internet. The NodeMCU ESP8266 collect the information
from the fire sensor and send it to Blynk App every second.
NodeMCU is best known for IoT open-source platforms which added firmware that easily
runs on the low cost as well. Moreover, this NodeMCU ESP8266 has even included the
hardware based on the ERP-12 module.

Figure 4

NodeMCU ESP8266 Specifications & Features:


• Microcontroller: Tensilica 32-bit RISC CPU Xtensa LX106
• Operating Voltage: 3.3V
• Input Voltage: 7-12V
• Digital I/O Pins (DIO): 16
• Analog Input Pins (ADC): 1
• Flash Memory: 4 MB
• SRAM: 64 KB
• WiFi: 2.4 GHz supports 802.11 b / g / n
• Security support: WPA / WPA2
Heart Rate Sensor
Heart rate and blood oxygen sensor MAX30100 is used to measure heart rate and blood
oxygen concentration, suitable for many biomedical related applications, heart rate and
blood oxygen sensor using spectrophotometry Current sensor with a design and
specialized measuring eye material from genuine Maxim for high accuracy and durability,
the sensor uses I2C communication with the library available on the Arduino which is very
easy to use.

Figure 5

Normally these sensors are available as modules with comparator as shown above.
Specifications:
MAX30100. Heart rate and blood oxygen sensor
• Main IC: MAX30100.
• Measures heart rate and blood oxygen levels.
• Using voltage: 1.8~5.5VDC.
• Compact, super energy efficient, suitable for compact measuring devices,
Wearable Devices.
• Communication: I2C, TTL signal level.
• Dimensions: 1.9cm x 1.4cm x 0.3cm
OLED
0.96-inch Oled LCD screen with I2C interface for beautiful, luxurious, clear display in the
daytime and maximum energy saving ability at an appropriate cost, the screen uses I2C
interface for quality stable transmission and very easy to communicate with only 2 GPIO
pins.
Technical specifications Oled lcd display 0.96 inch only
• Using voltage: 2.2~5.5VDC.
• Power consumption: 0.04w
• Display angle: greater than 160 degrees
• Number of display points: 128×64 points.
• Screen width: 0.96 inches
• Display Color: White
• Communication: I2C
• Driver: SSD1306
2. Tool.
Arduino IDE
Arduino Software (IDE) contains a text editor for writing code, a message area, a text
console, a toolbar with buttons for common functions and a series of menus. It connects
to the Arduino and Genuino hardware to upload programs and communicate with them.

Figure 6

3. Software.
C++ language
C++ maintains the methods and structure of C but adds the ability to abstract data,
objects, and classes. All of these features make C ++ an option for embedded application
developers, IoT programmers for systems.
4. Framework – Blynk.
Blynk is the first and only drag-n-drop mobile app builder for the microcontrollers and
Internet of Things
Blynk was designed for the Internet of Things. It can control hardware remotely, it can
display sensor data, it can store data, visualize it and do many other cool things.

Figure 7

5. Fritzing.
An application to design Arduino projects schematic.
6. Test case.
Table 2

Number Test case Desired results Result


1 Normal human PASS
heart rate
2 Slow human heart PASS
rate

3 Try to measure the FAIL


heart rate of the
book

4 Try to measure the FAIL


heart rate of the
pen

5 Try to measure the PASS


heart rate of cat

7. Case
Figure 8

8. Run the project.


When you don't put your hand on the sensor
Figure 9

Put your hand on the sensor and measure your heart rate

Figure 10

9. Advantage and Disadvantage of the product.


Advantage:
• The device is easy to assemble and compact.
• Helps users to detect abnormalities of the heart for timely medical examination.
• The sensor mounted on the product is sensitive and accurate.
• There is no problem with the product.
• Low product cost.
Disadvantage:
• Equipment is rudimentary, easily damaged, less durable.
• There is no clear design.
• Solution: The device can be attached to a plastic case.
P6 Run an end-user test and check for feedback.
I. Run application.
State of the device when plugged in.
II. Apply practical solutions.
The sensor should be stored in a cool place away from places where it may come in contact
with water to avoid damage.
Because the sensor only measures heart rate and blood oxygen levels, it has no function to
detect disease, so it is necessary to see a doctor when you see an irregular heartbeat.
III. Customer feedback.
We use Google Forms to collect data to get feedback from customers. Every customer who
has used the product will receive an email with a link to the form.
We summarize both the advantages and disadvantages of the product after collecting
customer comment.

Figure 11
Figure 12

Figure 13

Figure 14
Figure 15

IV. Result of the customer’s feedback.


Below are 21 customer feedbacks:
Question 1:

Figure 16

For this question, 38.1% of people chose very good, 38.1% of people chose good, 23.8% of
people choose normal, no one choose bad and very bad, proving that the product is useful to
users.
Question 2:
Figure 17

With 81% of users choosing yes and 19% choosing maybe, the majority of users like the
product because of its capabilities.
Question 3:

Figure 18

Most people agree that the system is working really well, makes them feel safer and jokingly
calls me husband. They want the product to grow in the future.
Question 4:

Figure 19

52.4% important
38.1% is very important
9.5% doesn't matter much
With this question most users choose important instead of very important. We will contact
these people to get their input to improve the product and make it a must-have for everyone.
P7 Review end user feedback from your IoT application.
I. Feasibility.
This heart rate and blood oxygen sensor has several IoT features. They are suitable for
everyone. Moreover, this product can also be used in medical areas, clinics to measure heart
rate initially to start medical examination.
Technically, of course it is not difficult to assemble and program this system. I have studied
and detailed in the report, the functions included in the system I have also given.
Economically, the machine has a relatively low cost, but thanks to that I also get a system that
comes with many functions that meet the needs of the user and is a divisible future savings
product. more rational. With an individual production organization, after the product is
completed and the necessary requirements are met, most of the product can be exported.
II. Commercialize IoT solutions or applications and improve their ability
to meet their needs.
Because the equipment's components are easy to manufacture and cheap, it is possible to
produce many products in a short time to supply customers quickly. Companies will pay more
attention to this product, if they put safety first. Sensors can be damaged if not maintained
and serviced regularly.
The possibility of an improved product is very high, given the rapidly evolving IoT platform.
This project can be used in heart rate measurement for medical examination. Sensors that
measure heart rate and blood oxygen levels are integrated with an internet connection so
that users can control the necessary information to ensure safety for their health.
After the above processes, I will introduce new production and business methods in the
market, introduce specific products, thereby gaining the trust and support of domestic users
and in the future, it will become a worldwide market. bridge.
What I need to improve the product in the future:
Some points for future improvement: As it is currently only a beta version for users to
experience and we still have a lot of room to improve in the future, by collecting requests that
I have things to improve like:
- We will try to develop the product to be able to recognize more than measuring heart
rate and blood oxygen level
- Regarding the price, we will try to optimize the ingredients so that we can bring a product
that is both useful and cheap for customers.
- Add accessories that can protect the board, as it is an electronic product. Since protecting
the board during aging is essential to meet the needs of users, I will do my best to perfect
it.
- - Having a complete website, users can see much more detail than using a single
application. This issue also needs to be further improved to match user requirements.

You might also like