Total Pageviews

Monday, September 22, 2014

Wireless Temperature Sensor With Arduino UNO and SIM900D (Program Included)


Assalam u Alaikum ! Today I want to share my fourth year Microwave Communication project with you guys. Hope you like it and you are welcomed to ask any questions if any problem arises ! :)



Wireless Temperature Monitor
With Arduino UNO and SIM900D
Wireless Temperature Monitor is a multipurpose device to be used in any applicable area. Salient features of this device are
            (1) Temperature Sensing
            (2) Reporting
Temperature sensing is very important parameter of the device. Sensing the temperature on different instances enables the user to perform necessary and required action whenever needed. For example, if a user wants to operate the heater in his room, He might feel the temperature and would turn the heater on or off. Using this device, sensing of temperature is automatically performed and by sufficient changes it can allows the user to automate the heaters’ on off process.
 After the temperature is sensed, user might know what temperature has been sensed so that he could perform required action. This device Reports to the user on user-defined parameters. Reporting is being done through GSM technology which is widely available and is user friendly. User would be reported on his cell phone about the temperature automatically on different time intervals.



 Circuit Diagram

 Circuit Analysis
First Temperature sensor is given Ground and VCC through the Arduino board. Then, LM35’s output is fed to pin 1 of the Arduino board which is defined in the source code.
For connecting the GSM Module with the Arduino we simply connect RXD pin of the Arduino to the TXD pin of GSM and TXD pin of Arduino to the RXD pin of GSM.
These connections will take analog input present at pin 1 from the sensor and convert them digitally inside, then after comparison in the program, data would be sent through the TXD pin of Arduino to the RXD pin of GSM which would send it through the mobile carrier service to the user.
  Source Code
float temp;
int tempPin = 1;
float rem;
void setup()
{
  Serial.begin(9600);  //Baud rate of the GSM/GPRS Module
   temp = analogRead(tempPin);
  temp = temp * 0.48828125;
}
void loop()
{
 rem = analogRead(tempPin);
 rem = rem * 0.48828125;
  if(rem>=temp+2 || rem<=temp-2)
  {
    Serial.print("\r");
  delay(1000);                 
  Serial.print("AT+CMGF=1\r");   
  delay(1000);
  Serial.print("AT+CMGS=\"+923005100300\"\r");    //Number to which you want to send the sms
  delay(1000);
    Serial.print("Current Temperature is : ");
  Serial.print(rem);   //The text of the message to be sent
  delay(1000);
  Serial.write(0x1A);
  delay(1000);
  delay(1000);
  delay(1000);
  temp = rem;
}

}

This program is written for every 2 degree change in temperature , you can change it .

No comments:

Post a Comment