Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ASM2 IoT

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 26

ASSIGNMENT 2 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 Nguyen Hai Anh Student ID BH00125

Class IT0502 Assessor name Ta Van Khoe

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

P3 P4 P5 P6 M3 M4 M5 D2

Page | 1
 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:

Page | 2
Table of Contents
I. Introduction............................................................................................................................................... 4
II. Outline a plan for an appropriate IoT application using common architecture, frameworks, tools,
hardware and APIs…………………………………………………………………………….........................................................5
1. Investigate architecture, frameworks, tools, hardware and API techniques available to develop IoT
applications (P3)....................................................................................................................................... 5
a. Architecture..................................................................................................................................... 5
b. Framwork (Ewings Framework)....................................................................................................... 6
c. Tools................................................................................................................................................. 7
d. Hardware....................................................................................................................................... 12
2. Determine a specific problem to solve using IoT(P4)........................................................................14
a. Problem definition......................................................................................................................... 14
b. Purpose of the project................................................................................................................... 14
c. Functions of the project................................................................................................................. 15
III. Develop an IOT application using any combination of hardware, software, data, platforms and services
.................................................................................................................................................................... 17
1. Employ an appropriate set of tools to develop a plan into an IoT application(P5)..........................17
2. Run end user experiments and examine feedback(P6)...................................................................21
IV. Conclusion............................................................................................................................................. 25
V. References.............................................................................................................................................. 26

Page | 3
I. Introduction
As we all know today, technology contributes a lot to people’s lives in fields such as industry,
agriculture, transportation, ... IOT or the internet of things is also contributing a lot to it. Here I am
in this assignment I will give the basics of internet of things and explore various forms of IoT
functionality. Then I’ll go over the standard architecture, frameworks, tools, hardware and APIs
available for use in IoT development. Next I will pick out the things needed to develop IoT
applications. Finally I eetermine a specific problem to solve using IoT and give a blueprint for that
project.

Page | 4
II. Outline a plan for an appropriate IoT
application using common architecture,
frameworks, tools, hardware and APIs
1. Investigate architecture, frameworks,
tools, hardware and API techniques
available to develop IoT applications (P3)
Here are the architectures, frameworks, hardware and tools to use for an IoT
project:

a. Architecture
While there are countless ways to build a complete IoT architecture from
start to finish, this architecture simplifies it into three basic building blocks:

o Sensing Layer : Sensors, actuators, and edge devices interacting


with the environment
o Network Layer :
 Discover, connect, and translate devices over the network and
coordinate with the application layer
 The IoT gateway is an important intermediary that acts as a
messenger and interpreter between the cloud and clusters of
smart devices.
o Application Layer:
 Processing and storing data with specialized services and
functions for users
 It communicates with the gateway, usually over wired or cellular
internet. The cloud can be anything from services like AWS or
Google Cloud, server farms, or even a company’s on-premises

Page | 5
remote server. It provides powerful servers and databases that
enable powerful IoT applications and integrates services such as
data storage, big data processing, filtering, analytics, 3rd party
APIs, business logic, alarms, monitoring, and user interfaces.

Figure 1 Architecture

b. Framwork (Ewings Framework)


• Ewings Framework gives us what we need to build ESP8266 IoT
applications easily and quickly. It’s basically designed on top of the
arduino-esp8266 class to make things easy for developers to understand.
• Ewings Esp frame structure:

Page | 6
Figure 2 Ewings Esp8266 Stack

• The ESP8266EX integrates an enhanced version of Tensilica’s L106


Diamond series 32- bit processor, with on-chip SRAM, in addition to its
Wi-Fi functions.
• Arduino has provided user-friendly libraries using the SDK APIs. Since
arduino has made its iot development environment easy to influence
developers, it is easy for us to develop applications with Arduino Ide. The
Ewings framework sits on top of the Arduino libraries.

c. Tools
• Arduino IDE o Arduino IDE is an open source software mainly used to
write and compile code into Arduino modules or other modules

