Tuesday, June 25, 2019

Week 18 : FYP2 The Submision


In this final week of the semester, I have done the report hardcover, all the document that needed to submitting online and ready to submit. Alhamdulillah, all praises to Allah S.W.T because on His blessing and His permission will allows me for completing this final year project thesis.





Week 17 : FYP2 Template Correction


Before proceeding on hardcover, the report need to follow the template that being upload by FYP cordinator such as margin and spacing. For the hardcover, the total cost is RM53.70. The submission for the hardcover have been extended to week 18 on 19 June 2019.




Week 16 : FYP2 Technical Report


After finished my FYP report, all FYP2 need to do their technical paper. Technical paper is basically a summary of all the work that have been done. Then, will proceed by doing hardcover for my fyp 2 as well as online submitting that include the report, poster, presentation picture,video and the program for the project.



Week 15 : FYP2 Chapter 5 The Conclusion



In conclusion, a smart watering plant system or usually called automatic irrigation system will build our life easier and advantageous. Smart watering plant system are the fortune development for home garden. This can be as a result of the program that has been setup is a lot of appropriate for small home garden. Nowadays, Internet in Malaysia becomes the most platform for complimentary discussion and communication between them. 81.8% of every social unit in Malaysia buy the fastened broadband. Since this project are using internet, individuals will take advantages of it and applied to the project.
            Internet of Things (IoT) is main feature in this project. This project have 2 type of function which  is automatic and manual. When the system running, a soil moisture sensor and DHT22 (temperature and humidity sensor)will collect data and transfer mainboard NodeMCU ESP8266 and will display monitoring data on Blynk apps at smartphone. A user don’t worries anymoreto plant their plant to make sure plant get enough content water and idea temperature also surrounding air.
            For automatic, when the sensor detect soil content is dry and upper than moisture threshold was set the relay will triggered and automatic turn ON the motor pump. After soil moisture enough for plant the motor pump will automatic turn OFF. During the automatic system running, notification email will be send to user and the user can monitoring data on Blynk apps at smartphone.
            For manual, only used for certain time for example if the user plant the type species what need more water ,low temperature and high humidity like tomato and strawberry. So for this case only the user will run with manually. By pressing the push button manual on Blynk apps, relay module directly triggered and will turn ON the motor pump. A user can control manual from long distance but have a limit range of connection. 
            Auto backup power supply also with one main system in this project. Basically the normal system using a grid supply 240 volts to running the system. So when black out happen a relay will automatic triggered and switch to solar energy supply. At morning until afternoon around 10am-3pm the process charging happen when the solar panel will absorb a heat of sunlight and generate an electrical energy. An electrical energy was generate from solar panel will be store at battery. The charger controller has been connect between solar panel and battery. Main function of charger controller is to stabilize the current. If current not stable it will cause/blow the load. Another function is to cut off the current when battery is full. If battery was full it not charging anymore because over load current will be transfer to ground.
            Automatic plant watering system provided a low cost feature and portable that will attract many people to look and take advantages to install at their home. This project will provided a user can be saving more water and reduce wastages of water from over irrigation plant. A user no need more to watering their plant. It is also provide saving of bill electricity by install solar energy system and can be backup power supply when blackout happen. Finally, this project has successfully function and has been achieved the main objective on this project.

Week 14 : FYP2 Chapter 3 & 4


On this week, I"ll be focus on chapter 3 and chapter 4 for my report.

Chapter 3 consists of the methodology which will explain the process of the project ad work flow during completing the project
- Introduction
-Hardware and Block diagram
-Flowchart
-Working of the project
-List of Main Component
-Circuit Diagram
-Gantt chart
-Project costing
-Chapter Summary

Meanwhile on Chapter 4
-Introduction
-Result including (language, prototype)
-Conclusion
-Chapter summary

Week 13: FYP2 Chapter 1 & 2


On this week, I only focus on my thesis to complete the chapter 1 and chapter 2.

Chapter 1 consist of the introduction of the project and followed by a few sub topic such as:
-Background of the project
-Problem Statement
-Objectives of the project
-Significance of the project
-Scopes and limitations of the project
-Chapter summary

Chapter 2 consists of all the subtopic form the article that related to the project such as:
-Introduction
-History
-The problem of burglary of single-family houses
-Literature review (4 subtopic)
-Component comparisons
-Chapter summary

