You are on page 1of 26

Higher Nationals in Computing

Internet of Things
ASSIGNMENT
No.2

Project name: IoT Based Humidity and Temperature


Monitoring Using Arduino Uno

Learner’s name: Nguyen Hoai Nam


Assessor name: NGUYEN VAN SON
Class: GCS0901
Learner’s ID: 1690
Subject’s ID: GCS190817
Assignment due:08/05/2022 Assignment submitted:
ASSIGNMENT 2 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and


Unit 43: Internet of Things
title

Date Received 1st


Submission date
submission

Date Received 2nd


Re-submission Date
submission

Student Name Nguyen Hoai Nam Student ID GCS190817

Class GCS0901 Assessor name Son

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 Nam

Grading grid

P5 P6 P7 M5 M6 D2 D3

1|Page
r Summative Feedback: r Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:

2|Page
Assignment Brief 2 (RQF)
Higher National Certificate/Diploma in Business

Student Name/ID
Nguyen Hoai Nam/GCS190817
Number:
Unit Number and Title: Unit 43 – Internet of Things

Academic Year: 2022

Unit Assessor: Nguyen Hoai Nam

Assignment Title: Assignment 2 – Internet of Things

Issue Date:

Submission Date: 08/05/2022

Internal Verifier Name: Nam

Date: 08/05/2022

Submission Format:

Format: This assignment is an Individual assignment and specifically including 1


document:
You must use font Calibri size 12, set number of the pages and use multiple
line spacing at 1.3. Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and
bottom: 1 cm. The reference follows Harvard referencing system. The
recommended word limit is 2.000-2.500 words. You will not be penalized for
exceeding the total word limit. The cover page of the report has to be the
Assignment front sheet 2.
Submission Students are compulsory to submit the assignment in due date and in a way
requested by the Tutors. The form of submission will be a soft copy posted on
http://cms.greenwich.edu.vn/
Note: The Assignment must be your own work, and not copied by or from another
student or from
books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other
sources, you must reference your sources, using the Harvard style. Make sure that you
know how to reference properly, and that understand the guidelines on plagiarism. If you
do not, you definitely get fail

3|Page
Unit Learning Outcomes:

LO1 Analyse what aspects of IoT are necessary and appropriate when designing software
applications
LO2 Outline a plan for an appropriate IoT application using common architecture,
frameworks, tools, hardware and APIs
LO3 Develop an IoT application using any combination of hardware, software, data,
platforms and services.
LO4 Evaluate your IoT application and detail the problem your IoT application solves, the
potential impact on people, business, society and the end user and the problems it might
encounter when integrating into the wider IoT ecosystem

Assignment Brief and Guidance:

You currently work as a product developer for a company manufacturing IoT products. The
government of your hometown city wants to build the city as a smart one. They need to
collect the data from environment in this city, do insight the data then give out some
controlling decisions. Your company take the responsibility to make a demo product. As
part of your role, your manager has tasked you to plan and develop a new IoT system. This
system will collect some environment information such as: air quality, water level, rain
level, humidity, … from IoT devices, save to a database, and then a smart application will
do some analysis and make controlling decision.
Part 1 (Assignment 1): For the first part, you must:

• Investigate a specific IoT platform for the project.


• Plan an IoT system with the chosen platform. This plan will be in the form of a
document and will include supporting evidence and material.
• Evaluate your plan and the challenge in your solution.

Part 2 (Assignment 2): For the second part, you must:

• Show evidence about Developed IoT application using any combination of


hardware, software, data, platforms and services (video or images of your IoT
system with code snippet)
• Evaluate your IoT application and detail the problem your IoT application solves, the
potential impact on people, business, society and the end user and the problems it
might encounter when integrating into the wider IoT ecosystem

4|Page
Learning Outcomes and Assessment Criteria

Pass Merit Distinction

LO3 Develop an IoT application using any combination of hardware, software, data, platforms and services.

P5 Employ an appropriate set M5 Reconcile and evaluate end user D3 Critical evaluate security risks
of tools to develop your plan feedback and determine advantages that your application might
into an IoT application. and disadvantages of your chosen encounter.
IoT techniques.
P6 Run end user experiments
then identify the perfect and
incomplete points in your
system.