Page | 7
o It makes compiling code so easy that even an average person with no
technical knowledge can do it.
o It has versions for operating systems such as MAC, Windows, Linux
and runs on Java platform with built-in functions and commands that
are important for debugging, editing and compiling code in the
environment. . o This environment supports both C and C++
languages.

Figure 3 Arduino IDE

o The Arduino IDE integrates with over 700 libraries, written and
shared by the publisher Arduino Software and members of the
Arduino community. We can utilize them for our own project without
spending any money. [ Arduino ]

Page | 8
Figure 4 Arduino Libraly

• Blynk
o Blynk is an open source software designed for IoT (Internet of Things)
applications. The application helps us to use remote hardware
control, can display sensor data, store data, transform data or do
many other things.
o Currently, Blynk supports 2 platforms, Android and iOS. You can
search on Blynk on AppStore and GooglePlay.

Page | 9
Figure 5 Blynk app

o The Blynk Platform has three main parts


 Blynk App : Blynk application allows to create interfaces for
projects dự

 Blynk Server: Responsible for two-way back-and-forth


communication between the phone and the hardware. We can
use Blynk’s server but will be limited to Enegry points.
 Blynk Library: A library containing popular platforms, making it
easier to communicate hardware with the Server [ Blynk ]

Figure 6 Blynk platform

• IFTTT o IFTTT is an intermediary web service that stands between two


services to perform a task when a condition occurs, IFTTT stands for If
This Then That. In which, If This (if this happens) will lead to Then That
(then do that), this is considered the operating principle of the
statement. That is, when there is any change on this application, through
IFTTT the other application will also work and change the same.
o The operation of IFTTT is based on the "condition" and
"enforcement" mechanism. That is, when a certain condition is
satisfied, the command will be executed.
o It has popular services such as google assistant, webhok, .... helps in
developing iot applications especially smart home.

Page | 10
o For example, when we execute the command to turn off the lights,
the blynk server immediately changes the state of the lights to the off
state [ IFTTT ]

Figure 7 IFTTT web service

• Google assistant
Virtual assistant can be understood as a complex programmed software.
Accordingly, it is possible to proceed with the execution of various
control commands. As well as carry out the implementation of user
requests. Such as conducting information search, following orders, etc.

Google Assistant was first introduced at the Google I/O conference in


May 2016 exclusively for the Pixel, Pixel XL, Google Home and Android
Wear 2.0 series. Then became popular on most Android phones, and
also iOS.

We only with the command "Oke Google" that we can control all the
devices in the house. Users no longer have to physically adjust devices
with switches like before. Which can completely control any device with
voice. [ Google asisstant ]

Page | 11
Figure 8 Google assistant app

d. Hardware
• The ESP8266 NodeMCU Lua CP2102 Wifi RF Transceiver Kit is a
development kit based on the ESP8266 Wifi SoC chip with an easy-to-use
design and it can directly use the Arduino’s compiler to program and
load the code.
• The ESP8266 NodeMCU Lua CP2102 Wifi Transceiver RF Kit is used for
applications that need to connect, collect data and control via Wifi
waves, especially IoT-related applications.

Page | 12
Figure 9 Esp8266 NodeMcu

• Pinout:

Figure 10 Pinout of Esp8266

Page | 13
2. Determine a specific problem to solve using IoT(P4)

a. Problem definition
As technology develops, smart homes will also appear more. A smart home
is a house in which electrical and electronic equipment is installed that can
be controlled or automated or semi-automatically. Replace humans in
performing one or several management and control operations. This
electronic system communicates with the user through an indoor electronic
board, a mobile phone application, a tablet computer or a web interface.

In this project, I will do a project " Make smart window locks with RFID
magnetic cards Arduino". This is a very convenient project for users, with
high applicability in life, especially in the era of industrialization.

b. Purpose of the project


The purpose of creating a smart door lock with an RFID (Radio Frequency
Identification) Magnetic Tag using Arduino can be many-faceted. Here are some
of the purposes and potential benefits of such a project:

1. Advanced security: Smart door locks with RFID add an extra layer of security
compared to traditional locks. RFID technology provides secure and convenient
access control.