Week 12 : FYP2 FYP Report


On this week, i"ll be focus completing my FYP report for submission on week 17 (14/6/2019). I"ll be gathering much more information that will be needed fort he report as well as review back my FYP1 report for any msitake that need to be corrected.

Week 11 : FYP2 Industry Day


All FYP2 participants need to present their final year project on 24th April. The Industry Day start from 9:00 am to 2:00pm and will be held at Dewan Gemilang. The presentation was going smoothly but unfortunately, a tripping happen where some of the FYP project damaged due too many load. As the tripping happened, my NodeMCU stop working due to short circuit. Luckily, all the part except the NodeMCU module working perfectly fine.

Week 10 : FYP2 Poster making

After finish the prototype, all FYP2 presenter need to design their poster for their project. The poster need to display all the information about the project.


Week 9 : FYP2 The result

Here's the result for the project


Table Soil moisture content
Table shows a soil condition and moisture content. This result was collect from testing using a soil moisture sensor. Basically when soil condition is dry amount of moisture content is around 0% until 300%. For this data a relay will triggered from condition normally open to normally close and motor pump will turn ON. In damp condition moisture content is upper than 300% and lower than 600%. For this case the relay will turn OFF but can control to turn ON the motor because some type of plant need difference amount of water to still healthy and due process photosynthesis. Last condition is wet when value moisture content is upper than 700%. Relay module not triggered and stay in condition normally open and the motor will turn OFF. 

Table Content idea of temperature and humidity
Table show content idea of temperature and humidity form difference type of plant. By using sensor DHT22 can testing difference type of plant and result was key in on table. First type of plant was test is vegetable. Idea temperature and idea relative humidity is 20°-27°C and 50%-70%. Second type of plant is flowering. Idea content for flowering is 20°-25°C and 50%-60%. Lastly type of plant is fruit like tomato and strawberry. Idea content for fruit is 10°-20°C and 70%-80%.

Week 8: FYP2 The fully prototype


This is complete prototype of Development of an Intelligent Solar Powered Watering System. And i will show complete coding for this program.


// include your ESP library here
// and other blynk widget
#include <BlynkSimpleEsp8266.h>
#include <SoftwareSerial.h>
#include <ESP8266WiFi.h>                                        
#include <SPI.h>
#include <DHT.h>

// Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "554d6e1520e64e33b8924af9eb66423d";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Adam Jasman";
char pass[] = "qwertyuiop";

#define DHTPIN 5     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22  (AM2302)


DHT dht(DHTPIN, DHTTYPE);
int sensorData;
int threshold;
SimpleTimer timer; // allocate a name (mytimer) to the timer
int selectmode; //Select Mode for Auto or Manual
int button2; //Manual Blynk Case 1 ONOFF
int timer2; //Manual Blynk
int timer3; //Auto Blynk
int val; //sensor
int morning;
int night;

//Configuration of the widges used at the Blynk panel in the mobile
WidgetLED led1(V1); //virtual led Blynk for Motor 1
WidgetLED led4(V7); //virtual led Blynk for Auto Mode
WidgetLED led5(V8); //virtual led Blynk for Manual Mode
WidgetLED led6(V0); //virtual led Blynk for sensor 1


void setup()
{
Serial.begin(115200);     // Set ESP8266 baud rate
Blynk.begin(auth, ssid, pass); // Here your Arduino connects to the Blynk Cloud.
//declare sensor dht
pinMode(5,INPUT);
//Motor
pinMode(14,OUTPUT); 
//Sensor
pinMode(A0,INPUT);
dht.begin();
}

void loop()

{
 
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
// Read temperature as Celsius
float t = dht.readTemperature();

// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t))
{
Serial.println("Failed to read from DHT sensor!");
return;
  }

Blynk.virtualWrite(V0,t);
Blynk.virtualWrite(V3,h);
Blynk.run(); // Initiates Blynk
timer.run(); // call the simple timer routine

}

void Timer()

{
if(night||morning==1 && selectmode==0)
{
Auto();
Blynk.email("adam.sumax@gmail.com", "Subject: Plant Watering System", "Adam watering ur plant...");
Blynk.notify("automation watering alert - Siram");
}
}

void Auto()