LO4 Evaluate your IoT application and detail the problem your IoT application solves, the potential impact
on people, business, society and the end user and the problems it might encounter when integrating into
the wider IoT ecosystem

P7 Discuss the drawback in M6 Undertake a critical review D4 Critique the overall success of
your system and solutions for original plan and give out the your application. Did it solve your
improving. improving plan. problem? What is the potential
impact on people, business,
society and the end user? What
problems might it encounter when
integrating into the wider IoT
ecosystem?

5|Page
Table Of Content
1. Employ an appropriate set of tools to develop your plan into an IoT application (P5).
1.1 My Project Design: …………………………………………………………………………………….. 7
1.2 Equiments: ……………………………………………………………………………………..…………. 8
1.2.1 Arduino Uno R3: ………………………………………………………………………………………… 8
1.2.2 Breadboard: ………………………………………………………………………………………………. 9
1.2.3 RT Clock: ……………………………………………………………………………………………………. 9
1.2.4 DHT11: ………………………………………………………………………………………………………. 10
1.3 Assembly: ………………………………………………………………………………………………….. 11
1.3.1 DHT (Temperature and Humidity) Sensor with Arduino: ……………………………. 11
1.3.2 LED with Arduino: ………………………………………………………………………………………. 11
1.3.3 RT Clock with Arduino: ……………………………………………………………………………….. 12
1.3.4 ICD with Arduino: ……………………………………………………………………………………….. 13
1.4 Coding:
1.4.1 Coding for Arduino: ……………………………………………………………………………………… 14
1.5 Cloud and Database: ……………………………………………………………………………………….. 17
1.6 Coding for Smartphone App/Website: …………………………………………………………….. 17
1.7 Clips and photos of the project (evidences): ……………………………………………………. 17

2. Run end user experiments then identify the perfect and incomplete points in your system
(P6).
2.1 Run end user experiments: ……………………………………………………………………………. 18
2.2 Perfect points: ………………………………………………………………………………………………..
2.3 Incomplete points: ………………………………………………………………………………………….

3. Discuss the drawback in your system and solutions for improving (P7).
4. Concluson. ………………………………………………………………………………………………………..
5. References. ……………………………………………………………………………………………………….

6|Page
1.Develop my plan into an IoT application (P5)
1.1 My project design

My project design is IoT Based Humidity and Temperature Monitoring Using Arduino Uno:

7|Page
1.2 Equipments

1.2.1 Arduino Uno R3:

The Arduino UNO is the best board to get started with electronics and coding. If this is your first
experience tinkering with the platform, the UNO is the most robust board you can start playing
with. The UNO is the most used and documented board of the whole Arduino family.

Figure 1: Arduino Uno R3

Technical specifications

- Microcontroller: Microchip ATmega328P


- Operating Voltage: 5 Volts

8|Page
- Input Voltage: 7 to 20 Volts
- Digital I/O Pins: 14 (of which 6 provide PWM output)
- Analog Input Pins: 6
- DC Current per I/O Pin: 20 mA
- DC Current for 3.3V Pin: 50 mA
- Flash Memory: 32 KB of which 0.5 KB used by bootloader
- SRAM: 2 KB
- EEPROM: 1 KB
- Clock Speed: 16 MHz
- Length: 68.6 mm
- Width: 53.4 mm
- Weight: 25 g

1.2.2 Breadboard:

Breadboard is a way of constructing electronics without having to use a soldering iron.


Components are pushed into the sockets on the breadboard and then extra 'jumper'
wires are used to make connections.

1.2.3 RT Clock:

A real-time clock (RTC) is an electronic device (most often in the form of an intergated
circuit) that measures the passage of time. Although the term often refer to the devices in
personal computer,severs and embedded systems, RTCs are present in almost any
electronic device wich need to keep accurate time of day.

9|Page
1.2.4 DHT 11:

