{"id":150383,"date":"2024-11-13T18:25:00","date_gmt":"2024-11-13T12:55:00","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=150383"},"modified":"2025-05-22T21:57:15","modified_gmt":"2025-05-22T16:27:15","slug":"diy-sos-device-for-emergency-alerts","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/diy-sos-device-for-emergency-alerts","title":{"rendered":"DIY SOS Device\u00a0For Emergency Alerts"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"161\" height=\"147\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/07\/Ashwini-EFY-Tested.webp\" alt=\"\" class=\"wp-image-146091\"\/><\/figure><\/div>\n\n\n<p>The safety of children, elderly people, medical patients and women is a prime concern, whenever they are outside or at home alone. Nobody wants anything unfortunate to happen. The good thing is that communication networks have improved, leading to an increased usage of phones and the internet. <\/p>\n\n\n\n<p>But what if these people wish to quickly or discreetly inform about their whereabouts for help. A smartphone is not preferable in such a situation as one has to dial a long sequence of digits.&nbsp;<\/p>\n\n\n\n<p>So, in this project, you will learn to design a small SoS device like a wristwatch or any other small switch that can immediately send an SOS alert when in need of urgent assistance. <\/p>\n\n\n\n<p>The device will be equipped with a <a href=\"https:\/\/www.electronicsforu.com\/resources\/gsm-module\">GSM module<\/a> such as <a href=\"https:\/\/datasheetspdf.com\/pdf\/989664\/SIMCom\/SIM800L\/1\" target=\"_blank\" rel=\"noreferrer noopener\">SIM800L<\/a> or any other microcontroller-based GSM module. At the press of a button, the person will be able to send a notification seeking help.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"590\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd.jpeg\" alt=\"DIY SoS Device\" class=\"wp-image-150390\" style=\"width:579px;height:auto\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd.jpeg 776w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd-500x380.jpeg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd-552x420.jpeg 552w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd-80x60.jpeg 80w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/ccdcd-696x529.jpeg 696w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><figcaption class=\"wp-element-caption\">DIY SoS Device<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Bill of Material<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Components<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Quantity&nbsp;<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/indus.electronicsforu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">IndusBoard<\/a>&nbsp;<\/td><td>3cm sized dev board&nbsp;<\/td><td>1<\/td><\/tr><tr><td>Battery&nbsp;<\/td><td>3.3V<\/td><td>1<\/td><\/tr><tr><td>SIM 800L<\/td><td>2G GSM Module<\/td><td>1<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Programming SoS Device<\/strong><\/h2>\n\n\n\n<p>You can also use a push button for sending an SOS message. However, the IndusBoard comes equipped with over 10 built-in capacitive touch sensors, which can be used as touch switches. In this example, we\u2019ll use one of these touch switches as the input for the SOS message. <\/p>\n\n\n\n<p>When the user double-taps or touches the specified pin, it is detected, and the SOS message is sent to the preset phone number. To achieve this, we need to define the pin as an input in the code and use the <code>analogRead<\/code> function to detect the touch.<\/p>\n\n\n\n<p>For the GSM module, most of them operate via a serial port. The IndusBoard Coin can utilize any hardware serial port, so we specify the serial port pins in the code for the GSM module. The default baud rate for the SIM800L module is 4800, so we set the serial communication accordingly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"860\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec-1024x860.png\" alt=\"SOS Device\u00a0Code\" class=\"wp-image-150394\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec-1024x860.png 1024w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec-500x420.png 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec-1536x1291.png 1536w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec-696x585.png 696w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/secec.png 1740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">SoS Device &#8211; Code<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>SoS Device Circuit Connection<\/strong><\/h2>\n\n\n\n<p>Here the GSM module can be powered with 3.3V pin on the IndusBoard. The serial RX and TX pin connects with the pin defined in code. RST pin is optional, you can either leave it or connect it as per code. The SOS switch, you either directly use the touch GPIO or you can solder a flat metal and then use that as touch pad as per your choice. In some cases, the capacitive touchpad also works.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"590\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/dcdc.jpeg\" alt=\"SOS Device\u00a0Circuit\" class=\"wp-image-150392\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/dcdc.jpeg 1016w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/dcdc-500x290.jpeg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/dcdc-723x420.jpeg 723w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/10\/dcdc-696x404.jpeg 696w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><figcaption class=\"wp-element-caption\">Circuit Connection<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Testing<\/strong><\/h2>\n\n\n\n<p>Now power the device either with 3.3V battery using 3.3V and GND pin on board or for testing, you can also power using USB port. Now touch the pin 21, it will send the SOS message to set number as you can see in fig below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"218\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/11\/SOS-Device-Working.jpg\" alt=\"SOS Device Alert Message\" class=\"wp-image-152914\" style=\"width:246px;height:auto\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/11\/SOS-Device-Working.jpg 505w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/11\/SOS-Device-Working-500x216.jpg 500w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><figcaption class=\"wp-element-caption\">SOS message<\/figcaption><\/figure><\/div>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/11\/DIY-SOS-Device-For-Emergency-Alerts.zip\" target=\"_blank\" rel=\"noreferrer noopener\">Download Source Code<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>The safety of children, elderly people, medical patients and women is a prime concern, whenever they are outside or at home alone. Nobody wants anything unfortunate to happen. The good thing is that communication networks have improved, leading to an increased usage of phones and the internet. But what if these people wish to quickly [&hellip;]<\/p>\n","protected":false},"author":33369,"featured_media":150390,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,6072,6196,11851],"tags":[],"class_list":{"0":"post-150383","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-electronics-projects","8":"category-hardware-diy","9":"category-beginners-projects","10":"category-dev-boards-projects","11":"category-super-innovative-projects"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/users\/33369"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=150383"}],"version-history":[{"count":2,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150383\/revisions"}],"predecessor-version":[{"id":163820,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/150383\/revisions\/163820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/150390"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=150383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=150383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=150383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}