Information Technology Final Report of Assignment 1&2: Unit: Internet of Things

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

BTEC FPT INTERNATIONAL COLLEGE

INFORMATION TECHNOLOGY
FINAL REPORT OF ASSIGNMENT 1&2
UNIT: INTERNET OF THINGS

STUDENT : HO THANH NGHIA


CLASS : BD-AF-1901-2
STUDENT ID : BDA180031
SUPERVISOR : PhD. Bui Thi Thanh Thanh
DANANG, JULY 2020
REPORT OF INTERNET OF THINGS

INSTRUCTOR/ SUPERVISOR/ ASSESSOR


Higher Grade Achievement (Where applicable)

Grade Descriptor Comment’s Grade Descriptor Comment’s


/tick /tick
LO1 Analyse what aspects of IoT are necessary and appropriate when
designing software applications
P1 Explore various forms M1 Evaluate the impact
of IoT functionality. of common IoT
architecture,
frameworks, tools,
hardware and APIs in
the software
development lifecycle.

P2 Review standard M2 Review specific


architecture, frameworks, forms of IoT architecture,
tools, hardware and APIs frameworks, tools,
hardware and APIs for
available for use in IoT
different problem-solving
development. requirements.

LO2 Outline a plan for an appropriate IoT application using common


architecture, frameworks, tools, hardware and APIs

P3 Investigate M3 Select the most


architecture, appropriate IoT
frameworks, tools, architecture,
hardware and API frameworks, tools,
techniques available to hardware and API
develop IoT applications. techniques to include in
an application to solve
this problem.

P4 Determine a specific M4 Apply your selected


problem to solve using techniques to create an
IoT. IoT application
development plan.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Higher Grade Achievement (Where applicable)

Grade Descriptor Comment’s Grade Descriptor Comment’s


/tick /tick
LO3 Develop an IoT application using any combination of hardware, software, data,
platforms and services.
P5 Employ an M5 Reconcile and
appropriate set of tools to evaluate end user
develop your plan into an feedback and determine
IoT application. advantages and
disadvantages of your
chosen IoT techniques.

P6 Run end user


experiments and
examines feedback.

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 Evaluate end user M6 Undertake a critical


review and compare
feedback from your IoT
your final application with
Application. the original plan.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Assignment Feedback

Formative Feedback: Assessor to Student

Action Plan

Summative feedback

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

REVIEWERS
Higher Grade Achievement (Where applicable)

Grade Descriptor Comment’s Grade Descriptor Comment’s


/tick /tick
LO1 Analyse what aspects of IoT are necessary and appropriate when
designing software applications
P1 Explore various forms M1 Evaluate the impact
of IoT functionality. of common IoT
architecture,
frameworks, tools,
hardware and APIs in
the software
development lifecycle.

P2 Review standard M2 Review specific


architecture, frameworks, forms of IoT architecture,
tools, hardware and APIs frameworks, tools,
hardware and APIs for
available for use in IoT
different problem-solving
development. requirements.

LO2 Outline a plan for an appropriate IoT application using common


architecture, frameworks, tools, hardware and APIs

P3 Investigate M3 Select the most


architecture, frameworks, appropriate IoT
tools, hardware and API architecture,
techniques available to frameworks, tools,
develop IoT applications. hardware and API
techniques to include in
an application to solve
this problem.

P4 Determine a specific M4 Apply your selected


Problem to solve using Techniques to create an
IoT. IoT application
development plan.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Higher Grade Achievement (Where applicable)

Grade Descriptor Comment’s Grade Descriptor Comment’s


/tick /tick
LO3 Develop an IoT application using any combination of hardware, software, data,
platforms and services.
P5 Employ an M5 Reconcile and
appropriate set of tools to evaluate end user
develop your plan into an feedback and determine
IoT application. advantages and
disadvantages of your
chosen IoT techniques.

P6 Run end user


experiments and
examines feedback.

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 Evaluate end user M6 Undertake a critical


