Tuesday 23 October 2012

System Programming for GSM Accident Notification System


****Coding for GSM Accident Notification System


#include <GSM_Shield.h>
# define LED 13
# define BUTTON 6
//**************************************************************************
char number[]="+60163024022";  //Destination number
char text[]="Accident Happen to WTF 7676!!!";  //SMS to send
//**************************************************************************


int error;
int val = 0;

void setup()
{
  pinMode (LED, OUTPUT);
  pinMode(BUTTON, INPUT);

  Serial.begin(9600);
  Serial.println("system startup");




}

void loop()

{

  val = digitalRead(BUTTON);
  Serial.println("ready to sent sms");
  if (val == LOW)

{

  digitalWrite(LED, HIGH);

{
 
  Serial.print("Send SMS to ");
 
  Serial.println("SMS sent \n");
}
}
 
  else {
  digitalWrite(LED, LOW);

}
    delay(500);
 
    return;
 }







Sunday 21 October 2012

MAX 232 and RS 232 (DB9)


Connection Between MAX 233 and RS232 (DB9 Female)








Atmega328 Pin Mapping





SIM 900 GSM/GPRS SHIELD FOR ARDUINO


IComsat is a GSM/GPRS shield for Arduino and based on the SIM900 Quad-band GSM/GPRS module. It is controlled via AT commands and fully compatible with Arduino.





Features
  • Quad-Band 850/ 900/ 1800/ 1900 MHz
  • GPRS multi-slot class 10/8
  • GPRS mobile station class B
  • Compliant to GSM phase 2/2+
  • Class 4 (2 W @850/ 900 MHz)
  • Class 1 (1 W @ 1800/1900MHz)
  • Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands)
  • Low power consumption: 1.5mA(sleep mode)
  • Operation temperature: -40°C to +85 °C