Each DHT11 element is strictly calibrated in the laboratory that is extremely accurate on
humidity calibration. The calibration coefficients are stored as programmes in the OTP
memory,
which are used by the sensor’s internal signal detecting process. The single-wire serial
interface
makes system integration quick and easy. Its small size, low power consumption and up-to-
20
meter signal transmission making it the best choice for various applications, including those
most demanding ones. The component is 4-pin single row pin package. It is convenient to
connect and special packages can be provided according to users’ request.

10 | P a g e
1.3 Assembly

1.3.1 DHT11 (Temperature and Humidity) Sensor with Arduino UNO

Arduino Uno DHT11


GND GND
D2 Data
5V VCC

1.3.2 LED with Arduino UNO

11 | P a g e
Arduino Uno LED
-+ 11
GND GND

1.3.3 RT Clock with Arduino UNO

Arduino Uno RT Clock


VCC 5V
GND GND
CLK 7(digital)
DAT 6(digital)
RST 5(digital)

12 | P a g e
1.3.4 LCD with Arduino UNO

Arduino Uno LCD


GND GND
VCC 5V
SDA A4(analog)
SCL A5(analog)

1.4 Coding

1.4.1 Coding for Ariduno

For Example:

13 | P a g e
#include <LiquidCrystal_I2C.h>
#include <DHT.h>
#include <RTClib.h>
#include <Wire.h>
#include <LiquidCrystal.h>
byte thermometer[8] = //icon for termometer
{
B00100,
B01010,
B01010,
B01110,
B01110,
B11111,
B11111,
B01110
};

byte water[8] = //icon for water droplet


{
B00100,
B00100,
B01010,
B01010,
B10001,
B10001,
B10001,
B01110,
};
byte degree[8] =
{
0B01110,
0B01010,
0B01110,
0B00000,
0B00000,
0B00000,
0B00000,
0B00000
};
char daysOfTheWeek[7][12] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
const int DHTPIN = 9;
const int DHTTYPE = DHT11;
DHT dht(DHTPIN, DHTTYPE);
DS1302 rtc(5, 7, 6);
LiquidCrystal_I2C lcd(0x27,16,2);

14 | P a g e
void setup()
{
pinMode(11, OUTPUT);
Serial.begin(9600);
lcd.begin();
lcd.backlight();
lcd.createChar(1,thermometer);
lcd.createChar(2,water);
rtc.begin();
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
dht.begin();
}

void loop()
{
DateTime now = rtc.now();
float humd = dht.readHumidity();
float temp = dht.readTemperature();
lcd.setCursor(0, 1);
if(now.hour()<=9)
{
lcd.print("0");
lcd.print(now.hour());
}
else {
lcd.print(now.hour());
}
lcd.print(':');
if(now.minute()<=9)
{
lcd.print("0");
lcd.print(now.minute());
}
else {
lcd.print(now.minute());
}
lcd.print(':');
if(now.second()<=9)
{
lcd.print("0");
lcd.print(now.second());
}
else {
lcd.print(now.second());
}
lcd.print(" ");
15 | P a g e
lcd.setCursor(0, 0);
if(now.day()<=9)
{
lcd.print("0");
lcd.print(now.day());
}
else {
lcd.print(now.day());
}
lcd.print('-');
if(now.month()<=9)
{
lcd.print("0");
lcd.print(now.month());
}
else {
lcd.print(now.month());
}
lcd.print('-');
if(now.year()<=9)
{
lcd.print("0");
lcd.print(now.year());
}
else {
lcd.print(now.year());
}

if (isnan(temp) || isnan(humd))
{}else{
lcd.setCursor(11,0);
lcd.write(2);
lcd.print(":");
lcd.print(round(humd));
lcd.print("%");
lcd.setCursor(10,1);
lcd.write(1);
lcd.print(":");
lcd.print(round(temp));
lcd.write((char)223);
lcd.print("C");
}

if(round(humd) > 80){


digitalWrite(11, HIGH);
delay(100);
16 | P a g e
digitalWrite(11, LOW);
delay(100);
}
}

1.5 Cloud and Database

1.6 Coding for Smartphone App/Website

1.7 Clips and photos of the project (evidences) :

