Dear sir
i want to develop program which has two limit switch LS1 & LS2 when LS1 is sensed then message DOOR1 is open will be send through GSM & when LS1 is De-sensed then message DOOR1 is closed will be send through GSM. LS2 is sensed then message DOOR2 is open will be send through GSM & when LS2 is De-sensed then message DOOR2 is closed will be send through GSM.
Please help me for this for programming & wiring of arduino & GSM..
If you want to try this yourself and run into problems we will try to help.
If you want someone to write the program for you then you should ask in the Gigs and Collaborations section and be prepared to pay.
...R
This code i am try for calling when limit switch LS1 is sensed call will be forwarded to +919595...no & when LS1 is De-sensed call will be forwarded to +919404....no. But it is not working properly please help..
const int buttonPin = 7;
const int ledPin = 13;
int buttonState = 0;
void setup()
{
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop()
{
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH)
{
digitalWrite(ledPin, HIGH);
Serial.println("ATD+919595303563;\r\n");
delay(40000);
Serial.println("ATH");
while (1);
}
else
{
digitalWrite(ledPin, LOW);
Serial.println("ATD+919404787067;\r\n");
delay(40000);
Serial.println("ATH");
while (1);
}
}
See the StateChangeDetection example, how to react only when a signal changes.
i am not understand anything from that program please help me regarding on this project.
If the door is opened, make some attempt, using some unknown GSM shield, attached to some unknown set of pins, to send a message, then go into an infinite, do-nothing-ever-again, loop.
If the door is opened, make some attempt, using some unknown GSM shield, attached to some unknown set of pins, to send a message, then go into an infinite, do-nothing-ever-again, loop.
I'm having a hard time understanding that approach.