Sunday, November 30, 2014

Receive SMS when there's a GAS leakage using SIM900A GSM module and Arduino






If you want to receive information about gas leakage when you are at home or office, this project is for you. the above fritzing explains how to interface (connect) GSM module (SIM900A) to arduino, the program is really simple , when the sensor receives a gas emission , it sends input to the arduino and arduino push the code for sending message to SIM900A, which then send you stored message to the number given to the program.




Components Required

GSM shield
Arduino
Gas detection sensor module

_________________________________________________________________________________

Arduino Program:

int PIN = 7;// attach gas sensor to pin 7
int sensor = 0;

void setup()
{
pinMode (PIN,INPUT);
Serial.begin(9600); // gsm baud rate
delay(5000);
}
void loop()
{
sensor = digitalRead (PIN); // read whether gas is presented or not
if (sensor == HIGH){   // if gas is presented send a message
Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1"); // send SMS in text mode
delay(1000);
Serial.println("AT+CMGS=\"+919962\""); //CHANGE TO Number , you'd like to receive message
delay(1000);
Serial.print("Gas Leakage at HOME (attention required)"); // content of the message
Serial.write(26); // ctrl+z ASCII code
delay(300000); // Wait for 5 minutes before next reading
}
}

_________________________________________________________________________________



Tuesday, November 25, 2014

How to Turn On AC Lights and Fan by clapping using Arduino

How to make a clap switch??  It's really easy to make AC appliances work just by  snap or clap, be careful when you are using AC appliances , if you are novice please don't try this without understanding some basic stuff about electronics.







Arduino Program:
--------------------------------------------------------------------------------------------------------------------------

int Torelay = 8;       // signal to drive relay
int soundsensor = 7;   // input from sound sensor

boolean state = false;

void setup()
{
  pinMode(Torelay, OUTPUT);
  pinMode(soundsensor, INPUT);
}

void loop()
{
  if (digitalRead(soundsensor) == LOW)
  {
    delay(100);                    
    state = !state;              
    digitalWrite(Torelay, state);  
  }
}
--------------------------------------------------------------------------------------------------------------------------

Tuesday, November 11, 2014

Virtual Prototyping in Solidworks and LabVIEW






The above video explains about how to use solidworks and LabVIEW for real time simulation,  real time machining operation can be done using these soft-wares. Unlike other simulators that is inbuilt with many CAD software , this can be used for real time testing of new machine design and the same program can be used physical machining process with the help of labview hardware resources that is available with labview. 

CAD files and labview files can be download from the below link:

LabVIEW

Solidworks