review and compare
feedback from your IoT
your final application with
Application. the original plan.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Assignment Feedback

Formative Feedback: Assessor to Student

Action Plan

Summative feedback

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

ACKNOWLEDGMENTS
I sincerely thank PhD. Bui Thi Thanh Thanh who wholeheartedly guided me
through the course of learning and imparting knowledge about the subject so that I
could apply and complete this exercise.
However, in the process of doing the lesson, due to limited professional
knowledge, I still lack knowledge, evaluation, and presentation about the work. I hope
to receive the attention and suggestions of the teachers and teachers of the subject
to make my work more complete and complete.
Sincerely thank!

Da Nang, July 2020


Performed Student

HO THANH NGHIA

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

ASSURANCE
Learners declaration
The content of this thesis is made by me under the direct guidance of
lecturers PhD. Bui Thi Thanh Thanh.
I certify that the work submitted for this assignment is my own and research
sources are fully acknowledged.
Any unauthorized copying, copyright infringement, or fraud, I will take full
responsibility.
Date: July 2020 Student signature:

HO THANH NGHIA

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

TABLE OF CONTENT

INSTRUCTOR/ SUPERVISOR/ ASSESSOR.....................................................i


REVIEWERS.....................................................................................................iv
ACKNOWLEDGMENTS...................................................................................vii
ASSURANCE...................................................................................................viii
TABLE OF CONTENT.......................................................................................ix
LIST OF TABLES AND FIGURES...................................................................xii
LIST OF ACRONYMS.....................................................................................xiv
INTRODUCTION................................................................................................1
CHAPTER 1: IoT applications and design development overview (LO1).......2
1.1 IoT applications......................................................................................2
1.1.1 Smart city.........................................................................................2
1.1.2 Smart watch.....................................................................................2
1.1.3 IoT and poultry breeding, farm production......................................3
1.2 IoT architectures....................................................................................3
1.2.1 Sensors/actuator..............................................................................3
1.2.2 The internet gateways.....................................................................4
1.2.3 Edge analytics..................................................................................4
1.2.4 The data centre and cloud...............................................................4
1.3 IoT frameworks......................................................................................4
1.3.1 Amazon Web Service......................................................................4
1.3.2 Cisco................................................................................................4
1.3.3 Salesforce........................................................................................5
1.3.4 Microsoft Azure IOT Suite................................................................5
1.4 Tools.......................................................................................................5
1.4.1 Arduino IDE......................................................................................5
1.4.2 PlatformIO........................................................................................6
1.4.3 Eclipse IOT......................................................................................6
1.5 Hardware development..........................................................................7
1.5.1 Netduino...........................................................................................7
1.5.2 Raspberry Pi....................................................................................7

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

1.5.3 Particle.io.........................................................................................8
1.6 Software development...........................................................................8
1.6.1 Device Hive......................................................................................8
1.6.2 Kaa...................................................................................................9
1.6.3 Node-Red.........................................................................................9
CHAPTER 2: Plan for Metal detection robot car model (LO2)......................10
2.1 System overview..................................................................................10
2.1.1 Scope.............................................................................................10
2.1.2 Function of system.........................................................................10
2.2 System architecture.............................................................................10
2.3 Hardware required...............................................................................11
2.3.1 Module Wi-Fi ESP8266 NodeMCU...............................................11
2.3.2 LJ12A3 Proximity Metal Detecting Sensor....................................12
2.3.3 The H-bridge L298N......................................................................13
2.3.4 DC geared motor...........................................................................14
2.4 Software required.................................................................................14
2.4.1 App Blynk.......................................................................................14
2.4.2 Arduino IDE....................................................................................15
2.5 Plan......................................................................................................16
2.5.1 WBS...............................................................................................16
2.5.2 Schedule........................................................................................16
CHAPTER 3: Implementation and Results (LO3)..........................................17
3.1 Code for moto driven...........................................................................17
3.2 Code for ESP8266 nodeMCU..............................................................20
3.3 Code for LJ12A3 metal detection sensor.............................................21
3.4 LJ12A3 (Metal Detecting) Sensor with ESP8266 nodeMCU...............21
3.5 Configure LJ12A3 sensor parameters and engine control on App Blynk
22
3.5.1 Set metal parameters....................................................................22
3.5.2 LCD displays metal detection results............................................22
3.5.3 Configure control parameters on App Blynk..................................24
3.6 Some pictures of "Metal detection robot car model"............................25
CHAPTER 4: User Feedback and System Adjustments (LO4).....................26

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