https://drive.google.com/file/d/1PebZn0gfCEnk2-
X359mwpJmqPkLoQJEO/view?fbclid=IwAR0vPNTtNafGfGsK98BbaVUToP514PsikPKyqF3FZhQ8F12YQ
Y5aEoVjODM

Picture project 1:

Picture project 2:

17 | P a g e
2. Run end user experiments then identify the perfect and incomplete points
in your system (P6)

2.1 Run end user experiments

Below is an image when we run the project test and output:

18 | P a g e
When we encounter errors the project will not run and we have to fix them below is an
example:

Our project error is that the DATE and TIME part will use __ instead of _, just need us to fix it
and the project can work normally again:

19 | P a g e
And below is a picture of the result of our project running on actual date and time and
current temperature and humidity:

20 | P a g e
21 | P a g e
This is a before and after picture of our project receiving high humidity levels, it will light up
a red LED to warn us:
Before:

22 | P a g e
After:

23 | P a g e
2.2 Perfect points

Advantages of the system

-The system has a distributed structure so it is easy to deploy and install


-The temperature and humidity monitoring system in the room can be monitored from
many places:
-Directly in the room
-Control room center
-Remote monitoring over the Internet
-Easily integrate and expand the system if necessary
-Can integrate more camera monitoring systems into the system
-It is easy to clean.
-It is simple in construction.
-It is lower in cost.
-It is usable in contaminated environments

2.3 Incomplete points

- Has a narrow temperature measurement range

- Nonlinear Operation
- Low durability

- Less stable
- It is difficult to use below temperature of 0oC and with lower humidities.
- Long term measurement is limited due to required water reserve and wick maintenance

3. Discuss the drawback in your system and solutions for improving (P7)
Drawback in my system:
Although our system is complete and can measure temperature, humidity, display the date
and time at the current time, it cannot work on mobile devices and applications so that
users can access and use more efficiently and quickly. It is also a difficult thing because this
is the 4.0 era and if it is not possible to use on mobile devices but only works on our devices,
we need must try to fix it.
Solutions for improving:

24 | P a g e
Our ultimate solution to overcome the above situation is to bring our data to the cloud and
mobile devices. That will take large team to complete perfectly as our team currently does
not We are big and don't have enough knowledge to do this, so we will try to fix it in the
future. When putting data in the cloud, it will work on websites and mobile apps and that
will help users quickly. access or download from ChPlay and AppStore. That will help our
project grow and more people know.

4. Concluson
In conclusion, this is a project to measure the temperature and humidity of the environment
to help us know specific measurements to prevent and deal with appropriately.

5. References
Docs.arduino.cc. 2022. [online] Available at: https://docs.arduino.cc/hardware/uno-rev3
En.wikipedia.org. 2022. Breadboard - Wikipedia. [online] Available at:
https://en.wikipedia.org/wiki/Breadboard
En.wikipedia.org. 2022. Real-time clock - Wikipedia. [online] Available at:
https://en.wikipedia.org/wiki/Real-time_clock
Adafruit Learning System. 2022. DHT11, DHT22 and AM2302 Sensors. [online] Available at:
https://learn.adafruit.com/dht
Arduino.cc. 2022. DHT sensor library - Arduino Reference. [online] Available at:
https://www.arduino.cc/reference/en/libraries/dht-sensor-library/
Epicenterus.org. 2022. Conference Center. [online] Available at:
https://www.epicenterus.org/what-we-do-2/conference-center?gclid=CjwKCAjw9-
KTBhBcEiwAr19ig8otO2dTyDqW8HIVohrVCu-IbYRHr1pG-
80QZbpEyGuvbHBL96cnERoCvAUQAvD_BwE
2022. [online] Available at: https://www.hpe.com/hk/en/solutions/internet-of-
things.html?jumpid=ps_4zcnlohmt_aid-520061462&ef_id=CjwKCAjw9-
KTBhBcEiwAr19ig725k1Ecac3TUyhSnG9ocwNQ5f5_ib9lxTRSy_n0sP4vDkElGt5LCRoC5mEQAv
D_BwE:G:s&s_kwcid=AL!13472!3!541149072661!e!!g!!what%20is%20iot!14392225172!124
957587503&

25 | P a g e

You might also like