SlideShare uma empresa Scribd logo
1 de 41
1 | P a g e
DEDICATION
I dedicate my thesis work to my family and many friends. A special
Feeling of gratitude to my loving parents, whose words of encouragement
And push for tenacity ring in my ears
I also dedicate this dissertation to my many friends and the Electrical Engineering Department
family who have supported me throughout the process.
I will always appreciate all they have done.
2 | P a g e
ACKNOWLEDGEMENTS
I thank Almighty God for giving me the courage and the determination, as well as guidance
in conducting this thesis, despite all difficulties.
I also extend my heartfelt gratitude to my supervisor Dr. Imad Ibrik. You were so wonderful
to me. You made me believe that I had so much strength and courage to preserve even when
I felt lost. You showed me light in a tunnel where everything was dark. You were very
tolerant and determined to see me through. You were such a wonderful motivator even when
the coping seemed tough for me. I aspire to emulate you.
Finally, I thank all those who assisted, encouraged and supported me during this research, be
assured that the lord will bless you all for the contributions you made.
3 | P a g e
DISCLAIMER
This report was written by student at the Electrical Engineering Department, Faculty of
Engineering, An-Najah National University. It has not been altered or corrected. Other than
editorial corrections, as a result of assessment and it may contain language as well as content
errors. The views expressed in it together with any outcomes and recommendations are solely
those of the students. An-Najah National University accepts no responsibility or liability for the
consequences of this report being used for a purpose other than the purpose for which it was
commissioned.
4 | P a g e
Table of Contents (TOC)
Chapter 1: Introduction ………………… .....................................................................8
Chapter 2: Standards………………………………………………………………… 11
Chapter 3: Literature Review ......................................................................................12
Chapter 4: Methodology ..............................................................................................14
Chapter 5:Results and Analysis………………………………………………………24
Chapter6: Conclusion and Recommendation…………………………………………31
References:………………………………………….………………………………..32
Appendix:…………………………………………………………………………….33
5 | P a g e
List of Figures (LOF):
Figure 1 ......................................................................................................................................... 14
Figure 2 ......................................................................................................................................... 15
Figure 3 ......................................................................................................................................... 15
Figure 4 ......................................................................................................................................... 16
Figure 5 ......................................................................................................................................... 16
Figure 6 ......................................................................................................................................... 18
Figure 7 ......................................................................................................................................... 18
Figure 8 ......................................................................................................................................... 20
Figure 9 ......................................................................................................................................... 21
Figure 10 ....................................................................................................................................... 21
Figure 11 ....................................................................................................................................... 22
Figure 12 ....................................................................................................................................... 22
Figure 13 ....................................................................................................................................... 23
Figure 14 ....................................................................................................................................... 26
Figure 15 ....................................................................................................................................... 27
Figure 16 ....................................................................................................................................... 29
6 | P a g e
List of Figures (LOF):
Table 1........................................................................................................................................... 25
Table 2........................................................................................................................................... 27
Table 3........................................................................................................................................... 28
7 | P a g e
Abstract
 Why do you think this project is important? Please explain the significance of this
Project in brief.
Monitoring and performance analysis of solar PV plants have become extremely critical due
to the increasing cost of operation and maintenance as well as reducing yield due to
performance degradation during the life cycle of the plant equipment’s. This becomes
essential to ensure high performance, low downtime and fault detection in a solar PV power
plant. On-site weather data, production data from the panel strings, inverters and
transformers are required to be continuously collected for monitoring and analysis of
performance. Data acquisition from AC and DC control panels are further required for
operational monitoring and control of the plant and substation. A well designed monitoring
and analytics system assists in reducing the cost of operation and maintenance.
 In your point of view what are the important aspects that should be covered in the project?
 Elements of PV/ Control of PV/ Monitoring of PV/Performance and Evaluation.
 Objective(s): In your view, please explain the main objectives of the project.
 Real-time snapshot of plant status.
 Supervision and plant operation (alarms).
 In-plant preventive and corrective maintenance tool.
 Dashboards for easy visualization of data and communication with devices.
 Methodology: Give a brief outline of the application development process.
We’ll design and build a system that monitor the operation of the PV-Power stations in terms
of the Array Voltage, Array Current, Array Power, Module Temperature, Ambient
Temperature, Global Irradiance, Global Irradiation. This system will also include an alarm,
which warns in any faulty case with any of the solar cells.
8 | P a g e
Chapter 1:
Introduction
An automatic weather station (AWS) is an automated version of the traditional weather station,
either to save human labor or to enable measurements from remote areas. An AWS will typically
consist of a weather-proof enclosure containing the data logger, rechargeable battery, telemetry
(optional) and the meteorological sensors with an attached solar panel or wind turbine and
mounted upon a mast. The specific configuration may vary due to the purpose of the system. The
system may report in near real time via the Argos System and the Global Telecommunications
System, or save the data for later recovery. In the past, automatic weather stations were often
placed where electricity and communication lines were available. Nowadays, the solar panel,
wind turbine and mobile phone technology have made it possible to have wireless stations that
are not connected to the electrical grid or telecommunications network.
Sensors
Most automatic weather stations have:
 Thermometer for measuring temperature.
 Anemometer for measuring wind speed.
 Wind vane for measuring wind direction.
 Hygrometer for measuring humidity.
 Barometer for measuring atmospheric pressure.
9 | P a g e
Some stations can also have:
 Ceilometer for measuring cloud height.
 Present weather sensor and/or visibility sensor.
 Rain gauge for measuring liquid-equivalent precipitation.
 Ultrasonic snow depth sensor for measuring depth of snow.
 Pyranometer for measuring solar radiation.
Data-logger:
The data-logger is the heart of the Automatic Weather Station.
The main function of a data-logger are:
 Measures: the data-logger collects the information of each sensors and archive it.
 Calculation: the data-logger processes most of the meteorological data for the users (avg,
min, max...).
 Data storage: the data-logger saves all the data either on it own memory or on uSD
memory card.
 Power supply: the data-logger manages the power supply of the Automatic Weather
Station such as solar panel.
 Communication: the data-logger does manage the communication protocols with the