4.1 User feedback and system tuning.......................................................26


4.1.1 User feedback question and Response from user........................26
4.2 Compare your original plan and the final system................................26
4.2.1 Scope.............................................................................................26
4.2.2 Risk................................................................................................27
4.2.3 Resource planning.........................................................................28
CONCLUSION.................................................................................................29
REFERENCES.................................................................................................30

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

LIST OF TABLES AND FIGURES


Figure 1-1: Introduction of smart city application in IoT................................................2
Figure 1-2: Smart wearable device...............................................................................2
Figure 1-3: Vehicle technology is connected................................................................3
Figure 1-4: Four layers of IoT architecture....................................................................3
Figure 1-5: Amazon Web Service Framework..............................................................4
Figure 1-6: Cisco Framework........................................................................................5
Figure 1-7: Salesforce Framework................................................................................5
Figure 1-8: Microsoft Azure IOT Suite Framework.......................................................5
Figure 1-9: Arduino IDE tools........................................................................................6
Figure 1-10: PlatformIO tools........................................................................................6
Figure 1-11: Eclipse IOT tool........................................................................................7
Figure 1-12: Netduino hardware platform.....................................................................7
Figure 1-13: The Raspberry Pi hardware platform........................................................8
Figure 1-14: The Particle.io hardware platform.............................................................8
Figure 1-15: DeviceHive software platform...................................................................9
Figure 1-16: Kaa software platform...............................................................................9
Figure 1-17: Node-Red software platform.....................................................................9
Figure 2-1: Metal detection robot car model...............................................................10
Figure 2-2: The architectural system of Metal detection robot car model...................11
Figure 2-3: Hardware components Module Wifi ESP8266 NodeMCU.......................12
Figure 2-4: Hardware components LJ12A3 Proximity Metal Detecting Sensor.........13
Figure 2-5: Hardware The H-bridge L298N................................................................13
Figure 2-6: Hardware DC geared motor.....................................................................14
Figure 2-7: App software Blynk...................................................................................15
Figure 2-8: Arduino IDE text editor..............................................................................15
Figure 2-9: WBS of Metal detection robot car model system.....................................16
Figure 2-10: Schedule for Metal detection robot car model application.....................16
Figure 3-1: LJ12A3 (Metal Detecting) Sensor with ESP8266 nodeMCU...................21
Figure 3-2: Set metal parameters...............................................................................22
Figure 3-3: LCD displays metal detection results.......................................................23
Figure 3-4: Configure control parameters on App Blynk.............................................24
Figure 3-5: Breadboard with LJ12A3 (Metal Detecting) , ESP8266 nodeMCU..........25

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 3-6: Final product.............................................................................................25


Figure 4-1: User feedback...........................................................................................26
Y
Table 1: Scope of the project......................................................................................27
Table 2: Risks of project..............................................................................................28
Table 3: Resource planning of the project..................................................................28

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

LIST OF ACRONYMS
IoT Internet of Things
API Application Programming Interface
AC Alternating current
DC Direct Current
IC Integrated Circuit
IDE Integrated Development Environment
DSA Supervisory Control and Data Acquisition
AWS Amazon Web Service
LCD Liquid-Crystal Display

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

