Professional Documents
Culture Documents
Iot Based On Device Fault Detection Final Report 8TH SEM
Iot Based On Device Fault Detection Final Report 8TH SEM
A Report
Submitted by
SWEETY S. MUKHOPADHYAY 150173111018
MAUSAM B. PATEL 150173111024
DEPARTMENT OF
ELECTRONICS & COMMUNICATION ENGINEERING
VGEC
AHMEDABAD-382424
0
CERTIFICATE
Date:
Place:
1
CERTIFICATE
Date:
Place:
2
ACKNOWLEDGEMENT
This project report provides us with an opportunity to put into practice, the practical
knowledge acquired all through our academic career.
We are highly indebted to Prof. Maitri Patel, faculty member for her invaluable help
and guidance.
It is all blessing of our parents and well wishes that we have been going ahead in our
life and we take this opportunity to convey our deep sense of gratitude and respect to them.
We are happy to place on report our thanks to all the faculty members of my institution
for timely help during this project. At last we would like to express our heartfelt thanks to the
H.O.D of EC Department, Prof. Rajesh Thakkar and our respected parents.
Yours sincerely,
Sweety S. Mukhopadhyay (150173111018)
Mausam B. Patel (150173111024)
3
INDEX
TABLE OF CONTENT
CONTENTS PAGE NO
TITLE PAGE 0
CERTIFICATE 1
ACKNOWLEDGEMENT 3
TABLE OF CONTENT 4
LIST OF FIGURES 6
ABSTRACT 7
CHAPTER-1 INTRODUCTION 8
1.1 INTRODUCTION 9
1.2 PROBLEM SPECIFICATION 10
1.3 LITERATURE REVIEW 11
CHAPTER-2 BLOCK DIAGRAM 12
2.1 BLOCK DIAGRAM OF PROJECT 13
2.2 DISCRIPTION OF BLOCK 14
DIAGRAM
CHAPTER-3 CIRCUIT DIAGRAM 19
3.1 CIRCUIT DIAGRAM OF PROJECT 20
3.2 DISCRIPTION OF CIRCUIT 21
DIAGRAM
3.3 COMPONENT LIST 23
3.4 DISCRIPTION OF COMPONENT 24
LIST
CHAPTER-4 PROGRAMMING 31
4.1 PROGRAMMING OF SENSORS 32
4.2 PROGRAMMING OF WIFI 33
CHAPTER-5 CONCLUSION 35
5.1 CONCLUSION 36
5.2 FUTURE EXPANSION 37
5.3 ADVANTAGES 37
5.4 DISADVANTAGES 37
5.5 RESULT 38
REFEREANCES 39
APPENDIX 40
4
INDEX OF FIGURE
FIG. NO. CONTENT PAGE
NO.
2.1 BLOCK DIAGRAM 12
2.2.1 TEMPERATURE & 13
HUMIDITY SENSOR
2.2.2 ACS712 CURRENT 13
SENSOR
2.2.3 ARDUINO BOARD 14
2.2.4 CC3200MOD 15
EVOLUTION BOARD
3.1 CIRCUIT DIAGRAM OF 19
PROJECT
3.4.1 PIN DIAGRAMM OF 23
ARDUINO
3.4.2 ACS712 CURRENT 25
SENSOR PIN DIAGRAM
3.4.3 CC3200 MOD PIN 26
DIAGRAM
3.4.4 DHT11 SENSOR 29
5.5 RESULT OF FAULT 37
DETECTION ON
WEBPAGE
5
ABSTRACT
In today’s world Automation plays major role. Human efforts are reduced using
automation system which monitors and indicates any fault in the system. Any devices can
damage at any time. So it will take time to resolve damaged device. So now this device will
convert in to smart system. When any fault is generated in devices will send fault status to the
manufacturer server. So manufacturer can know faulty device quickly. Here, IOT concept is
used to detect and diagnose faults. IOT is a network of physical object or things embedded with
electronics, software, sensors, and network connectivity which use this object to collect and
exchange data. A system is developed which will automatically monitor the parameters such as
temperature, humidity, current, voltage with the help of sensors and generates alerts and take
intelligent decisions with the help of IOT (internet of things) concept.
A Fault is another word for a problem. It does not have to be result of a complete
failure of a piece of equipments. It could be hardware fault or software faults. For my project
IOT(Internet of things) continuously check the fault signal. If the fault signal is generated it
automatically sends the error(fault) signal without human to human interaction and shows the
real time data graphically on webpage.
6
Chapter 1
Introduction
7
1.1 INTRODUCTION
Fault detection process involves the monitoring of the systems current state through
the various sensors used in circuit that is compared with the normal operation of the system.
The difference between these values and the actual condition will generate the fault and display
the status on webpage.
8
1.2 PROBLEM SPECIFICATION
Automation plays major role. Any device can damage at any time. So it will take time
to resolve damaged devices. Aim of our project is to save the time between manufacturer and
customer.
To finding fault is time consuming in a devices. So, a system is developed which will
automatically monitor the parameters such as temperature, humidity, current, voltages and
generates alerts and display fault status on display webpage.
So, when any fault is generated in devices will send fault status to the manufacturer
server. So manufacturer can know faulty device quickly.
9
1.3 LITERATURE REVIEW
Now a day’s Automation plays major role. Human efforts are reduced using
automation system which indicates any fault in the system.
This project involves hardware and software parts (embedded system).to create
the system.In the end of this project we will document all hardware and software development
and provide a simulation model of the system.
10
Chapter 2
Block Diagram
11
2.1 Block Diagram of Project
12
2.2 Description of block diagram
1 DHT11
It is a low cost humidity and temperature sensor which provides high reliability
and long term stability. Here, when temperature increase it means that the DHT11 sensor cross
the threshold limit and generate fault signal which is high logic.
13
3 ARDUINO
The Arduino board is very easy to use as the user simply need to connect it to a
computer with USB cable. The Arduino board can take power from the USB connector or DC
plug. Micro-controller is called decision making device that is programmed with higher level
c language. In our project ATmega328 Arduino is used.
Arduino software runs on windows and linux operating system where the other
micro-controller are limited to windows. Arduino supports higher level C,C++ language. The
main advantage of Arduino is easy to use compare to other controller.
The micro-controller Arduino analyse the command and perform the action as
per the programming we had done in Arduino. programming is simple. Arduino is latest version
of micro-controller. Arduino control the circuit through programming.
4 CC3200
14
performance ARM Cortex-M4 MCU, allowing users to develop an entire application with a
single IC. The device is available in a QFN package that is easy to layout.
5 IOT(INTERNET OF THINGS)
IOT is the concept of connecting any device to the internet and to other
connected devices. The internet of things is a system of interrelated computing devices,
mechanical and digital machines, objects, animals or people that are provided with unique
identifiers and the ability to transfer data over a network without requiring human to human or
human to computer interaction.
For example (internet appliance) for coke machine the programmers could
connect to the machine over the internet check the status of the machine and determine whether
15
or not there would be cold drink awaiting them, should they decide to make the trip down to
the machine. IOT refers to billions of physical devices around the world that are now connected
to the internet, collecting and sharing data.
Devices and objects with built in sensors are connected to an Internet of things
platform which integrates data from the different devices and the most valuable information
with applications built to address specific needs.
In our project IOT based on device fault detection shows the faulty device on
webpage through IOT applications. It means it show that which device is faulty and where is
this particular device. It checks the parameter like temperature, humidity, current, voltage in
the particular device.
Any electronic devices can connect with this project. if the device has controlling
unit it means any mechanical or electronic device that can take intelligent decision on its own.
It could be anything smart phone, smart TV, smart washing machine, smart watch, smart car or
even smart bulb. IOT is simply connecting all the surrounding devices(things) to internet.
6 cloud
The cloud storage sounds like it has something to do with weather fronts and
storm systems, but it actually refers to saving data to an off-site storage system maintained by
a third party. Instead of storing information to your computer's hard drive or other local storage
device, you save it to a remote database. The Internet provides the connection between your
computer and the database.
cloud storage has several advantages over traditional data storage. For example,
if you store your data on a cloud storage system, you'll be able to get to that data from any
location that has Internet access. You wouldn't need to carry around a physical storage device.
7 WWW.thingspeak.com
Thingspeak is an open source data platform but you need to register to use it. After
registering, Login to your account and create a new channel with a voltage as one field,
16
temperature as second field, voltage as third field and current as fourth field.
Once a new channel is created, it will generate two API keys, namely, write API key
and read API key. Replace the line given below in the program with your write API key:
String API key= “--------------------------------- ”
Next, substitute Host_Name and password with your wifi name and wifi password in the two
lines given below in the program.
String Host_Name= “--------------------------------- ”
String Password = “--------------------------------- ”
The program should be verified with your wifi setup.
Once, sketch uploading is done, it will upload humidity and temperature values on Thingspeak
platform and you will be able to see it graphically in private view window. You want to change
channel or field name, you can change it from channel setting.
17
Chapter 3
Circuit diagram
18
3.1 Circuit Diagram of Project
19
3.2 Description of circuit diagram: -
This project mainly use CC3200mod and Arduino. Aim of our project is to save the
time between manufacturer and customer. Here we use components like DHT11 temperature
& humidity sensor, ACS712 current sensor, voltage sensing element, CC3200 mod & Arduino
as shown in our circuit diagram.
Arduino microcontroller is 32 pin IC. Where 6 pin is digital pin is analog and 14
pin is used in our project for temperature and humidity sensor DHT11 pin6 and pin 7 is used
for fault detection.
Analog pins in Arduino is used in our project for ACS712 current sensing and
voltage sensing. Here we use A0 (pin21) for current sensing and A1 (pin20) for voltage sensing
element.
20
Pin no. 9,10 we connected 3V3 voltage. Here we will give Arduino pin7 fault
pin to CC3200MOD pin8 (GPIO28). Here in pin31 we connected UFL antenna circuit and in
pin 35 we connected reset circuit. GPIO 1 and 2 means pin no. 46 and 47 we connected UART
TX and RX.
At last our fault pin is 18 is generated. The CC3200 device supports station
and access point mode. This is generally the default mode for wifi network. Any device capable
of behaving like a wireless client can be called a station. This mode is called station mode. So,
our fault status display on webpage.
21
3.3 Component List
I. Arduino Uno
II. ACS712
III. LED
IV. Resistor
V. Capacitor
VI. LCD
VIII. CC3200
IX. DHT11
22
3.4 DISCRIPTION OF COMPONENT LIST
3.4.1 Arduino
Pin Descriptions
➢ GND: Ground.
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected
for each bit). The Port B output buffers have symmetrical drive characteristics with
23
source capability. As inputs, Port B pins that are externally pulled low will source current if
the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition becomes
active, even if the clock is not running.
➢ Port C (PC5:0)
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for each
bit). The PC5...0 output buffers have symmetrical drive characteristics with both high sink and
source capability. As inputs, Port C pins that are externally pulled low will source current if
the pull-up resistors are activated. The Port C pins are tri-stated when a reset condition becomes
active, even if the clock is not running.
➢ PC6/RESET
If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the
electrical characteristics of PC6 differ from those of the other pins of Port C.
If the RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low level onthis pin
for longer than the minimum pulse length will generate a Reset, even if the clock is not running.
➢ Port D (PD7:0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each
bit). The Port D output buffers have symmetrical drive characteristics with both high sink and
source capability. As inputs, Port D pins that are externally pulled low will source current if
the pull-up resistors are activated. The Port D pins are tri-stated when a reset condition becomes
active, even if the clock is not running.
➢ VCC
AVCC is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be
externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be
connected to VCC through a low-pass filter. Note that PC6...4 use digital supply voltage, VCC.
➢ AREF
AREF is the analog reference pin for the A/D Converter.
3.4.2 ACS712
24
Fig. 3.4.2 ACS712 current sensor Pin Diagram
25
3.4.3 CC3200
26
Pin Attributes
MODULE MODULE PIN NAME TYPE DEVICE PIN NO MODULE PIN DESCRIPTION
PIN NO.
1 GND - Ground
2 GND - Ground
13 NC - 13 Reserved for TI
14 NC - 14 Reserved for TI
15 NC - 11 Reserved for TI
16 GND - Ground
17 NC - 12 Reserved for TI
27
mode for flashing.
27 GND - Ground
28 GND - Ground
30 GND - Ground
32 GND - Ground
33 NC - 38 Reserved for TI
to 3.6 V)
to 3.6 V)
38 GND - Ground
39 NC - 47 Leave unconnected
to 3.6 V)
43 GND - Ground
45 NC - 51 Reserved for TI
28
49 GPIO4 I/O 59 GPIO(1)
3.4.4 DHT11
29
Chapter 4
Programming
30
4.1 Programming of sensors
#include <dht.h>
dht DHT;
#define DHT11_PIN 6
void setup()
Serial.begin(9600);
void loop()
Serial.print("Temperature = ");
Serial.println(DHT.temperature);
Serial.print("Humidity = ");
Serial.println(DHT.humidity);
delay(1000);
31
4.2Programming of wifi
//Standard includes
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
// Initialization Includes
#include "app.h"
#include "main.h"
#include "pinmux.h"
#include "init.h"
int timeout_app=0;
extern unsigned char no_connection , no_internet;
//
//! \brief call to main Function
//!
//! \param[in] None
//!
//! \return None
//!
void main(void)
{
UART_PRINT("IN MAIN\r\n");
32
//Connect to Wi-fi Access Point
Wlan_connection();
while(1) {
UART_PRINT("while\r\n");
if(flag_STATUS)
{
UART_PRINT("RGB_Status_IF\r\n");
RGB_Status();
flag_STATUS = 0;
}
if(flag_RESET)
{
UART_PRINT("flag_RESET_IF\r\n");
flag_RESET = 0;
Reset_Handler();
if(no_internet == 5 || no_connection == 5)
{
Reset_app_Handler();
no_internet = 0;
no_connection = 0;
33
Chapter5
Conclusion
34
5.1 Conclusion: -
Now a days, automation is a major part. Earlier days monitoring takes place with
the help of CCTV cameras. And it requires continuous human monitoring. And it is not at all
easy task to continuous monitor system and also not efficient.In industries to reduce manual
overhead we Implemented this project using IOT( Internet of thing) concept. This IOT concept
monitor and control parameter such as (temperature, current, voltage , humidity) and inform
35
5.2 Future expansion
5.3 Advantages
❖ Time saving
5.4 Disadvantages
36
5.5 Result
37
References
http://www.ti.com/lit/ds/symlink/cc3200.pdf
https://en.wikipedia.org/wiki/Arduino_Uno
https://www.allegromicro.com/en/Products/Current-Sensor-ICs/Zero-To-
Fifty-Amp-Integrated-Conductor-Sensor-ICs/ACS712.aspx
https://www.electrical4u.com/voltage-sensor/
https://www.electronicshub.org/dht11-humidity-sensor-arduino/
https://en.wikipedia.org/wiki/Internet_of_things
https://en.wikipedia.org/wiki/ThingSpeak
https://gregstanleyandassociates.com/whitepapers/FaultDiagnosis/Projects/
projects.htm
38
Appendix
39