{
val = analogRead(A0);
if(val<threshold) //if sensor 1 high
{
digitalWrite(14,LOW); 
led1.on(); // led Motor 1 blynk on
led6.off(); // led Sensor 1 blynk on
  }
  else
  {
digitalWrite(14,HIGH); 
led1.off(); // Led Motor 1 blynk off
led6.on(); // led Sensor 1 blynk off
  }

  }

void Manual()
{
if(button2==1&&selectmode==1)
{
digitalWrite(14,LOW);//Motor 1 On 
led1.on(); // light 1 blynk on
    }
 else
 {
  digitalWrite(14,HIGH);//Motor 1 Off 
  led1.off(); // light 1 blynk off

  }
 
}

BLYNK_WRITE(V2){   // add a slider to your project on V0 range 0 to 30 (minutes)
  threshold = param.asInt();  // set variable as Slider value
}

BLYNK_WRITE(V5)
{
  // You'll get HIGH/1 at startTime and LOW/0 at stopTime.
  // this method will be triggered every day
  // until you remove widget or stop project or
  // clean stop/start fields of widget
night = param.asInt();
}

BLYNK_WRITE(V9) // Case 1 ONOFF
{
 button2 = param.asInt(); // Get the state of the VButton for Case 1 ONOFF
}

// Sets btnPin HIGH or LOW depending on state of Button Widget
BLYNK_WRITE(V6) //Select Mode
{
selectmode = param.asInt(); // Get the state of the VButton for selectmode
if(selectmode ==1){
timer.disable(timer3); // Disables the timer3
    led5.on(); // light 5 blynk on
    led4.off(); // light 4 blynk off
timer2=timer.setInterval(1000L, Manual);   // Setup a function to be called every 1000 ms
 }
 else
{
timer.disable(timer2); //Disables the timer2
   led4.on(); // light 4 blynk on
   led5.off(); // light 5 blynk off
  timer3=timer.setInterval(1500, Timer); // Setup a function to be called every 1500 ms
 }
}

BLYNK_CONNECTED()
{
Blynk.syncVirtual(V6); //Select Mode
Blynk.syncVirtual(V9); // Case 1 ONOFF
Blynk.syncVirtual(V5); //Select Mode
Blynk.syncVirtual(V10); // Case 1 ONOFF 
Blynk.syncVirtual(V6); //Select Mode
Blynk.syncVirtual(V2); // Case 1 ONOFF

Week 7: FYP2 Construct the prototype


Firstly, i was contruct all component and complete done. A main sensor which is soil moisture and temperature humidity sensor  need to declare port at NodeMCU. After that also need connect to relay for trigger as a switch. NodeMCU use supply form powerbank 5V and load motor pump use a AC-DC power supply 12V to function. Besides that a charger controller also was connect to solar and battery 12V. All circuit was contruct will put in box of prospect.

Week 6 : FYP2 DHT22 ( Temperature and Humidity Sensor )



The DHT22 could be a temperature and humidity detector that uses an electrical phenomenon humidity detector and a semiconductor to live the encompassing air, and spits out a digital signal on the information pin. Analog pin does not used on this sensor. It is very simple to use and the result is tally with the condition.  
The system integration is quick and easy when using single wire serial interface. The DHT22 is in small size, low power consumption and the signal transmission can be up-to-20 meter. It also have 4-pin package.
    Pin connection on the sensor:-
      VCC = 3.3V
      Data = Pin on the sensor
      GND = Ground

Temperature Range
0 to 50 degrees Celsius
Humidity Range
20 to 80%
Operating Voltage
3-5V
Max current
2.5mA

 Table of Specification of temperature and humidity sensor 

Week 5 : FYP2 Soil Moisture Sensor


The soil moisture sensor consists of two probes that ar wont to measure the volumetrically content of water within the soil. The two probes enable this to go through the soil and so it gets the resistance worth to measure the moisture worth. This device are often connected in two modes; Analog mode and digital mode. 

Features of soil moisture:
      Operating Volt : DC 3.3V-5V
      Current: 35mA
      Consist LED indicator : RED for power, GREEN for digital output

The soil moisture sensor pin details:
      VCC: Power Supply
      A0: Analog port
      D0: Digital port
      GND: Ground base
The module additionally contains a potentiometer which can set the brink worth. Threshold is a benchmark of the value whether it has maximum or minimum value. Mostly, to connect with Arduino, they will use analog pin to define the output value and the sensor will gives the value from 0-1000.