INTRODUCTION
Today, with the development of technology 4.0, IoT has become the most
strongly developed technology industry in the world and applied by humans in reality
to make life more and more modern. The introduction of IoTs to life has made
significant achievements in the economic industry around the world; IOT helps
people control things more quickly, help solve troublesome and complex problems,
discover incidents, reducing workers in factories instead thanks to working machines
that help us. Not stopping there, the IoT has exploded and evolved further and
showed everyone the potential of IoT's future in amazing numbers. According to ABI
Research (a technology company) estimated that more than 30 billion devices will be
wirelessly connected to everything by 2020, which shows how huge the IoT metrics
will be in our future. When everything internalized, people can control everything with
just one phone with internet connection. The IoT is also our human future, where
everything has the ability to exchange information and data through a single network
without the need for human interaction. In the future of this technology industry,
people will be able to create intelligent entities that are self-aware and able to
function according to different situations and environments. In addition, the IoT can
also help people in other industries such as for the medical industry, IoT devices can
used to monitor people's health remotely and will notify emergency if users have
unusual symptoms. In traffic, the IoT supports us with information about monitoring
issues and handling traffic safety violations.
Some IoT applications in life such as smart home, smart car, surveillance
system, and virtual power plant, automatic face recognition system, smart city ... In
this project; I have research on the topic “Apply IoT technology to design intelligent
systems for metal detection robot vehicles ". My purpose in this assignment is to
develop product plan, review of frameworks and hardware and software platforms of
the application.
The most popular hardware frameworks and platforms today include Amazon
Web Service, Cisco, Salesforce, Microsoft Azure IoT Suite…
The most popular software frameworks and platforms today include Device
Hide, Kaa, and Node-Red…
My report consists of four chapters:
- Chapter 1: Overview of IoT application analysis, design and development.
- Chapter 2: Hardware equipment analysis, software and design framework.
From there, plan to build the "Metal detection robot car model" product.
- Chapter 3: Implementation and Results.
- Chapter 4: User Feedback and System Adjustments.
In the era of technology 4.0, the deployment of IoT applications into reality
makes sense to reduce effort, time and work in places with harsh conditions that can
not accessed by humans. Since then, I built the "Metal detection robot car model"
that can help people a IoT in metal mining as well as other rare metals such as gold,

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

silver ... This helps the foundation. The economy can thrive thanks to IoT technology
when machines can operate efficiently instead of humans.

CHAPTER 1: IoT applications and design development


overview (LO1)
1.1 IoT applications
In life, there are many IoT applications and here I will name a few specific
applications:
1.1.1 Smart city
Application of smart city in IoT is an application that helps to solve problems
that big cities often encounter such as: environmental pollution, traffic accident,
traffic congestion, lack of energy. With smart city it will have smart functions
including: automatic monitoring, automatic management of water and energy
systems, monitoring urban security and monitoring of environmental issues of
the city. Users can easily download apps and use smart wearables they will
easily find the places they want to go.

Figure 1- : Introduction of smart city application in IoT

1.1.2 Smart watch


This is a smart watch with the functions it offers is unbelievable. It can check
the health of users through its connection with smart medical devices. Its
features include: display notifications, heart rate measurement, calories you
have consumed, step count, distance calculation and emergency notification
when you have symptoms of illness. The collected data will be analyzed the
device user's health and the manufacturer will have the device to fight them.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: Smart wearable device

1.1.3 IoT and poultry breeding, farm production


This application uses IoT technology that allows us to collect animal health
data, so that the rancher can learn about livestock health issues to fortify and
prevent diseases. With the collected data, the farm owner will save time, cost
and increase the number of cattle and poultry rapidly.

Figure 1-: Vehicle technology is connected

1.2 IoT architectures


The four stage IoT solution architecture:

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: Four layers of IoT architecture

