Bringing Digital Electronics More Closer To Daily Life: Arduino Based Security System
Bringing Digital Electronics More Closer To Daily Life: Arduino Based Security System
Bringing Digital Electronics More Closer To Daily Life: Arduino Based Security System
WHAT IS INSIDE?
Bringing Digital
Electronics More
Closer to Daily Life
Vinayaka K. V.
Sugeesh B. S.
P.R.N. Amrata Bharathi P.U.
College, Hebri
Block Diagram
Codes
Block Diagram
10
Bibliography
11
Today, security is of most important concern for many enterprises and industries. While
many types of Security Systems are manufactured by various companies and available at
different prices in the market, they have their own limitations and drawbacks. This
Security System tries to overcome these drawbacks and limitations. At the core of this
Security System is Freeduino Leonardo, a clone of Arduino Leonardo. At the sensor part
stands Photo resistor (LDR) and at the communication level stands C#, .NET applications.
What is Arduino?
Arduino is an open-source electronics platform based on easy-to-use software and
hardware. Its intended for anyone making interactive projects.
Why Arduino?
Because at low cost, it is more efficient than many ICs. More than that, it is
programmable. You can program it in C/C++. You can write and upload the program to
board as many times as you wish. After programming, PC is not required to run program.
Just connect the board to external power supply and head on!
using System;
using System.Diagnostics;
using System.IO;
using System.Web.Services;
public partial class Security_System : System.Web.UI.Page
{
[WebMethod]
public static void OpenEXE(String path)
{
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @path;
Process.Start(psi);
}
[WebMethod]
public static void OpenFolder(String path)
{
Process.Start(@path);
}
public static int CountFiles(String path)
{
DirectoryInfo dir = new DirectoryInfo(@path);
int count = dir.GetFiles().Length;
return count;
}
public string getTime()
{
DateTime now = DateTime.Now;
return now.ToString("F");
}
}
Number_Images
-folder_path : String
-folderx_path : String
+Number_Images() : void
+NumberImages(condition :bool) : void
+CountFiles() : int
Only get
accessor for
the datas is
public
get accessor
for data is
public
Constructer
to initialze
folders
Introduction:
Today floods are more frequent than ever due to Urbanization and many other things.
Not only urban areas are affected, but also Rural Areas are affected by these floods.
Especially in Rural Areas which are Agriculture dependent, flood not only causes loss of
lives, but also loss of Agricultural crops, due to which the lacking of particular crops and
hence increase in their rate can also occur. Lives can be saved with provisionary actions
taken by the Government, but crops cannot. This circuit and materials helps to save the
crops during flood seasons.
Future Ideas
Tharmacol can be replaced by floatable, weight withstanding and hydrophobic Nano
material.
RF transmitter can be increased its range to achieve longer distance.
C# program can be improved from console app to GUI app and can be enriched with
Exception Handling to achieve machine independency.
A real time system software can be developed to automate the things.
In SMS sending time efficiency can be achieved by using other service providers.
10
Read_Serial
-port : String
-arduino : SerialPort
-msgr : Send_Msg
+Read_Serial(port : String , mob_no :
String)
+action() : void
Send_Msg
+phone_number : String
+Send_Mag(phone_number : String)
+Send_SMS(txtMessage : String) : void
Start
Is true?
Initialize pin A1
and pin A2 for
INPUT
Read value from Arduino Serial
Is reading of A1 is
not equal to 5V?
False
Is value = 0
True
True
Print -1 on serial
Send_SMS( Flood )
Is reading of A1
is equal to 5V?
False
Read value from Arduino Serial
True
Print 0 on serial
once
False
Is reading of A2
is equal to 5V?
False
Is value = 1
True
Send_SMS( Flood Overflow)
True
Print 1 on serial
once
Bibliography:
11
Built with
z
Visual Studio
Reference
VV