DIY

SMS Alert for Seniors

SMS alert for seniors  SMS alert for seniors This project is designed for elderly people who already find it difficult to use a mobile phone
The device is really easy to use. It only has three buttons, each of which sends a different SMS message. Messages alert you to either an immediate need for help or less urgent help or an emergency. These SMS can be sent to any preset phone number (family doctor, relative who lives nearby, neighbor, etc.).
To make such a siren, you need the following
Tools and materials: -Arduino Nano; GSM SIM900 module-Jumpers; -Soldering accessories; -Mounting board; -Breadboard; -Three 110 kΩ resistors; -Three buttons; -Plastic box; -Heat shrink tubes;
-Fasteners;
-Screwdriver; -Pliers;
-Computer with software (for programming);
Step one: the principle of operation
The principle of operation of the device is as follows.
Arduino constantly checks if any button is pressed. If the arduino detects a button press, it sends a command to the GSM module.
The GSM module, in turn, sends an SMS message to the specified phone number.
SMS alert for seniors Step two: diagram
The block diagram is quite simple and straightforward. The wizard divided it into two parts: connecting the buttons and connecting the GSM module. The device was first assembled and tested on a breadboard.
SMS alert for seniors  SMS alert for seniors Step three: programming
The master “assembled” the code from several similar codes + his own development. The code consists of three parts, each of which is responsible for the action of its button.
The code in text form can be downloaded below. In the code, you must specify your data (phone number, assign buttons to numbers, etc.).

 #include & lt; SoftwareSerial.h & gt; SoftwareSerial mySerial (9,10); char msg; int buttonred = 5; int buttonblue = 7; int buttongreen = 6; void setup () & # 123; pinMode (buttonred, INPUT); pinMode (buttonblue, INPUT); pinMode (buttongreen, INPUT); mySerial.begin (9600); //Setting the baud rate of GSM Module Serial.begin (9600); //Setting the baud rate of Serial Monitor (Arduino) Serial.println (& # 34; press button & # 34;); //Skip this if you want to it doesn & # 39; t really matter} void loop () & # 123; if (digitalRead (buttonred) == HIGH) & # 123; Serial.println (& # 34; button red pressed & # 34;); delay (1000); SendMessagered (); } if (digitalRead (buttonblue) == HIGH) & # 123; Serial.println (& # 34; button blue pressed & # 34;); delay (1000); SendMessageblue (); } if (digitalRead (buttongreen) == HIGH) & # 123; Serial.println (& # 34; button green pressed & # 34;); delay (1000); SendMessagegreen (); } if (mySerial.available () & gt; 0) Serial.write (mySerial.read ()); } void SendMessagered () //& # 123; mySerial.println (& # 34; AT + CMGF = 1 & # 34;); //Sets the GSM Module in Text Mode delay (1000); //Delay of 1000 milli seconds or 1 second mySerial.println (& # 34; AT + CMGS =  & # 34; + 30xxxxxxxxxx  & # 34;  r & # 34;); //Replace x with mobile number and the +30 with whatever you have as the code where you live in delay (1000); mySerial.println (& # 34; EMERGENCY !!! & # 34;); //The SMS text you want to send delay (100); mySerial.println ((char) 26); //ASCII code of CTRL + Z delay (1000); } void SendMessageblue () & # 123; mySerial.println (& # 34; AT + CMGF = 1 & # 34;); //Sets the GSM Module in Text Mode delay (1000); //Delay of 1000 milli seconds or 1 second mySerial.println (& # 34; AT + CMGS =  & # 34; + 30xxxxxxxxxx  & # 34;  r & # 34;); //Replace x with mobile number and the +30 with whatever you have as the code where you live in delay (1000); mySerial.println (& # 34; I need to see you & # 34;); //The SMS text you want to send delay (100); mySerial.println ((char) 26); //ASCII code of CTRL + Z delay (1000); } void SendMessagegreen () & # 123; mySerial.println (& # 34; AT + CMGF = 1 & # 34;); //Sets the GSM Module in Text Mode delay (1000); //Delay of 1000 milli seconds or 1 second mySerial.println (& # 34; AT + CMGS =  & # 34; + 30xxxxxxxxxx  & # 34;  r & # 34;); //Replace x with mobile number and the +30 with whatever you have as the code where you live in delay (1000); mySerial.println (& # 34; I have to see you now! & # 34;); //The SMS text you want to send delay (100); mySerial.println ((char) 26); //ASCII code of CTRL + Z delay (1000); }  

The wizard also provides a link to the code in .ino format.
SimpleSMS.ino Step four: final assembly
After checking that the circuit works on the breadboard, he mounts it on the circuit board board.
SMS alert for seniors SMS Alert for Seniors A plastic box of a suitable size was used for the case. He painted the body black, installed hinges on the lid. I fixed the buttons on the body and brought out the antenna.
SMS alert for seniors  SMS alert for seniors  SMS Alert for Seniors  SMS alert for seniors Now you need to install the SIM-card in the module, install p power supply and the device is ready.

Source:

usamodelkina.ru

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button