1.2.1 Sensors/actuator
Sensors are used to collect measure and collect data from the environment.
Actuators are used to alter physical conditions to generate data, such as
closing a power supply, sensing and regulating airflow and monitoring a
person's heart rate. It allows wired LAN devices to work without A / C power
supply.
1.2.2 The internet gateways
The smart portal builds on gateway functions by adding capabilities such as
analysis, malware protection, data management and real-time data analysis.
The data from the sensor transmitted through the gateway. Data acquisition
system (DSA) converts and aggregates this data, then the internet gateway
receives the data and digitizes it over Wi-Fi or wired WLAN and passes it over
to the Edge system for further processing.
1.2.3 Edge analytics
Edge analytics processing system allows faster time response in processing
and analyzing IoT data. Edge systems can be in locations as far away or as
those closest to the sensor.
1.2.4 The data centre and cloud
Cloud-based data systems are designed to securely process, analyze and
manage data with large amounts of data using Machine Learning technology.
1.3 IoT frameworks
Here, I will review some of the popular frameworks in IoT:
1.3.1 Amazon Web Service

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

A platform that provides cloud services and data security through AWS. AWS
also operates on virtual private clouds, which help to improve application
features.

Figure 1-: Amazon Web Service Framework

1.3.2 Cisco
Used to manage and store data in the cloud, and Cisco virtualization Packet
Core solutions can power scale for services more quickly and efficiently.

Figure 1-: Cisco Framework

1.3.3 Salesforce
Powered by Thunder and is a tool used to connect data from the Internet.

Figure 1-: Salesforce Framework

1.3.4 Microsoft Azure IOT Suite


Powered by Microsoft and a collection of open source code that can be run on
a variety of operating systems and devices. It is pre-programmed and
preconfigured to deliver virtual devices in the cloud without the need to
connect to any other device. With Microsoft Azure IOT Suite, we can improve
and accelerate cloud operations.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: Microsoft Azure IOT Suite Framework

1.4 Tools
The following are some of the development tools in IoT:
1.4.1 Arduino IDE
It is an open source tool with integrated simple IoT platform that makes
it easy for users to use software, hardware and other electronic components.
In addition, the Arduino software uses the Java embedded programming
language and the integrated programming environment is IDE.

Figure 1-: Arduino IDE tools

1.4.2 PlatformIO
Is an IOT development tool based on a cross-platform development
environment? PlatformIO supports IDE libraries and you can customize the IDE
override the Atom editor to supplement it. In addition, PlatformIO is further developed
with over 200 compatibility boards, debugging feature and making it possible to
observe the serial ports.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: PlatformIO tools

1.4.3 Eclipse IOT


It is an open source technology and support for IoT platform applications.
Eclipse IoT is a highly recommended product for building IoT devices,
Gateways, and cloud platforms. In addition, Eclipse IoT also uses open IoT
technologies with major projects and services around the world.

Figure 1-: Eclipse IOT tool

1.5 Hardware development


Here, I will review some of the popular hardware platforms in IoT:
1.5.1 Netduino
Open source hardware platform used with STMICRO STM32F4 controller and
running in .net Micro Framework. The features of Netduino are very diverse; it
is equipped with built-in Ethernet with Wi-Fi connection and uses components
like UART, I2C, SPI and SD card.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: Netduino hardware platform

1.5.2 Raspberry Pi
Is a credit card that runs on Linux platform? Raspberry Pi features such as
USB port for mouse, keyboard ... HDMI port for display and an Ethernet port
for wired internet connection.

Figure 1-: The Raspberry Pi hardware platform

1.5.3 Particle.io
It is an IoT hardware platform and is used to support Wi-Fi. Its features are
used using STM32 Arm Cortex m3 and Broadcom Wi-Fi chip. In addition, its
cloud platform allows users to be accessed from anywhere from their local
network.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: The Particle.io hardware platform

1.6 Software development


Here, I will review some popular software platforms in IoT:
1.6.1 Device Hive
This is a free and open source software for development in IoT applications.
APIs over the internet help Device Hive remotely control devices through
network configuration. Protocol and open source libraries control it.