2. Convenience: Users can unlock the door simply by swiping an RFID card,
eliminating the need to use a physical key. This can be especially useful in
situations where multiple people need access to a space.

3. Customization: Arduino allows customization of the smart lock system. You


can program different RFID tags to have different levels of access, allowing
selective access to different areas or at different times.

4. Integration with Home Automation Systems: Smart door locks can be


integrated into larger home automation systems. For example, you can link it to
lights, thermostats, or security cameras, creating a more comprehensive smart
home environment.

Page | 14
5. Audit Trail: Some RFID systems can keep a log of who accessed the door and
when. This can be useful for security purposes or tracking comings and goings in
a certain area.

6. Learning and skill development: Building a smart door lock using Arduino
provides hands-on opportunities to learn about RFID technology,
microcontrollers, programming, and electronic circuits. It can be a great
educational project for students and hobbyists.

7. Cost-effective solution: Depending on the complexity of the project, creating a


smart door lock using Arduino and RFID technology can be a cost-effective
alternative to commercial smart locks.

8. Prevent unauthorized access: The presence of a smart door lock can play a
role in preventing unauthorized access. Potential intruders may be discouraged
by advanced security features.

When undertaking a project like this, it's important to consider both the
technical aspects, such as programming the Arduino, as well as the practical
implications, such as user experience and reliability. In addition, attention should
be paid to system security to prevent manipulation or unauthorized access.
c. Functions of the project
1. RFID Module Integration:
- Connect RFID module to Arduino.
- Authenticate RFID card data.

2. Card Authentication:
- Verify card identity.
- Store authorized card IDs.

3. Lock Mechanism:
- Use servo/solenoid to control lock.
- Trigger on valid RFID card.

Page | 15
4. LED Indicators:
- Show lock status.
- Visual feedback for authentication.

5. Programming Logic:
- Handle authentication, timeouts, and manual override.
- Implement security features.

6. Enclosure and Physical Integration:


- Select suitable enclosure.
- Integrate with door mechanism.

7. Testing and Debugging:


- Thorough testing.
- Implement debugging features.

Page | 16
III. Develop an IOT application using any
combination of hardware, software, data,
platforms and services
1. Employ an appropriate set of tools to develop a plan into
an IoT application(P5)

1.1. My project design

Page | 17
1.2. Hardware

Page | 18
Page | 19
1.3. Photo of the project

Page | 20
2. Run end user experiments and examine feedback(P6)
2.1. List of survey questions and summary about the survey

List survey question about their smart device at home

Page | 21
Page | 22
Page | 23
Page | 24
IV. Conclusion
The conclusion, I personally think that IOT is useful and handy in life if you can apply it correctly and
reasonably. For a small demo project like this one, it is very easy to implement, my team only needs 1
month more research to complete it, but for a complete product that can be used and widely applied
More broadly in life, I may need a lot more time and work, we believe IOT will play an important role in
the development of industry and people's lives. Since then, this technology era will develop to the world
in general and Vietnam in particular.
We need to strive more in more projects in the future . And in the end we would like to express our
thankful for the 6 participants for help us with the survey.

Page | 25
V. References
Team, T.A. (2018) What is Arduino?, Arduino. Available at:
https://www.arduino.cc/en/Guide/Introduction (Accessed: 24 November 2023).

Internet of things (IoT): Blynk Framework for smart home: Kne Social Sciences (2023) KNE Publishing.
Available at:
https://knepublishing.com/index.php/Kne-Social/article/view/4128/8495#:~:text=Blynk%20is%20an
%20IoT%20platform,address%20on%20the%20available%20widgets. (Accessed: 24 November
2023).

(2023) What is IFTTT? – ifttt help center. Available at:


https://help.ifttt.com/hc/en-us/articles/115010325748-What-is-IFTTT- (Accessed: 24 November
2023).

Google assistant (2023) Wikipedia. Available at: https://en.wikipedia.org/wiki/Google_Assistant


(Accessed: 24 November 2023).

Page | 26

You might also like