This project represents a simple SMS alarm system made with Arduino that allows you to arm or disarm via SMS message. Also when the alarm is triggered you’ll get a SMS notifying you that. And because I know that is very hard to type messages the included android app will help your fingers to rest 😀
Needed components
- Arduino Uno
- A-GSM shield
- Bread board or prefboard
- laser diode
- photoresitor(LDR)
- 10k resistor
- leds
- wires for connections
How it works
The laser diode and photoresistor creates a light barrier sensor. When armed and the light barrier is breached the SMS alarm system will send an SMS alert to the predefined alert numbers. The system have 3 states, which are not armed, armed and alarm triggered. The state of the alarm you can see on the 6 led’s that are connected to the arduino uno board. Arduino program is so designed that you are able to arm or disarm the system only from allowed phone numbers. If you are really paranoiac you could modify the software for the SMS alarm system so that it’s sending encrypted SMS. For this you have to change the AppInventor software and arduino code a little bit.
For communicating with A-GSM shield I used their latest example code called „kickstart for Arduino”. This is like a library for the A-GSM shield and will help you a lot to achieve your goal with your project. In my case I strip/and modify a little bit the code to suit project needs.
Software
I put the Arduino part of the code on GitHub due to the A-GSM library. You cand download from the below link:
https://github.com/roroid/SMSAlarm
Connections:
AppInventor
For the android app you need a button for arming/disarming the system and a log label for receiving system messages. Below you can see my design and my app:
You can download AppInventor source code and apk from here:
SMSAlarm in the wild
Pingback:10 Project sederhana dari arduino uno | Uno
De unde pot sa cumpar un laser cum folosti tu.
Îți pot vinde eu. Am vre-o 20.
Salut.
La codul atasat mai trebuie o librarie atasata?
La verificare codului in Arduino primesc o gramada de erori de genul :
SMSAlarm.ino: In function ‘void alarmSMS()’:
SMSAlarm:69: error: ‘listSMS’ was not declared in this scope
SMSAlarm:73: error: ‘readSMS’ was not declared in this scope
SMSAlarm:75: error: ‘getValue’ was not declared in this scope
SMSAlarm:79: error: ‘sendSMS’ was not declared in this scope
SMSAlarm:84: error: ‘sendSMS’ was not declared in this scope
SMSAlarm:89: error: ‘sendSMS’ was not declared in this scope
SMSAlarm:93: error: ‘deleteSMS’ was not declared in this scope
Doresc sa fac si eu aces proiect si as aprecia daca ma poti ajuta.
Multumesc!
Ovidiu
Salut,
Trebuie să descarci tot codul de pe github. Aplicația arduino are mai multe „foi”. Vezi ca undeva în partea dreaptă ai download zip. Folosește acel buton.
Pingback:Best Ideas for cheap Arduino UNO projects - XDA BOARD
Com pot sa primesc duar 1 sms chiar daca laseru este intrerupt?
Adica daca in directia leser si fotorezistenta pun un obstacol duar o singura alarma sa in vina si asta sa se repete duar daca obstacolul va trece si iar va reveni.
Aici daca las un obstacol intre laser si fotorezistenta primesc sms in continu.
Pe mine ma intereseaza la o valoare masurata de un senzor de temperatura TERMISTOR 10K NTC sa primesc 1 SMS la o valuare prestabilita nu sa primesc sms dupa sms cat temperatura este in valuarea aceea.
Eu am dat functia :
if (analogRead(S1Grade) == 95) {
alarma_temperatura_cazan();
delay(100); }
}
Dar am si enternet placa si placa gsm si la valuarea de 95 grade imi repeta procedura deci primesc sms-uri toata ziua sau toata noaptea daca temperatura este de 95 grade in incinta.
Mersi anticipat
Pui pe pinul pe care e legat ledul debounce . Asa o sa primesti doasr 1 sms de fiecare data cand trece un obiect prin fata laserului.
Pingback:ini lah 10 Project sederhana dari arduino | Children Future
Pingback:10 Project sederhana dari arduino uno – ARDUINO