Figure 1-: DeviceHive software platform

1.6.2 Kaa
This is a software used to support devices that are connected in the cloud.
Kaa has key features such as easy to set up and provides many features on
this platform, it can interface on many hardware devices including: ports,
sensors ... In addition, middleware allows developers can create connected
applications and smart products.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 1-: Kaa software platform

1.6.3 Node-Red
This is a visual tool to build in the IoT. It is built on top of node.js along with the
hardware and online services. Node-Red can also run on Raspberry Pi and
have access to over 60,000 different modules.

Figure 1-: Node-Red software platform

CHAPTER 2: Plan for Metal detection robot car model


(LO2)
2.1 System overview
“The Metal Detection Robot Car Model Application" allows the car to detect
the metals around it and functions to drive the vehicle through the app. The
benefits of model surveillance vehicles: making it possible for us humans to
detect small and large metal objects in different environments. It can also detect
bombs, mines and rare metals such as gold, silver...

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 2-: Metal detection robot car model

2.1.1 Scope
 A surveillance vehicle designed to run on all terrestrial obstacles.
 It still has many limitations as not being able to move underwater.
 The use time is only about a few hours due to the low battery backup.
 The engine is controlled via the Wi-Fi network, so it can only be controlled
within a certain range.
 The security of the application is not high.
2.1.2 Function of system
The main functions of the “Metal detection robot car model” system:
 We can control the metal detection sensor vehicle model through the blynk
app; it can control the car to go left, right, up, down.
 The system has LED lights for alarm.

2.2 System architecture


Functions of architectural blocks:
 Power PIN block: supply power for the whole circuit system operation.
 Metal detection sensor block: detects metal then responds to Arduino Ano
R3 central control block.
 ESP8266 NodeMCU Wifi Module Block: is used to communicate between
Arduino Ano R3 central block and phone, is an intermediate bridge to receive
data from the phone and then send to the central block to handle control
operations and receive reverse data from the center block to display on the
phone.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

 DC motor control power block: receives the signal from the central control
unit to control the motor.
 App Blynk: Receive notifications and control the movement engine.

Figure 2-: The architectural system of Metal detection robot car model

2.3 Hardware required


Here, I will list a few of the hardware in this project:
2.3.1 Module Wi-Fi ESP8266 NodeMCU
ESP8266 is a built-in Wi-Fi microcontroller developed by Espresso Systems.
ESP8266 with built-in microcontroller and Wi-Fi helps to make love faster and can
perform countless tasks with simple TCP / IP to perform applications, especially IoT
applications. Wi-Fi modems all support the IEEE 802.11n standard and operate at
the 2.4 GHz frequency. Developed by ESP8266, nodeMCU is used to connect,
collect information and control via Wi-Fi network. Furthermore, nodeMCU is a special
version of Arduino microcontroller series so it is used directly for programming and
loading code in Arduino.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 2- : Hardware components Module Wifi ESP8266 NodeMCU


Detailed specifications:
 ESP8266EX chip
 Supply voltage: DC 5-9V
 Wi-Fi: 2.4Ghz supports 802.11 / b / g / n standards
 Security support: WEP / WPA-PSK / WPA2-PSK
 Flash memory: 32MB
 Connection port: support USB-TTL CP2102 with Micro-USB port
 Communication protocol: UART, SPI, I2C ...
 GPI16 status LED
 Compatible with Arduino IDE
 Up on the languages: C ++, Java, Micro python.
 Number of I / O pins: 11
 Number of Analog pins: 1 (maximum voltage is 3.3V)
 Flash memory: 4MB
 Communication: Cable Micro USB
2.3.2 LJ12A3 Proximity Metal Detecting Sensor
The LJ12A3 metal proximity sensor detects metal without touching an object
suitable for an automatic switch.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 2- : Hardware components LJ12A3 Proximity Metal Detecting Sensor


