A wise swap system incorporates an Arduino board with GSM MODULE being remotely managed by good telephone. As expertise is advancing each sector getting smarter with the assistance of AI or IOT eg: dwelling’s good farming or transportation.
As Fashionable homes are regularly shifting from standard switches to centralized management system, our thought primarily offers with the issue of farmers by way of the good swap expertise which is predicated on IOT and makes life straightforward, environment friendly and higher and enhances their lifestyle in order that they don’t discover difficulties of their each day everyday job thus making their each day routine environment friendly and productive. Involving distant managed switches.
Presently, standard switches situated in numerous elements of the farms makes it tough for the person to go close to them to function. Good switches present a most trendy answer with smartphones. Our system majorly offers when there may be an evaluation of the most important agriculture and industrial works manually. this legacy of handbook work generally constrains the employee to investigate the work by getting into subject each time. Resulting from uncertainty of energy faults the employee exhausts his power by travelling tractorable distance for the farm.
Our system offers with eradication of this drawback as our system encompass IOT based mostly expertise powered by photo voltaic panel. this contemporary technique of expertise assist in accessing the issue by sitting at one place. By way of this adaptive expertise person can simply entry the working situation and operative mode of machineries which are utilized in his farms by sitting at just one place as an alternative of travelling lengthy distance to the sector in unfavorable situation. The primary goal is to offer amenities to the farmers.
Working
Our system the good swap made utilizing Arduino UNO, GSM MODULE and a wise telephone. The goal of this technique is to manage totally different agricultural machineries utilizing a wise telephone. When the facility is turned on, the connection LED on the GSM MODULE begins blinking. We have to begin the app (made by way of MIT APP INVENTER) in our good telephone and get linked to the GSM MODULE. If the pairing is profitable, the LED turns into secure. Now, within the app, we have to set totally different keys for various hundreds and their corresponding worth that should be transmitted when that secret’s pressed. Then we’re prepared to manage the hundreds.
When a secret’s pressed within the good telephone, the GSM MODULE receives the corresponding knowledge and intern transmits that knowledge to Arduino. If we ship “Motor on”, then the info acquired by the GSM MODULE. This knowledge is transmitted to Arduino then compares the acquired knowledge with the info written within the sketch and accordingly activates the ‘Motor on’. The same motion might be relevant to different keys and hundreds. Utilizing any such connection, we will management activate or off totally different electrical machine utilizing our Smartphones. additionally, we get the acknowledgement on our telephone.
The GSM MODULE has 4 – pins: VCC, TX, RX and GND. VCC and GND pins are linked to 5V and floor to Arduino UNO. The GSM MODULE works on 12V. The TX and RX pins of the GSM MODULE should be linked to RX and TX pins of the Arduino.
When connecting RX to TX pins of Arduino (or any microcontroller as a matter of truth), we should be cautious because the pin can tolerate solely 5V. However the voltage from TX pin or Arduino might be 5V. So, a voltage divider community consisting of 10K and 20K resistors are used to scale back the voltage to 5V roughly.
PCB format:
The Program used:
#embrace <Wire.h>
#embrace <LiquidCrystal_I2C.h>
#embrace <SoftwareSerial.h>
LiquidCrystal_I2C Liquid crystal display(0x27,16,2); //set the liquid crystal display handle to 0x27 for a 16 chars and a pair of line
show
SoftwareSerial mySerial(3, 6);
String job;
void setup()
{
Liquid crystal display.init(); //initialize the liquid crystal display
Liquid crystal display.init();
Liquid crystal display.backlight(); // Activate the backlight and print message.
mySerial.start(9600); // Setting the baud fee of GSM Module.
Serial.start(9600); // Setting the baud fee of Serial Monitor (Arduino).
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(11,HIGH);
digitalWrite(12,HIGH);
delay(1000);
SendMessage();
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print(" by Yogesh jatav");
delay(1000);
}
SMART SWITCH FOR AGRICULTURE IRRIGATION
void loop()
{
if (Serial.accessible()>0)
swap(Serial.learn())
{
case 's':
SendMessage();
break;
case 'r':
RecieveMessage();
break;
}
if (mySerial.accessible()>0)
Serial.write(mySerial.learn());
job=mySerial.readString();
if (job.indexOf("Switch1off")>=0){
Serial.println(job);
digitalWrite(9,HIGH);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Switch1off");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Switch1on")>=0){
Serial.println(job);
digitalWrite(9,LOW);
Liquid crystal display.clear();
SMART SWITCH FOR AGRICULTURE IRRIGATION
delay(500);
Liquid crystal display.print("Switch1on");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Switch2off")>=0){
Serial.println(job);
digitalWrite(10,HIGH);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Switch2OFF");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Switch2on")>=0){
Serial.println(job);
digitalWrite(10,LOW);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Switch2on");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Motoroff")>=0){
Serial.println(job);
digitalWrite(11,HIGH);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Motor OFF");
delay(5000);
SMART SWITCH FOR AGRICULTURE IRRIGATION
Liquid crystal display.clear();
}
else if (job.indexOf("Motoron")>=0){
Serial.println(job);
digitalWrite(11,LOW);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("MOTOR ON");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Switch4off")>=0){
Serial.println(job);
digitalWrite(12,HIGH);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Switch4off");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("Switch4on")>=0){
Serial.println(job);
digitalWrite(12,LOW);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("Switch4on");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("alloff")>=0){
SMART SWITCH FOR AGRICULTURE IRRIGATION
Serial.println(job);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(11,HIGH);
digitalWrite(12,HIGH);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("ALL Switches OFF");
delay(5000);
Liquid crystal display.clear();
}
else if (job.indexOf("allon")>=0){
Serial.println(job);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
digitalWrite(11,LOW);
digitalWrite(12,LOW);
Liquid crystal display.clear();
delay(500);
Liquid crystal display.print("ALL Switches ON");
delay(5000);
Liquid crystal display.clear();
}
}
void SendMessage()
{
mySerial.println("AT+CMGF=1"); //Units the GSM Module in Textual content Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS="+919872436823"r"); // Substitute x with cell quantity
SMART SWITCH FOR AGRICULTURE IRRIGATION
delay(1000);
mySerial.println("Dwelling good Switches on");// The SMS textual content you wish to ship
delay(1000);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}
void RecieveMessage()
{
mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to recieve a stay SMS
delay(1000);
}
Part Record:
s.no | Elements | Vary | Amount |
1 | Arduino Uno | 7-12 volt | 1 |
2 | Gsm with Gprs | 5 volt | 1 |
3 | Relay | 5 volt | Relies on machineries |
4 | DC-DC down converter | 2 volt to 35 Volt | 1 |
5 | Show (16*2) | 5 volt | 1 |
6 | Inter-Built-in Circuit(I2C) | 5 volt | 1 |
7 | contactors | 200v to 600v | Relies on machineries |
8 | Connecting wires | — | — |
9 | Photo voltaic panel | 50 w | 1 |
10 | Photo voltaic cost controller | 12v | 1 |