remote server. The different communication protocols are usually GSM, GPRS, RTC,
WIFI, uSD, and RS232.
10 | P a g e
PowerSupply
The main power source for an automatic weather station depends on its usage. Many stations
with lower power equipment usually use one or more solar panels connected in parallel with a
regulator and one or more rechargeable batteries. As a rule of thumb, solar output is at its
optimum for only 5 hours each day. As such, mounting angle and position are vital. In the
Northern Hemisphere, the solar panel would be mounted facing south and vice versa for the
Southern Hemisphere. The output from the solar panels may be supplemented by a wind turbine
to provide power during periods of poor sunlight, or by direct connection to the local electrical
grid.
The Problem we have is accessing the data, as we have different weather stations distributed in
different places around the west bank, accessing data became a problem as we always need to
visit each location separately to get the data. Which takes a lot of time as well as cost of
transportation to access to each location. So we proposed to build a device which will allow us to
transfare data wireless from each location to a control and monitoring room in two different
ways one buy uploading the measurements on a website that can be accessed from anywhere
and the other way is transfaring data via text messages to the responsible person only and he will
have the ability to control some applications by sending text messages.
11 | P a g e
Chapter 2: Constrains, standards / codes and earlier course work
Photovoltaic Standards – PV Systems
In this category various standards regulating modes of photovoltaic system functioning
supervision or standards advising planning and implementation of such systems can be found.
The category includes safety regulations, which have to be considered upon photovoltaic systems
implementation.
IEC 60364-7-712 Electrical installations of buildings - Part 7-712: Requirements for
special installations or locations - Solar photovoltaic (PV) power supply
systems.
IEC 61727 Photovoltaic (PV) systems - Characteristics of the utility interface.
IEC 61683 Photovoltaic systems - Power conditioners - Procedure for measuring
efficiency.
IEC 62093 Balance-of-system components for photovoltaic systems - Design
qualification natural environments.
IEC 62116 Test procedure of islanding prevention measures for utility-
interconnected photovoltaic inverters.
IEC 62446 Grid connected photovoltaic systems - Minimum requirements for
system documentation, commissioning tests and inspection.
12 | P a g e
Chapter 3: Literature Review
What is Arduino:
Arduino is a tool for making computers that can sense and control more of the physical world
than your desktop computer. It's an open-source physical computing platform based on a simple
microcontroller board, and a development environment for writing software for the board.
Arduino can be used to develop interactive objects, taking inputs from a variety of switches or
sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects
can be stand-alone, or they can be communicate with software running on your computer (e.g.
Flash, Processing, MaxMSP.) The boards can be assembled by hand or purchased preassembled;
the open-source IDE can be downloaded for free.
The Arduino programming language is an implementation of Wiring, a similar physical
computing platform, which is based on the Processing multimedia programming environment.
Why Arduino?
There are many other microcontrollers and microcontroller platforms available for physical
computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many
others offer similar functionality. All of these tools take the messy details of microcontroller
programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems:
13 | P a g e
Inexpensive - Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by hand, and
even the pre-assembled Arduino modules cost less than $50
Cross-platform - The Arduino software runs on Windows, Macintosh OSX, and Linux operating
systems. Most microcontroller systems are limited to Windows.
Simple, clear programming environment - The Arduino programming environment is easy-to-use
for beginners, yet flexible enough for advanced users to take advantage of as well. For teachers,
it's conveniently based on the Processing programming environment, so students learning to
program in that environment will be familiar with the look and feel of Arduino
Open source and extensible software- The Arduino software is published as open source tools,
available for extension by experienced programmers. The language can be expanded through
C++ libraries, and people wanting to understand the technical details can make the leap from
Arduino to the AVR C programming language on which it's based. Similarly, you can add AVR-
C code directly into your Arduino programs if you want to.
Open source and extensible hardware - The Arduino is based on Atmel's ATMEGA8 and
ATMEGA168 microcontrollers. The plans for the modules are published under a Creative
Commons license, so experienced circuit designers can make their own version of the module,
extending it and improving it. Even relatively inexperienced users can build the breadboard
version of the module in order to understand how it works and save money.
14 | P a g e
Chapter 4: Methodology
We built a devise that transfer sensors measurements from Meteorology station to a monitoring
and control station where they analyze the measurements as well as have some control on these
stations. The data transfer was done in two methods as described below:
1.1 First Method:
In this method data is transferred by internet measurements of sensors are uploaded on a website
which is installed on the internet shield which is connected to internet which will allow users at
the monitoring and control stations have the ability to access these measurements via internet.
Equipment’s:
 Arduino board such as the Arduino Uno.
 Arduino Ethernet shield.
 Ethernet cable, wired straight for connecting to your network router.
 A USB cable for powering and programming the Arduino.
Figure 1
The Arduino Ethernet Shield allows you to easily connect your Arduino to the internet. This
shield enables your Arduino to send and receive data from anywhere in the world with an
internet connection. You can use it to do fun stuff like control robots remotely from a website, or
15 | P a g e
ring a bell every time you get a new twitter message. This shield opens up endless amounts of
possibility by allowing you to connect your project to the internet in no-time flat.
Step 1: Setup
Figure 2
Setting it up is as simple as plugging the header pins from the shield into your Arduino.
Step 2: Shield Features
Figure 3
16 | P a g e
The Ethernet Shield is based upon the W51000 chip, which has an internal 16K buffer. It has a
connection speed of up to 10/100Mb. This is not the fastest connection around, but is also
nothing to turn your nose up at.
It relies on the Arduino Ethernet library, which comes bundled with the development
environment.
There is also an on-board micro SD slot which enables you to store a heck-of-a-lot of data, and
serve up entire websites using just your Arduino. This requires the use of an external SD library.
Step 3: Get started
Figure 4
Figure 5
17 | P a g e
First of all, let’s do something quick and easy to check that all is functional. Open the Arduino
IDE and select File > Examples > Ethernet > Webserver. This loads a simple sketch which will
display data gathered from the analogue inputs on a web browser
You need to specify the IP address of the ethernet shield – which is done inside the sketch
IPAddress ip(192,168,1, 177);
You also have the opportunity to change your MAC address. Each piece of networking
equipment has a unique serial number to identify itself over a network, and this is normall hard-
programmed into the equipments’ firmware. However with Arduino we can define the MAC
address ourselves. If you are running more than one ethernet shield on your network, ensure they
have different MAC addresses by altering the hexadecimal values in the line:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
However if you only have one shield just leave it be. There may be the very, very, statistically
rare chance of having a MAC address the same as your existing hardware, so that would be
another time to change it. Once you have made your alterations, save and upload the sketch to
your Arduino or compatible board.
Now, connect the shield to your router or hub with an RJ45 cable, and the Arduino board to the
power via USB or external power supply. Then return to your computer, and using your web
browser, enter your Ethernet shield’s IP address into the URL bar. The web browser will query
the Ethernet shield, which will return the values from the analogue ports on the Arduino board,
as such:
18 | P a g e
Figure 6
As there isn’t anything plugged into the analog inputs, their value will change constantly. Neat –
your Arduino is now serving data over a network
1.2 Second Method:
The device should read data from sensors and send it as text messages to the responsible person
phone number which will keep him updated with the status of the station. This person will
receive a text message with the measurements of the connected sensors each 15 minutes as well
as in some cases which is considered the peak that sensors can take “Emergency text messages”.
Also the text messages receiver will also have the ability to send text messages back to the
microcontroller in order to have some control on these sensors by putting them either off or on.
In fire cases the device is programmed to send text messages to the Fire Station requesting
immediate help.
19 | P a g e
Equipment’s:
 Arduino board such as the Arduino Uno.
 Arduino GSM Shield.
 A USB cable for powering and programming the Arduino.
Figure 7
The Arduino GSM shield allows an Arduino board to connect to the internet, send and receive
SMS, and make voice calls using the GSM library. The shield will work with the Arduino Uno
out of the box.
20 | P a g e
Connecting the Shield
To use the shield, you'll need to insert a SIM card into the holder. Slide the metal bracket away
from the edge of the shield and lift the cradle up.
Figure 8
Insert the SIM in the plastic holder so the metal contacts are facing the shield, with the notch of
the card at the top of the bracket.
21 | P a g e
Figure 9
Slide the SIM all the way into the bracket
Figure 10
Push the SIM to the board and slide the metal bracket towards the edge of the shield to lock it in
place.
22 | P a g e
Figure 11
Once the SIM is inserted, mount it on top of an Arduino board.
Figure 12
To upload sketches to the board, connect it to your computer with a USB cable and upload your
sketch with the Arduino IDE. Once the sketch has been uploaded, you can disconnect the board
from your computer and power it with an external power supply.
23 | P a g e
Figure 13
24 | P a g e
Chapter 5: Results and Analysis
Transferred data will be treated in the monitoring and control station. The measurements which
were taken: Wind Speed, Wind Direction, Solar Radiation and Temperature.
5.1 Wind Energy
In recent years, wind energy has become one of the most economical renewable energy
technology. Today, electricity generating wind turbines employ proven and tested technology,
and provide a secure and sustainable energy supply. At good, windy sites,
wind energy can already successfully compete with conventional energy production. Many
countries have considerable wind resources, which are still untapped.
A technology which offers remarkable advantages is not used to its full potential:
 Wind energy produces no greenhouse
gases.
 Wind power plants can make a significant
contribution to the regional electricity
supply and to power supply
diversification.
 A very short lead time for planning and
construction is required as compared to
conventional power projects.
 Wind energy projects are flexible with
regard to an increasing energy demand -
single turbines can easily be added to an
existing park.
 Finally, wind energy projects can make
use of local resources in terms of labour,
capital and materials.
The technological development of recent years, bringing more efficient and more reliable wind
turbines, is making wind power more cost-effective. In general, the specific energy costs per
annual kWh decrease with the size of the turbine notwithstanding existing supply difficulties.
Wind Turbine:
Wind speed measurements was taken and applied on two types of wind turbines.
25 | P a g e
 100 KW Wind Turbine.
 1 MW Wind Turbine.
The following equation was used to calculate the output power:
5.1.1 For100 KW Wind Turbine:
We have = 1.23
Power Coefficient = 0.75
Area = 415.265 m^2
Area was calculated by using the following equation: assuming the diameter equal
21 m so r will be 11.5 m.
Month Wind Speed
(m/s)
Power Generated (KW)
Jan 4.74 20.39842955
Feb 3.66 9.390851308
Mar 4.16 13.78928348
Apr 3.38 7.396253857
May 4.42 16.53973382
Jun 5.26 27.87526087
Jul 5.48 31.52124651
Aug 4.94 23.09099008
Sep 4.57 18.28143607
Oct 3.82 10.67706279
Nov 2.86 4.480843825
Dec 3.76 10.18181596
Table 1
26 | P a g e
Figure 14
5.1.2 For 1 MW Wind Turbine:
We have = 1.23
Power Coefficient = 0.75
Area = 2826 m^2
Area was calculated by using the following equation: assuming the diameter equal
60 m so r will be 30 m.
0
50
100
150
200
250
1 2 3 4 5 6 7 8 9 10 11 12
Relation of Output power to Wind Speed for
100KW Wind Turbine
Wind Speed (m/s) Power Generated (KW)
27 | P a g e
Month Wind Speed
(m/s)
Power Generated (KW)
Jan 4.74 138.81729
Feb 3.66 63.90749473
Mar 4.16 93.8401144
Apr 3.38 50.33367464
May 4.42 112.5577349
Jun 5.26 189.6993178
Jul 5.48 214.5113184
Aug 4.94 157.1409533
Sep 4.57 124.410529
Oct 3.82 72.66054072
Nov 2.86 30.49345514
Dec 3.76 69.29024094
Table 2
Figure 15
0
50
100
150
200
250
1 2 3 4 5 6 7 8 9 10 11 12
Relation of Output power to Wind Speed for
1MW Wind Turbine
Wind Speed (m/s) Power Generated (KW)
28 | P a g e
5.2 SolarEnergy
On Grid System
Grid-connected photovoltaic power systems are power systems energized by photovoltaic
panels which are connected to the utility grid. Grid-connected photovoltaic power systems
consist of Photovoltaic panels, MPPT, solar inverters, power conditioning units and grid
connection equipment. Unlike Stand-alone photovoltaic power systems these systems seldom
have batteries. When conditions are right, the grid-connected PV system supplies the excess
power, beyond consumption by the connected load, to the utility grid.
Radiation Measurements
Month E KWh/m^2-day
Jan 2.82
Feb 3.58
Mar 4.82
Apr 6.36
May 7.68
Jun 8.19
Jul 7.75
Aug 6.7
Sep 5.83
Oct 3.99
Nov 3.99
Dec 2.724
Table 3
29 | P a g e
Figure 16
Assuming we need to cover a load of 10000KWH
Epv = Penetration Factor * E load
= 0.2 * 10000KWh
Epv = 2000KWh
Ppv= Epv/ (P.S.H * Efficiency %)
= 2000/ (5.4*0.95)
Ppv =390 KW
Number of modules = Ppv/ Ppeak
0
1
2
3
4
5
6
7
8
9
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
E KWh/m^2-day
30 | P a g e
Taking P peak in two cases:
 P peak = 150W -12 v- Mono type.
 P peak= 200w – 24 v – Poly type.
 For Mono type Number of modules needed = 390KW/150W = 2600 Modules
Taking Vdc = 400 V
Number of modules in one string = 400V/ 12V =34 Module
Number of strings = 2600/33.33= 78 String
 For Poly type Number of modules needed = 390KW/200W = 1950 Modules
Taking Vdc = 400 V
Number of modules in one string = 400V/ 24V =17 Module
Number of strings = 1950/16.67= 117 String
31 | P a g e
Chapter 6: Conclusion and Recommendation
To sum up, the main concern of our project is to design an intelligent system which can send the
measurements of sensors from the Meteorology stations to monitoring and control stations also
in case of unexpected situations (such as fire detection) via Text message or internet.
Additionally, the system Analyze the received data and show figures and calculations of the
output power when using wind turbine or solar cells. Also, the remote control option of our
system enables you to have some control on some of the applications in the Meteorology station
by turning them off and on.
Moreover, we achieved the goals we proposed. The system worked successfully. We tested our
system in real life conditions, at the Energy Research center at An-Najah National University.
We chose this method because we experienced that this method is simple in real relatively cheap
according to the usage of other kind of methods.
While working on our project we improved our programming skills as well as practical skills in
working in Meteorology stations. We gathered all the knowledge we have gained in Electrical
Circuits, Microcontrollers and Microprocessors, Controls and System, Renewable Energy,
Digital Communication and Measurements.
Our future plan is to have a direct interface between sensors and the microcontroller itself.
32 | P a g e
References:
 Websites:
1. http://arduino.cc/
2. http://arduino.cc/en/Main/ArduinoGSMShield
3. http://arduino.cc/en/Main/ArduinoEthernetShield
4. http://www.kalkitech.com/
5. http://electrical-engineering-portal.com/three-generations-of-scada-system-architectures
6. http://arduino.cc/en/Reference/Ethernet
7. http://myrobotlab.net/tutorial-use-ethernet-shield-with-arduino/
8. http://electrical-engineering-portal.com/an-introduction-to-scada-for-electrical-engineers-
beginners
9. http://electrical-engineering-portal.com/three-generations-of-scada-system-architectures
10. http://arduino.cc/en/Reference/Ethernet
11. http://www.instructables.com/id/Control-an-LED-over-the-internet-using-the-Arduino/
12. http://www.intorobotics.com/getting-started-with-arduino-ethernet-shield-tutorials-and-
resources/
13. http://simplyarduino.com/?page_id=5
 Books:
1. Simply Arduino
2. Beginning Arduino for MICHAEL MCRO BERTS
3. Getting Started with Arduino (Make: Projects) for MASSIMO BAN ZI
33 | P a g e
Appendix
34 | P a g e
Codes:
First Method: Via Internet Code
#include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
// MAC address from Ethernet shield sticker under board
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 177); // IP address, may need to change depending on network
EthernetServer server(80); // create a server at port 80
File webFile;
void setup()
{
Ethernet.begin(mac, ip); // initialize Ethernet device
server.begin(); // start to listen for clients
Serial.begin(9600); // for debugging
// initialize SD card
35 | P a g e
Serial.println("Initializing SD card...");
if (!SD.begin(4)) {
Serial.println("ERROR - SD card initialization failed!");
return; // init failed
}
Serial.println("SUCCESS - SD card initialized.");
// check for index.htm file
if (!SD.exists("index.htm")) {
Serial.println("ERROR - Can't find index.htm file!");
return; // can't find index file
}
Serial.println("SUCCESS - Found index.htm file.");
}
void loop()
{
EthernetClient client = server.available(); // try to get client
if (client) { // got client?
boolean currentLineIsBlank = true;
while (client.connected()) {
36 | P a g e
if (client.available()) { // client data available to read
char c = client.read(); // read 1 byte (character) from client
// last line of client request is blank and ends with n
// respond to client only after last line received
if (c == 'n' && currentLineIsBlank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close");
client.println();
// send web page
webFile = SD.open("index.htm"); // open web page file
if (webFile) {
while(webFile.available()) {
client.write(webFile.read()); // send web page to client
}
webFile.close();
}
break;
}
// every line of text received from the client ends with rn
37 | P a g e
if (c == 'n') {
// last character on line of received text
// starting new line with next character read
currentLineIsBlank = true;
}
else if (c != 'r') {
// a text character was received from client
currentLineIsBlank = false;
}
} // end if (client.available())
} // end while (client.connected())
delay(1); // give the web browser time to receive the data
client.stop(); // close the connection
} // end if (client)
}
38 | P a g e
Second Method: Via Text Message code
#include <GSM.h>
#define PINNUMBER ""
GSM gsmAccess; // include a 'true' parameter for debug enabled
GSM_SMS sms;
char remoteNumber[20]= "0568388498";
char senderNumber[20];
const int sensorT=A0;
const int sensorR=A1;
float temp;
float rde;
#include <LiquidCrystal.h>
LiquidCrystal lcd(4,8,9,10,11,12);
void setup() {
pinMode(6,OUTPUT);
digitalWrite(6,HIGH);
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("SMS Messages Sender");
Serial.println("SMS Messages Receiver");
boolean notConnected = true;
while(notConnected)
{
if(gsmAccess.begin(PINNUMBER)==GSM_READY)
notConnected = false;
else
{
Serial.println("Not connected");
delay(1000);
}
}
Serial.println("GSM initialized");
Serial.println("Waiting for messages");
lcd.begin(16,2);
}
void loop() {
RSMS();
// put your main code here, to run repeatedly:
temp=analogRead(sensorT);
rde=analogRead(sensorR);
delay(20000);
sendSMS();
39 | P a g e
for(int i=0;i<60;i++){
temp=analogRead(sensorT);
rde=analogRead(sensorR);
LCD();
RSMS();
delay(1000);}
}
void sendSMS(){
Serial.print("Message to mobile number: ");
Serial.println(remoteNumber);
// sms text
Serial.println("SENDING");
Serial.println();
Serial.println("Message:");
Serial.println(temp);
Serial.println(rde);
delay(1000);
// send the message
sms.beginSMS(remoteNumber);
sms.print("temp is:");
sms.print(temp );
sms.print("n");
sms.print("rde is:");
sms.print(rde);
sms.endSMS();
Serial.println("nCOMPLETE!n");
delay(1000);
}
void LCD(){
lcd.setCursor(1,0);
lcd.print("R:");
lcd.print(rde);
lcd.print("G");
lcd.setCursor(1, 2);
lcd.print("T:");
lcd.print(temp);
lcd.print("C");
}
void RSMS()
{
char c;
// If there are any SMSs available()
if (sms.available())
{
40 | P a g e
Serial.println("Message received from:");
// Get remote number
sms.remoteNumber(senderNumber, 20);
Serial.println(senderNumber);
// An example of message disposal
// Any messages starting with # should be discarded
if (sms.peek() == '#')
{
Serial.println("Discarded SMS");
sms.flush();
}
// Read message bytes and print them
c = sms.read();
Serial.print(c);
if(c=='r'){
digitalWrite(6,LOW);
}
else if(c=='o'){ digitalWrite(6,HIGH);}
Serial.println("nEND OF MESSAGE");
// Delete message from modem memory
sms.flush();
Serial.println("MESSAGE DELETED");
}
delay(1000);
}
41 | P a g e

Mais conteúdo relacionado

Mais procurados

There's more to energy than joules
There's more to energy than joulesThere's more to energy than joules
There's more to energy than joulesLeonardo ENERGY
 
Project in Physics IV-Thermodynamics
Project in Physics IV-ThermodynamicsProject in Physics IV-Thermodynamics
Project in Physics IV-ThermodynamicsCzy-xhen
 
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwar
Faculty of Engineering & Technology , Gurukula Kangri University , HaridwarFaculty of Engineering & Technology , Gurukula Kangri University , Haridwar
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwarashwini kumar
 
Characterization of AOHs for BCM1F
Characterization of AOHs for BCM1FCharacterization of AOHs for BCM1F
Characterization of AOHs for BCM1FSrinidhi Bheesette
 
Utilizing heat and ceilometer to scale up nova
Utilizing heat and ceilometer to scale up novaUtilizing heat and ceilometer to scale up nova
Utilizing heat and ceilometer to scale up novaKaustubh Dhokte
 
What's possible with CENOS Platform?
What's possible with CENOS Platform?What's possible with CENOS Platform?
What's possible with CENOS Platform?Cenos LLC
 
Automotive air conditioning training manual
Automotive air conditioning training manualAutomotive air conditioning training manual
Automotive air conditioning training manualTaufiq Atan
 
Generator 101 power point
Generator 101 power pointGenerator 101 power point
Generator 101 power pointJorge Palgan
 
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRR
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRRPhotovoltaic Training Course - Module 5.2 - Project cashflow and IRR
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRRLeonardo ENERGY
 
Sensors used in automobiles
Sensors used in automobilesSensors used in automobiles
Sensors used in automobilesSiju Abraham
 
Zeroth law of thermodynamics
Zeroth law of thermodynamicsZeroth law of thermodynamics
Zeroth law of thermodynamicsMohdAreebQureshi
 
Thermodynamics Lecture 1
Thermodynamics Lecture 1Thermodynamics Lecture 1
Thermodynamics Lecture 1VJTI Production
 
Simulation of the effects of turbine exhaust recirculation
Simulation of the effects of turbine exhaust recirculationSimulation of the effects of turbine exhaust recirculation
Simulation of the effects of turbine exhaust recirculationZin Eddine Dadach
 
Chapter 4 comparators
Chapter 4 comparatorsChapter 4 comparators
Chapter 4 comparatorsVISHALM580
 
Wec updates 2010
Wec updates 2010Wec updates 2010
Wec updates 2010David Olson
 
Designing and installation of low cost optimized wind monitoring system
Designing and installation of low cost optimized wind monitoring systemDesigning and installation of low cost optimized wind monitoring system
Designing and installation of low cost optimized wind monitoring systemeSAT Publishing House
 

Mais procurados (20)

There's more to energy than joules
There's more to energy than joulesThere's more to energy than joules
There's more to energy than joules
 
Project in Physics IV-Thermodynamics
Project in Physics IV-ThermodynamicsProject in Physics IV-Thermodynamics
Project in Physics IV-Thermodynamics
 
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwar
Faculty of Engineering & Technology , Gurukula Kangri University , HaridwarFaculty of Engineering & Technology , Gurukula Kangri University , Haridwar
Faculty of Engineering & Technology , Gurukula Kangri University , Haridwar
 
Temperature
TemperatureTemperature
Temperature
 
Characterization of AOHs for BCM1F
Characterization of AOHs for BCM1FCharacterization of AOHs for BCM1F
Characterization of AOHs for BCM1F
 
Utilizing heat and ceilometer to scale up nova
Utilizing heat and ceilometer to scale up novaUtilizing heat and ceilometer to scale up nova
Utilizing heat and ceilometer to scale up nova
 
What's possible with CENOS Platform?
What's possible with CENOS Platform?What's possible with CENOS Platform?
What's possible with CENOS Platform?
 
Automotive air conditioning training manual
Automotive air conditioning training manualAutomotive air conditioning training manual
Automotive air conditioning training manual
 
Tachometer
TachometerTachometer
Tachometer
 
Generator 101 power point
Generator 101 power pointGenerator 101 power point
Generator 101 power point
 
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRR
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRRPhotovoltaic Training Course - Module 5.2 - Project cashflow and IRR
Photovoltaic Training Course - Module 5.2 - Project cashflow and IRR
 
Sensors used in automobiles
Sensors used in automobilesSensors used in automobiles
Sensors used in automobiles
 
Zeroth law of thermodynamics
Zeroth law of thermodynamicsZeroth law of thermodynamics
Zeroth law of thermodynamics
 
Thermodynamics Lecture 1
Thermodynamics Lecture 1Thermodynamics Lecture 1
Thermodynamics Lecture 1
 
Simulation of the effects of turbine exhaust recirculation
Simulation of the effects of turbine exhaust recirculationSimulation of the effects of turbine exhaust recirculation
Simulation of the effects of turbine exhaust recirculation
 
Chapter 4 comparators
Chapter 4 comparatorsChapter 4 comparators
Chapter 4 comparators
 
Electric techometer
Electric techometerElectric techometer
Electric techometer
 
Bosch sensors
Bosch sensorsBosch sensors
Bosch sensors
 
Wec updates 2010
Wec updates 2010Wec updates 2010
Wec updates 2010
 
Designing and installation of low cost optimized wind monitoring system
Designing and installation of low cost optimized wind monitoring systemDesigning and installation of low cost optimized wind monitoring system
Designing and installation of low cost optimized wind monitoring system
 

Semelhante a Mini scada system for monitoring pv and wind installation in meteorology stations

Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architectureVidhi603146
 
Development of a software solution for solar pv power systems sizing and moni...
Development of a software solution for solar pv power systems sizing and moni...Development of a software solution for solar pv power systems sizing and moni...
Development of a software solution for solar pv power systems sizing and moni...simeon Matthew
 
odometer and some terms in instrumentation
odometer and some terms in instrumentationodometer and some terms in instrumentation
odometer and some terms in instrumentationBagja Tirta
 
odometer and some terms in istrumentation
odometer and some terms in istrumentationodometer and some terms in istrumentation
odometer and some terms in istrumentationBagja Tirta
 
Footstep power generation
Footstep power generationFootstep power generation
Footstep power generationbaga reddy
 
Footstep power generation
Footstep power generationFootstep power generation
Footstep power generationbaga reddy
 
TheFresnelLensFinalProjectReport
TheFresnelLensFinalProjectReportTheFresnelLensFinalProjectReport
TheFresnelLensFinalProjectReportDongliang Lu
 
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptxGROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptxRyan Cortes
 
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...ssuser793b4e
 
Smart Dam Monitering & Controling
Smart Dam Monitering & ControlingSmart Dam Monitering & Controling
Smart Dam Monitering & ControlingKrishnenduDatta4
 
Senior Design Research Paper
Senior Design Research PaperSenior Design Research Paper
Senior Design Research PaperNoel Villegas Jr
 
N414 Documentation Data.docx
N414 Documentation Data.docxN414 Documentation Data.docx
N414 Documentation Data.docxRAGU83
 
Power plant project
Power plant project Power plant project
Power plant project SAKTHIVELV40
 

Semelhante a Mini scada system for monitoring pv and wind installation in meteorology stations (20)

Mini Project WMS ppt.pptx
Mini Project WMS ppt.pptxMini Project WMS ppt.pptx
Mini Project WMS ppt.pptx
 
BATCH-7 MJT.pptx
BATCH-7 MJT.pptxBATCH-7 MJT.pptx
BATCH-7 MJT.pptx
 
14 data logging
14   data logging14   data logging
14 data logging
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architecture
 
Thesis final rept version 1
Thesis final rept version 1Thesis final rept version 1
Thesis final rept version 1
 
Development of a software solution for solar pv power systems sizing and moni...
Development of a software solution for solar pv power systems sizing and moni...Development of a software solution for solar pv power systems sizing and moni...
Development of a software solution for solar pv power systems sizing and moni...
 
odometer and some terms in instrumentation
odometer and some terms in instrumentationodometer and some terms in instrumentation
odometer and some terms in instrumentation
 
odometer and some terms in istrumentation
odometer and some terms in istrumentationodometer and some terms in istrumentation
odometer and some terms in istrumentation
 
Footstep power generation
Footstep power generationFootstep power generation
Footstep power generation
 
Footstep power generation
Footstep power generationFootstep power generation
Footstep power generation
 
AC SMART MEASURING POWER DEVICE
AC SMART MEASURING POWER DEVICEAC SMART MEASURING POWER DEVICE
AC SMART MEASURING POWER DEVICE
 
TheFresnelLensFinalProjectReport
TheFresnelLensFinalProjectReportTheFresnelLensFinalProjectReport
TheFresnelLensFinalProjectReport
 
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptxGROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
GROUP1_INSTRU-SENSORS-CALI_FEEDBACK.pptx
 
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...
A Critical Assessment of Data Loggers for Farm Monitoring Addressing Limitati...
 
Tot.st 1
Tot.st 1Tot.st 1
Tot.st 1
 
Smart Dam Monitering & Controling
Smart Dam Monitering & ControlingSmart Dam Monitering & Controling
Smart Dam Monitering & Controling
 
Senior Design Research Paper
Senior Design Research PaperSenior Design Research Paper
Senior Design Research Paper
 
N414 Documentation Data.docx
N414 Documentation Data.docxN414 Documentation Data.docx
N414 Documentation Data.docx
 
Power plant project
Power plant project Power plant project
Power plant project
 
ppt-1.pptx
ppt-1.pptxppt-1.pptx
ppt-1.pptx
 

Mais de slmnsvn

Analysis optimization and monitoring system
Analysis optimization and monitoring system Analysis optimization and monitoring system
Analysis optimization and monitoring system slmnsvn
 
Analysis optimization and monitoring system
Analysis optimization and monitoring system Analysis optimization and monitoring system
Analysis optimization and monitoring system slmnsvn
 
Smart home
Smart homeSmart home
Smart homeslmnsvn
 
Smart fuel theft detector
Smart fuel theft detectorSmart fuel theft detector
Smart fuel theft detectorslmnsvn
 
Smart fuel theft detector
Smart fuel theft detectorSmart fuel theft detector
Smart fuel theft detectorslmnsvn
 
Rfid attendace system
Rfid attendace systemRfid attendace system
Rfid attendace systemslmnsvn
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicleslmnsvn
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicleslmnsvn
 
Power factor correction
Power factor correctionPower factor correction
Power factor correctionslmnsvn
 
Power factor correction
Power factor correctionPower factor correction
Power factor correctionslmnsvn
 
Optimum performances of ramallah
Optimum performances of ramallahOptimum performances of ramallah
Optimum performances of ramallahslmnsvn
 
Optimum performances of ramallah
Optimum performances of ramallahOptimum performances of ramallah
Optimum performances of ramallahslmnsvn
 
Optimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkOptimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkslmnsvn
 
Optimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkOptimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkslmnsvn
 
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2slmnsvn
 
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2slmnsvn
 
Optimum performance for aqraba electrical network
Optimum performance for aqraba electrical networkOptimum performance for aqraba electrical network
Optimum performance for aqraba electrical networkslmnsvn
 
Multi tone test
Multi tone testMulti tone test
Multi tone testslmnsvn
 
Multi tone test
Multi tone testMulti tone test
Multi tone testslmnsvn
 
Investigation effects-of-supplying-power-distrubition
Investigation effects-of-supplying-power-distrubitionInvestigation effects-of-supplying-power-distrubition
Investigation effects-of-supplying-power-distrubitionslmnsvn
 

Mais de slmnsvn (20)

Analysis optimization and monitoring system
Analysis optimization and monitoring system Analysis optimization and monitoring system
Analysis optimization and monitoring system
 
Analysis optimization and monitoring system
Analysis optimization and monitoring system Analysis optimization and monitoring system
Analysis optimization and monitoring system
 
Smart home
Smart homeSmart home
Smart home
 
Smart fuel theft detector
Smart fuel theft detectorSmart fuel theft detector
Smart fuel theft detector
 
Smart fuel theft detector
Smart fuel theft detectorSmart fuel theft detector
Smart fuel theft detector
 
Rfid attendace system
Rfid attendace systemRfid attendace system
Rfid attendace system
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicle
 
Quad pod transformable vehicle
Quad pod transformable vehicleQuad pod transformable vehicle
Quad pod transformable vehicle
 
Power factor correction
Power factor correctionPower factor correction
Power factor correction
 
Power factor correction
Power factor correctionPower factor correction
Power factor correction
 
Optimum performances of ramallah
Optimum performances of ramallahOptimum performances of ramallah
Optimum performances of ramallah
 
Optimum performances of ramallah
Optimum performances of ramallahOptimum performances of ramallah
Optimum performances of ramallah
 
Optimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkOptimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate network
 
Optimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate networkOptimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate network
 
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2
 
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2
 
Optimum performance for aqraba electrical network
Optimum performance for aqraba electrical networkOptimum performance for aqraba electrical network
Optimum performance for aqraba electrical network
 
Multi tone test
Multi tone testMulti tone test
Multi tone test
 
Multi tone test
Multi tone testMulti tone test
Multi tone test
 
Investigation effects-of-supplying-power-distrubition
Investigation effects-of-supplying-power-distrubitionInvestigation effects-of-supplying-power-distrubition
Investigation effects-of-supplying-power-distrubition
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Último (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

Mini scada system for monitoring pv and wind installation in meteorology stations

  • 1. 1 | P a g e DEDICATION I dedicate my thesis work to my family and many friends. A special Feeling of gratitude to my loving parents, whose words of encouragement And push for tenacity ring in my ears I also dedicate this dissertation to my many friends and the Electrical Engineering Department family who have supported me throughout the process. I will always appreciate all they have done.
  • 2. 2 | P a g e ACKNOWLEDGEMENTS I thank Almighty God for giving me the courage and the determination, as well as guidance in conducting this thesis, despite all difficulties. I also extend my heartfelt gratitude to my supervisor Dr. Imad Ibrik. You were so wonderful to me. You made me believe that I had so much strength and courage to preserve even when I felt lost. You showed me light in a tunnel where everything was dark. You were very tolerant and determined to see me through. You were such a wonderful motivator even when the coping seemed tough for me. I aspire to emulate you. Finally, I thank all those who assisted, encouraged and supported me during this research, be assured that the lord will bless you all for the contributions you made.
  • 3. 3 | P a g e DISCLAIMER This report was written by student at the Electrical Engineering Department, Faculty of Engineering, An-Najah National University. It has not been altered or corrected. Other than editorial corrections, as a result of assessment and it may contain language as well as content errors. The views expressed in it together with any outcomes and recommendations are solely those of the students. An-Najah National University accepts no responsibility or liability for the consequences of this report being used for a purpose other than the purpose for which it was commissioned.
  • 4. 4 | P a g e Table of Contents (TOC) Chapter 1: Introduction ………………… .....................................................................8 Chapter 2: Standards………………………………………………………………… 11 Chapter 3: Literature Review ......................................................................................12 Chapter 4: Methodology ..............................................................................................14 Chapter 5:Results and Analysis………………………………………………………24 Chapter6: Conclusion and Recommendation…………………………………………31 References:………………………………………….………………………………..32 Appendix:…………………………………………………………………………….33
  • 5. 5 | P a g e List of Figures (LOF): Figure 1 ......................................................................................................................................... 14 Figure 2 ......................................................................................................................................... 15 Figure 3 ......................................................................................................................................... 15 Figure 4 ......................................................................................................................................... 16 Figure 5 ......................................................................................................................................... 16 Figure 6 ......................................................................................................................................... 18 Figure 7 ......................................................................................................................................... 18 Figure 8 ......................................................................................................................................... 20 Figure 9 ......................................................................................................................................... 21 Figure 10 ....................................................................................................................................... 21 Figure 11 ....................................................................................................................................... 22 Figure 12 ....................................................................................................................................... 22 Figure 13 ....................................................................................................................................... 23 Figure 14 ....................................................................................................................................... 26 Figure 15 ....................................................................................................................................... 27 Figure 16 ....................................................................................................................................... 29
  • 6. 6 | P a g e List of Figures (LOF): Table 1........................................................................................................................................... 25 Table 2........................................................................................................................................... 27 Table 3........................................................................................................................................... 28
  • 7. 7 | P a g e Abstract  Why do you think this project is important? Please explain the significance of this Project in brief. Monitoring and performance analysis of solar PV plants have become extremely critical due to the increasing cost of operation and maintenance as well as reducing yield due to performance degradation during the life cycle of the plant equipment’s. This becomes essential to ensure high performance, low downtime and fault detection in a solar PV power plant. On-site weather data, production data from the panel strings, inverters and transformers are required to be continuously collected for monitoring and analysis of performance. Data acquisition from AC and DC control panels are further required for operational monitoring and control of the plant and substation. A well designed monitoring and analytics system assists in reducing the cost of operation and maintenance.  In your point of view what are the important aspects that should be covered in the project?  Elements of PV/ Control of PV/ Monitoring of PV/Performance and Evaluation.  Objective(s): In your view, please explain the main objectives of the project.  Real-time snapshot of plant status.  Supervision and plant operation (alarms).  In-plant preventive and corrective maintenance tool.  Dashboards for easy visualization of data and communication with devices.  Methodology: Give a brief outline of the application development process. We’ll design and build a system that monitor the operation of the PV-Power stations in terms of the Array Voltage, Array Current, Array Power, Module Temperature, Ambient Temperature, Global Irradiance, Global Irradiation. This system will also include an alarm, which warns in any faulty case with any of the solar cells.
  • 8. 8 | P a g e Chapter 1: Introduction An automatic weather station (AWS) is an automated version of the traditional weather station, either to save human labor or to enable measurements from remote areas. An AWS will typically consist of a weather-proof enclosure containing the data logger, rechargeable battery, telemetry (optional) and the meteorological sensors with an attached solar panel or wind turbine and mounted upon a mast. The specific configuration may vary due to the purpose of the system. The system may report in near real time via the Argos System and the Global Telecommunications System, or save the data for later recovery. In the past, automatic weather stations were often placed where electricity and communication lines were available. Nowadays, the solar panel, wind turbine and mobile phone technology have made it possible to have wireless stations that are not connected to the electrical grid or telecommunications network. Sensors Most automatic weather stations have:  Thermometer for measuring temperature.  Anemometer for measuring wind speed.  Wind vane for measuring wind direction.  Hygrometer for measuring humidity.  Barometer for measuring atmospheric pressure.
  • 9. 9 | P a g e Some stations can also have:  Ceilometer for measuring cloud height.  Present weather sensor and/or visibility sensor.  Rain gauge for measuring liquid-equivalent precipitation.  Ultrasonic snow depth sensor for measuring depth of snow.  Pyranometer for measuring solar radiation. Data-logger: The data-logger is the heart of the Automatic Weather Station. The main function of a data-logger are:  Measures: the data-logger collects the information of each sensors and archive it.  Calculation: the data-logger processes most of the meteorological data for the users (avg, min, max...).  Data storage: the data-logger saves all the data either on it own memory or on uSD memory card.  Power supply: the data-logger manages the power supply of the Automatic Weather Station such as solar panel.  Communication: the data-logger does manage the communication protocols with the remote server. The different communication protocols are usually GSM, GPRS, RTC, WIFI, uSD, and RS232.
  • 10. 10 | P a g e PowerSupply The main power source for an automatic weather station depends on its usage. Many stations with lower power equipment usually use one or more solar panels connected in parallel with a regulator and one or more rechargeable batteries. As a rule of thumb, solar output is at its optimum for only 5 hours each day. As such, mounting angle and position are vital. In the Northern Hemisphere, the solar panel would be mounted facing south and vice versa for the Southern Hemisphere. The output from the solar panels may be supplemented by a wind turbine to provide power during periods of poor sunlight, or by direct connection to the local electrical grid. The Problem we have is accessing the data, as we have different weather stations distributed in different places around the west bank, accessing data became a problem as we always need to visit each location separately to get the data. Which takes a lot of time as well as cost of transportation to access to each location. So we proposed to build a device which will allow us to transfare data wireless from each location to a control and monitoring room in two different ways one buy uploading the measurements on a website that can be accessed from anywhere and the other way is transfaring data via text messages to the responsible person only and he will have the ability to control some applications by sending text messages.
  • 11. 11 | P a g e Chapter 2: Constrains, standards / codes and earlier course work Photovoltaic Standards – PV Systems In this category various standards regulating modes of photovoltaic system functioning supervision or standards advising planning and implementation of such systems can be found. The category includes safety regulations, which have to be considered upon photovoltaic systems implementation. IEC 60364-7-712 Electrical installations of buildings - Part 7-712: Requirements for special installations or locations - Solar photovoltaic (PV) power supply systems. IEC 61727 Photovoltaic (PV) systems - Characteristics of the utility interface. IEC 61683 Photovoltaic systems - Power conditioners - Procedure for measuring efficiency. IEC 62093 Balance-of-system components for photovoltaic systems - Design qualification natural environments. IEC 62116 Test procedure of islanding prevention measures for utility- interconnected photovoltaic inverters. IEC 62446 Grid connected photovoltaic systems - Minimum requirements for system documentation, commissioning tests and inspection.
  • 12. 12 | P a g e Chapter 3: Literature Review What is Arduino: Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects can be stand-alone, or they can be communicate with software running on your computer (e.g. Flash, Processing, MaxMSP.) The boards can be assembled by hand or purchased preassembled; the open-source IDE can be downloaded for free. The Arduino programming language is an implementation of Wiring, a similar physical computing platform, which is based on the Processing multimedia programming environment. Why Arduino? There are many other microcontrollers and microcontroller platforms available for physical computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many others offer similar functionality. All of these tools take the messy details of microcontroller programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of working with microcontrollers, but it offers some advantage for teachers, students, and interested amateurs over other systems:
  • 13. 13 | P a g e Inexpensive - Arduino boards are relatively inexpensive compared to other microcontroller platforms. The least expensive version of the Arduino module can be assembled by hand, and even the pre-assembled Arduino modules cost less than $50 Cross-platform - The Arduino software runs on Windows, Macintosh OSX, and Linux operating systems. Most microcontroller systems are limited to Windows. Simple, clear programming environment - The Arduino programming environment is easy-to-use for beginners, yet flexible enough for advanced users to take advantage of as well. For teachers, it's conveniently based on the Processing programming environment, so students learning to program in that environment will be familiar with the look and feel of Arduino Open source and extensible software- The Arduino software is published as open source tools, available for extension by experienced programmers. The language can be expanded through C++ libraries, and people wanting to understand the technical details can make the leap from Arduino to the AVR C programming language on which it's based. Similarly, you can add AVR- C code directly into your Arduino programs if you want to. Open source and extensible hardware - The Arduino is based on Atmel's ATMEGA8 and ATMEGA168 microcontrollers. The plans for the modules are published under a Creative Commons license, so experienced circuit designers can make their own version of the module, extending it and improving it. Even relatively inexperienced users can build the breadboard version of the module in order to understand how it works and save money.
  • 14. 14 | P a g e Chapter 4: Methodology We built a devise that transfer sensors measurements from Meteorology station to a monitoring and control station where they analyze the measurements as well as have some control on these stations. The data transfer was done in two methods as described below: 1.1 First Method: In this method data is transferred by internet measurements of sensors are uploaded on a website which is installed on the internet shield which is connected to internet which will allow users at the monitoring and control stations have the ability to access these measurements via internet. Equipment’s:  Arduino board such as the Arduino Uno.  Arduino Ethernet shield.  Ethernet cable, wired straight for connecting to your network router.  A USB cable for powering and programming the Arduino. Figure 1 The Arduino Ethernet Shield allows you to easily connect your Arduino to the internet. This shield enables your Arduino to send and receive data from anywhere in the world with an internet connection. You can use it to do fun stuff like control robots remotely from a website, or
  • 15. 15 | P a g e ring a bell every time you get a new twitter message. This shield opens up endless amounts of possibility by allowing you to connect your project to the internet in no-time flat. Step 1: Setup Figure 2 Setting it up is as simple as plugging the header pins from the shield into your Arduino. Step 2: Shield Features Figure 3
  • 16. 16 | P a g e The Ethernet Shield is based upon the W51000 chip, which has an internal 16K buffer. It has a connection speed of up to 10/100Mb. This is not the fastest connection around, but is also nothing to turn your nose up at. It relies on the Arduino Ethernet library, which comes bundled with the development environment. There is also an on-board micro SD slot which enables you to store a heck-of-a-lot of data, and serve up entire websites using just your Arduino. This requires the use of an external SD library. Step 3: Get started Figure 4 Figure 5
  • 17. 17 | P a g e First of all, let’s do something quick and easy to check that all is functional. Open the Arduino IDE and select File > Examples > Ethernet > Webserver. This loads a simple sketch which will display data gathered from the analogue inputs on a web browser You need to specify the IP address of the ethernet shield – which is done inside the sketch IPAddress ip(192,168,1, 177); You also have the opportunity to change your MAC address. Each piece of networking equipment has a unique serial number to identify itself over a network, and this is normall hard- programmed into the equipments’ firmware. However with Arduino we can define the MAC address ourselves. If you are running more than one ethernet shield on your network, ensure they have different MAC addresses by altering the hexadecimal values in the line: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; However if you only have one shield just leave it be. There may be the very, very, statistically rare chance of having a MAC address the same as your existing hardware, so that would be another time to change it. Once you have made your alterations, save and upload the sketch to your Arduino or compatible board. Now, connect the shield to your router or hub with an RJ45 cable, and the Arduino board to the power via USB or external power supply. Then return to your computer, and using your web browser, enter your Ethernet shield’s IP address into the URL bar. The web browser will query the Ethernet shield, which will return the values from the analogue ports on the Arduino board, as such:
  • 18. 18 | P a g e Figure 6 As there isn’t anything plugged into the analog inputs, their value will change constantly. Neat – your Arduino is now serving data over a network 1.2 Second Method: The device should read data from sensors and send it as text messages to the responsible person phone number which will keep him updated with the status of the station. This person will receive a text message with the measurements of the connected sensors each 15 minutes as well as in some cases which is considered the peak that sensors can take “Emergency text messages”. Also the text messages receiver will also have the ability to send text messages back to the microcontroller in order to have some control on these sensors by putting them either off or on. In fire cases the device is programmed to send text messages to the Fire Station requesting immediate help.
  • 19. 19 | P a g e Equipment’s:  Arduino board such as the Arduino Uno.  Arduino GSM Shield.  A USB cable for powering and programming the Arduino. Figure 7 The Arduino GSM shield allows an Arduino board to connect to the internet, send and receive SMS, and make voice calls using the GSM library. The shield will work with the Arduino Uno out of the box.
  • 20. 20 | P a g e Connecting the Shield To use the shield, you'll need to insert a SIM card into the holder. Slide the metal bracket away from the edge of the shield and lift the cradle up. Figure 8 Insert the SIM in the plastic holder so the metal contacts are facing the shield, with the notch of the card at the top of the bracket.
  • 21. 21 | P a g e Figure 9 Slide the SIM all the way into the bracket Figure 10 Push the SIM to the board and slide the metal bracket towards the edge of the shield to lock it in place.
  • 22. 22 | P a g e Figure 11 Once the SIM is inserted, mount it on top of an Arduino board. Figure 12 To upload sketches to the board, connect it to your computer with a USB cable and upload your sketch with the Arduino IDE. Once the sketch has been uploaded, you can disconnect the board from your computer and power it with an external power supply.
  • 23. 23 | P a g e Figure 13
  • 24. 24 | P a g e Chapter 5: Results and Analysis Transferred data will be treated in the monitoring and control station. The measurements which were taken: Wind Speed, Wind Direction, Solar Radiation and Temperature. 5.1 Wind Energy In recent years, wind energy has become one of the most economical renewable energy technology. Today, electricity generating wind turbines employ proven and tested technology, and provide a secure and sustainable energy supply. At good, windy sites, wind energy can already successfully compete with conventional energy production. Many countries have considerable wind resources, which are still untapped. A technology which offers remarkable advantages is not used to its full potential:  Wind energy produces no greenhouse gases.  Wind power plants can make a significant contribution to the regional electricity supply and to power supply diversification.  A very short lead time for planning and construction is required as compared to conventional power projects.  Wind energy projects are flexible with regard to an increasing energy demand - single turbines can easily be added to an existing park.  Finally, wind energy projects can make use of local resources in terms of labour, capital and materials. The technological development of recent years, bringing more efficient and more reliable wind turbines, is making wind power more cost-effective. In general, the specific energy costs per annual kWh decrease with the size of the turbine notwithstanding existing supply difficulties. Wind Turbine: Wind speed measurements was taken and applied on two types of wind turbines.
  • 25. 25 | P a g e  100 KW Wind Turbine.  1 MW Wind Turbine. The following equation was used to calculate the output power: 5.1.1 For100 KW Wind Turbine: We have = 1.23 Power Coefficient = 0.75 Area = 415.265 m^2 Area was calculated by using the following equation: assuming the diameter equal 21 m so r will be 11.5 m. Month Wind Speed (m/s) Power Generated (KW) Jan 4.74 20.39842955 Feb 3.66 9.390851308 Mar 4.16 13.78928348 Apr 3.38 7.396253857 May 4.42 16.53973382 Jun 5.26 27.87526087 Jul 5.48 31.52124651 Aug 4.94 23.09099008 Sep 4.57 18.28143607 Oct 3.82 10.67706279 Nov 2.86 4.480843825 Dec 3.76 10.18181596 Table 1
  • 26. 26 | P a g e Figure 14 5.1.2 For 1 MW Wind Turbine: We have = 1.23 Power Coefficient = 0.75 Area = 2826 m^2 Area was calculated by using the following equation: assuming the diameter equal 60 m so r will be 30 m. 0 50 100 150 200 250 1 2 3 4 5 6 7 8 9 10 11 12 Relation of Output power to Wind Speed for 100KW Wind Turbine Wind Speed (m/s) Power Generated (KW)
  • 27. 27 | P a g e Month Wind Speed (m/s) Power Generated (KW) Jan 4.74 138.81729 Feb 3.66 63.90749473 Mar 4.16 93.8401144 Apr 3.38 50.33367464 May 4.42 112.5577349 Jun 5.26 189.6993178 Jul 5.48 214.5113184 Aug 4.94 157.1409533 Sep 4.57 124.410529 Oct 3.82 72.66054072 Nov 2.86 30.49345514 Dec 3.76 69.29024094 Table 2 Figure 15 0 50 100 150 200 250 1 2 3 4 5 6 7 8 9 10 11 12 Relation of Output power to Wind Speed for 1MW Wind Turbine Wind Speed (m/s) Power Generated (KW)
  • 28. 28 | P a g e 5.2 SolarEnergy On Grid System Grid-connected photovoltaic power systems are power systems energized by photovoltaic panels which are connected to the utility grid. Grid-connected photovoltaic power systems consist of Photovoltaic panels, MPPT, solar inverters, power conditioning units and grid connection equipment. Unlike Stand-alone photovoltaic power systems these systems seldom have batteries. When conditions are right, the grid-connected PV system supplies the excess power, beyond consumption by the connected load, to the utility grid. Radiation Measurements Month E KWh/m^2-day Jan 2.82 Feb 3.58 Mar 4.82 Apr 6.36 May 7.68 Jun 8.19 Jul 7.75 Aug 6.7 Sep 5.83 Oct 3.99 Nov 3.99 Dec 2.724 Table 3
  • 29. 29 | P a g e Figure 16 Assuming we need to cover a load of 10000KWH Epv = Penetration Factor * E load = 0.2 * 10000KWh Epv = 2000KWh Ppv= Epv/ (P.S.H * Efficiency %) = 2000/ (5.4*0.95) Ppv =390 KW Number of modules = Ppv/ Ppeak 0 1 2 3 4 5 6 7 8 9 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec E KWh/m^2-day
  • 30. 30 | P a g e Taking P peak in two cases:  P peak = 150W -12 v- Mono type.  P peak= 200w – 24 v – Poly type.  For Mono type Number of modules needed = 390KW/150W = 2600 Modules Taking Vdc = 400 V Number of modules in one string = 400V/ 12V =34 Module Number of strings = 2600/33.33= 78 String  For Poly type Number of modules needed = 390KW/200W = 1950 Modules Taking Vdc = 400 V Number of modules in one string = 400V/ 24V =17 Module Number of strings = 1950/16.67= 117 String
  • 31. 31 | P a g e Chapter 6: Conclusion and Recommendation To sum up, the main concern of our project is to design an intelligent system which can send the measurements of sensors from the Meteorology stations to monitoring and control stations also in case of unexpected situations (such as fire detection) via Text message or internet. Additionally, the system Analyze the received data and show figures and calculations of the output power when using wind turbine or solar cells. Also, the remote control option of our system enables you to have some control on some of the applications in the Meteorology station by turning them off and on. Moreover, we achieved the goals we proposed. The system worked successfully. We tested our system in real life conditions, at the Energy Research center at An-Najah National University. We chose this method because we experienced that this method is simple in real relatively cheap according to the usage of other kind of methods. While working on our project we improved our programming skills as well as practical skills in working in Meteorology stations. We gathered all the knowledge we have gained in Electrical Circuits, Microcontrollers and Microprocessors, Controls and System, Renewable Energy, Digital Communication and Measurements. Our future plan is to have a direct interface between sensors and the microcontroller itself.
  • 32. 32 | P a g e References:  Websites: 1. http://arduino.cc/ 2. http://arduino.cc/en/Main/ArduinoGSMShield 3. http://arduino.cc/en/Main/ArduinoEthernetShield 4. http://www.kalkitech.com/ 5. http://electrical-engineering-portal.com/three-generations-of-scada-system-architectures 6. http://arduino.cc/en/Reference/Ethernet 7. http://myrobotlab.net/tutorial-use-ethernet-shield-with-arduino/ 8. http://electrical-engineering-portal.com/an-introduction-to-scada-for-electrical-engineers- beginners 9. http://electrical-engineering-portal.com/three-generations-of-scada-system-architectures 10. http://arduino.cc/en/Reference/Ethernet 11. http://www.instructables.com/id/Control-an-LED-over-the-internet-using-the-Arduino/ 12. http://www.intorobotics.com/getting-started-with-arduino-ethernet-shield-tutorials-and- resources/ 13. http://simplyarduino.com/?page_id=5  Books: 1. Simply Arduino 2. Beginning Arduino for MICHAEL MCRO BERTS 3. Getting Started with Arduino (Make: Projects) for MASSIMO BAN ZI
  • 33. 33 | P a g e Appendix
  • 34. 34 | P a g e Codes: First Method: Via Internet Code #include <SPI.h> #include <Ethernet.h> #include <SD.h> // MAC address from Ethernet shield sticker under board byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192, 168, 1, 177); // IP address, may need to change depending on network EthernetServer server(80); // create a server at port 80 File webFile; void setup() { Ethernet.begin(mac, ip); // initialize Ethernet device server.begin(); // start to listen for clients Serial.begin(9600); // for debugging // initialize SD card
  • 35. 35 | P a g e Serial.println("Initializing SD card..."); if (!SD.begin(4)) { Serial.println("ERROR - SD card initialization failed!"); return; // init failed } Serial.println("SUCCESS - SD card initialized."); // check for index.htm file if (!SD.exists("index.htm")) { Serial.println("ERROR - Can't find index.htm file!"); return; // can't find index file } Serial.println("SUCCESS - Found index.htm file."); } void loop() { EthernetClient client = server.available(); // try to get client if (client) { // got client? boolean currentLineIsBlank = true; while (client.connected()) {
  • 36. 36 | P a g e if (client.available()) { // client data available to read char c = client.read(); // read 1 byte (character) from client // last line of client request is blank and ends with n // respond to client only after last line received if (c == 'n' && currentLineIsBlank) { // send a standard http response header client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection: close"); client.println(); // send web page webFile = SD.open("index.htm"); // open web page file if (webFile) { while(webFile.available()) { client.write(webFile.read()); // send web page to client } webFile.close(); } break; } // every line of text received from the client ends with rn
  • 37. 37 | P a g e if (c == 'n') { // last character on line of received text // starting new line with next character read currentLineIsBlank = true; } else if (c != 'r') { // a text character was received from client currentLineIsBlank = false; } } // end if (client.available()) } // end while (client.connected()) delay(1); // give the web browser time to receive the data client.stop(); // close the connection } // end if (client) }
  • 38. 38 | P a g e Second Method: Via Text Message code #include <GSM.h> #define PINNUMBER "" GSM gsmAccess; // include a 'true' parameter for debug enabled GSM_SMS sms; char remoteNumber[20]= "0568388498"; char senderNumber[20]; const int sensorT=A0; const int sensorR=A1; float temp; float rde; #include <LiquidCrystal.h> LiquidCrystal lcd(4,8,9,10,11,12); void setup() { pinMode(6,OUTPUT); digitalWrite(6,HIGH); // put your setup code here, to run once: Serial.begin(9600); Serial.println("SMS Messages Sender"); Serial.println("SMS Messages Receiver"); boolean notConnected = true; while(notConnected) { if(gsmAccess.begin(PINNUMBER)==GSM_READY) notConnected = false; else { Serial.println("Not connected"); delay(1000); } } Serial.println("GSM initialized"); Serial.println("Waiting for messages"); lcd.begin(16,2); } void loop() { RSMS(); // put your main code here, to run repeatedly: temp=analogRead(sensorT); rde=analogRead(sensorR); delay(20000); sendSMS();
  • 39. 39 | P a g e for(int i=0;i<60;i++){ temp=analogRead(sensorT); rde=analogRead(sensorR); LCD(); RSMS(); delay(1000);} } void sendSMS(){ Serial.print("Message to mobile number: "); Serial.println(remoteNumber); // sms text Serial.println("SENDING"); Serial.println(); Serial.println("Message:"); Serial.println(temp); Serial.println(rde); delay(1000); // send the message sms.beginSMS(remoteNumber); sms.print("temp is:"); sms.print(temp ); sms.print("n"); sms.print("rde is:"); sms.print(rde); sms.endSMS(); Serial.println("nCOMPLETE!n"); delay(1000); } void LCD(){ lcd.setCursor(1,0); lcd.print("R:"); lcd.print(rde); lcd.print("G"); lcd.setCursor(1, 2); lcd.print("T:"); lcd.print(temp); lcd.print("C"); } void RSMS() { char c; // If there are any SMSs available() if (sms.available()) {
  • 40. 40 | P a g e Serial.println("Message received from:"); // Get remote number sms.remoteNumber(senderNumber, 20); Serial.println(senderNumber); // An example of message disposal // Any messages starting with # should be discarded if (sms.peek() == '#') { Serial.println("Discarded SMS"); sms.flush(); } // Read message bytes and print them c = sms.read(); Serial.print(c); if(c=='r'){ digitalWrite(6,LOW); } else if(c=='o'){ digitalWrite(6,HIGH);} Serial.println("nEND OF MESSAGE"); // Delete message from modem memory sms.flush(); Serial.println("MESSAGE DELETED"); } delay(1000); }
  • 41. 41 | P a g e