Professional Documents
Culture Documents
Internet of Things
ASSIGNMENT
No.2
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.
Grading grid
P5 P6 P7 M5 M6 D2 D3
1|Page
r Summative Feedback: r Resubmission Feedback:
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
Issue Date:
Date: 08/05/2022
Submission Format:
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
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:
4|Page
Learning Outcomes and Assessment Criteria
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
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.
Technical specifications
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:
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
11 | P a g e
Arduino Uno LED
-+ 11
GND GND
12 | P a g e
1.3.4 LCD with Arduino UNO
1.4 Coding
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
};
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");
}
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)
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
- 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