Detailed specifications:
 Model: LJ12A3-4-Z / BX
 Discovery: Metal.
 Source: 6 -> 36VDC
 Current consumption: 300 mA
 Measuring range: 0 -> 4mm
 Output: NPN open collector
 Diameter: 12 mm
2.3.3 The H-bridge L298N
L298N motor control module is a module integrated with 2 H-bridge circuits
inside so it can be used to control 2 DC motors. The IC heatsink module allows the
IC to control with 2A peak current. The L298N is attached to the on-board diodes to
help protect the microprocessor against the induced currents from turning on / off the
motor.

Figure 2-: Hardware The H-bridge L298N

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Detailed specifications:
 Driver L298N has two integrated H-bridge circuits
 Load control voltage: 5V-12V
 Maximum current per H bridge is: 2A per motor
 Voltage of control signal: 5V-7V
 Wasted power: 20W
 Current of control signal: 0-36mA
 Operating temperature: -25 ° C to 130 ° C
2.3.4 DC geared motor
DC geared motors are used to control vehicles running back and forth, turning
left, right rotation. It is operated at a maximum speed of 44m / min at 6V to 8V.
Speed control by pulse width modulation via I / O pins on the module.

Figure 2- : Hardware DC geared motor


Detailed specifications:
 Operating voltage: 3V to 9V (works well at 6V to 8V).
 Maximum torque: 800gf cm min 1:48 (3V).
 No-load speed: 125 rpm (3V), (with 66mm wheel: 26m / 1min), 208 rpm (5V),
(with 66mm wheel: 44m / 1 min).
 No-load current: 70mA (maximum 250mA).

2.4 Software required


2.4.1 App Blynk
Your phone will be connected to the Blynk app. The Blynk App has the
function of being able to turn the LEDs on and off, change the intensity of the light
with the slider and see the temperature.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 2-: App software Blynk

2.4.2 Arduino IDE


It uses java programming language and IDE text editor to write code and then
it will upload code directly to Arduino board.

Figure 2- : Arduino IDE text editor

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

2.5 Plan
2.5.1 WBS

Figure 2- : WBS of Metal detection robot car model system

2.5.2 Schedule

Figure 2- : Schedule for Metal detection robot car model application

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

CHAPTER 3: Implementation and Results (LO3)


3.1 Code for moto driven

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

3.2 Code for ESP8266 nodeMCU

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

3.3 Code for LJ12A3 metal detection sensor

3.4 LJ12A3 (Metal Detecting) Sensor with ESP8266 nodeMCU

Figure 3-: LJ12A3 (Metal Detecting) Sensor with ESP8266 nodeMCU

NodeMCU ESP8266 LJ12A3(Metal Detection)


3V3 VCC(5V)
GND GND
D4 OUT

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

3.5 Configure LJ12A3 sensor parameters and engine control on


App Blynk
3.5.1 Set metal parameters
- In LCD: Name the Metal.
- INPUT: Configure the PIN to be connected, here I choose Virtual> V5
(0 ~ 1023) and exchange it (0 ~ 50).
- REFRESH INTERVAL: Enter speed of reading sensor of metal detector
Push select (sec).

Figure 3-: Set metal parameters

3.5.2 LCD displays metal detection results


Upload the program and see the results:

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Figure 3- : LCD displays metal detection results

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

3.5.3 Configure control parameters on App Blynk


Through the app blynk can control the car to go forward, backward, right, left.

Figure 3-: Configure control parameters on App Blynk

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

3.6 Some pictures of "Metal detection robot car model"

Figure 3-: Breadboard with LJ12A3 (Metal Detecting) , ESP8266 nodeMCU

Figure 3-: Final product

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

CHAPTER 4: User Feedback and System Adjustments


(LO4)
4.1 User feedback and system tuning
4.1.1 User feedback question and Response from user
1. How would you rate my product?
User reply: In my opinion, your product is very good and easy to use. It will be
a very developed product in the future.
2. Do you think the product on my side has potential?
User reply: I think your product is very potential because it is using modern
high technology to make it easier for people to exploit rare metals without needing
more time and effort than before.
3. Do you want to recommend my products to others?
User reply: I will definitely recommend your product to everyone because it is
very convenient in detecting rare metals and easy to use by humans.
4. How do you rate when my products are applied in practice
My product is highly appreciated by everyone when applying it in practice.

Figure 4-: User feedback


Conclusion: After receiving feedback from 8 users, my product is rated 87.5%
by users when applied in practice and 12.5% rated by users as bad for my product
when apply in practice.
4.2 Compare your original plan and the final system
4.2.1 Scope

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Scope Project Constraint Scope Control


Description of the Deliverables
plan

In this project, I The system's metal It still has many Since I had trouble
planned to detection sensor limitations as not choosing the topic
implement the idea worked very well at being able to move at first, the
and detail the idea. the end of the underwater and progress of the
Next is followed by project. When The use time is project was a bit
detailing the time it metal is detected, only about a few slow, but in the
takes to design an the sys-tem will hours due to the end I completed it
application and notify users of their low battery the best.
outlining the costs phones once they backup.
for the components have installed the The security of the
used in the Blynk app. application is not
application. Finally, high but I have
evaluate of my fixed that.
application.

Table : Scope of the project

4.2.2 Risk
Risk
Risk Description Probability Solution Risk happend

Cost Medium This project costs Yes, but not much


quite a lot more
than expected.

Bugs High I had trouble Yes


running the chapter
in nodeMCU
ESP8266 module
but then I got it
fixed.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

Time Low I ran into a bit of No


timing trouble
when implementing
the project but it
was just a small
bug and I fixed it
quickly.

Table : Risks of project

4.2.3 Resource planning


No Resource Detail/Planning Actual resource
planning
1 Human 1 programmer 1 programmer
2 Software - Arduino IDE Arduino IDE
- App Blynk - App Blynk
3 Equipment - Arduino - Arduino
equipment (Circuit equipment (Circuit
boards and wiring) boards and wiring)
- ESP8266 - ESP8266
NodeMCU Wifi NodeMCU Wifi
Module Module
- LJ12A3 Proximity - LJ12A3 Proximity
Metal Detecting Metal Detecting
Sensor Sensor
- The H-bridge - The H-bridge
L298N L298N
- DC geared motor - DC geared motor
4 Device Computer Computer

Table : Resource planning of the project

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

CONCLUSION
In the era of technology 4.0, the deployment of IoT applications into practice is
as essential to help people reduce effort and time. Through the project "Metal
detection robot car model" that I designed, it can help a lot for people in metal mining
as well as other rare metals such as gold, silver... This makes the economy possible
to thrive thanks to IoT technology when machines can work effectively on behalf of
us humans.
Through this report I was able to design IoT products by myself. Despite many
shortcomings, I also successfully completed the project.

STUDENT: HO THANH NGHIA | BDA180031


REPORT OF INTERNET OF THINGS

REFERENCES
 [1] IoT applications [online] Available at: https://bkaii.com.vn/tin-tuc/222-10-
ung-dung-the-gioi-thuc-cua-internet-of-things [Accessed 15 July. 2020]

 [2] IoT architectures [online] Available at: https://techbeacon.com/enterprise-


it/4-stages-iot-architecture [Accessed 15 July. 2020]

 [3] IoT frameworks [online] Available at: http://www.iotleague.com/list-of-10-


iot-frameworks-and-platforms/ [Accessed 15 July. 2020]

 [4] Tools [online] Available at: https://www.educba.com/iot-tools/ [Accessed 15


July. 2020]

 [5] Hardware development [online] Available at:


https://www.gadgetronicx.com/10-best-iot-hardware-platforms/ [Accessed 15
July. 2020]

STUDENT: HO THANH NGHIA | BDA180031

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy