Send Location & Make Call using SOS Button | IOT Projects | GPS Projects

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
imagine your child coming from school walking over the streets and suddenly see faces won't danger there and starts running in the opposite direction and while running and running and running she ends up on a random location and now there is no one to help her out and even she don't know her way to home well this was one of the many such dangerous situations which anyone of you watching this video May land up on right well in all those situations we as an adult can easily Escape out through our smartphone we can you know search out on the maps or we can call a cab to escape from the situation but what about kids who don't have smartphone with them or what about those people who are in such situations in which he or she can't access their smartphone well her latest product called as SOS button will be really helpful in all those scenarios so this is a button based on the a9g mode which has built in GSM and GPS in it and by just pressing that single button it will immediately snap the GPS location and send it to your family member Via SMS and after sending your location to them it will automatically make a call on that number in which he or she can listen to all the conversations happening around in that dangerous situations and can take quick actions so this project can be helpful to you in multiple such emergency situations and in this video I'm going to teach you how to make this complete project from scratch so before starting this video if you are watching me for the very first time well consider subscribing this channel as I used to come up with these kind of project tutorials in the field of iot Automation and electronics well that being said let's start our video about SOS emergency button coffees are the useful project here so do watch the video till the end let's get started before starting the video let me tell you one really interesting and useful feature of our sponsor LTM which is a PCB designer based software company and that feature is called as design review using LTM you can add any member to your project and after that they can highlight any fault in the schematic or can report availability of components in the inventory on the PCB to your designers so that they can visualize this components and can work upon it to provide a smooth flow of PCB production even if they both are in any corner of the world so that's the design review feature and even you can try out this and many other features of LTM for free by just clicking on the link manager in the description as you'll be getting an access to free trial version using that link now let's start with our video so for making this project we'll be using the a9g board which is an amazing board that has built-in GPS GSM and battery charging circuit a perfect boat for battery powered iot projects now this board works on the 80 command firmware and to give the 80 commands to this board we need to have an external microcontroller board so for this project I'm using the Xiao C3 board from seat Studio which is the smallest esp32 C3 based development board and now to power both of them properly we are using a battery and a voltage regulator IC now here we are also using a push button which will be acting as an SOS button and in the end we also used an on off button to power on and off the project so in the end we need to make the connection between all those components according to this connection diagram so now here we shouldered all the components on a general purpose PCB and also we shouldered the Xiao C3 board on the back through its SMD pads to save the space and now in the end our final Hardware looks like this so that was the hardware part of the project which was pretty straightforward all the magic and logic are embedded inside the core itself so let me dig to my computer and let me explain the code for this project so here's the code for our SOS button project quite similar to our previous project which was about audio spy okay let's start with this code so include wi-fi.h library for the esp32 board so now here I have declared two pins D3 and D2 so on D3 I attach a push button called as the SOS button on on D2 pin I'm controlling the sleep mode of a9g mode which will be looking uh in detail while you know explaining the code after a couple of necessary variables and here is one important variable called as SOS number now here you need to specify the number with the country code on which you want to send the latitude along your data and also on which you want to make the call so make sure you edit this number according to your use case Okay after that I have put a variable called as SOS time now this is also very important so here what I did is uh it's not like I can press the button and the latitude longer immediately be said sometimes we may accidentally press the button so I have put a time of five seconds so if the button is press and hold for more than five seconds then only the SOS you know activity will be triggered and then it will capture the location and send the location and make the call you can change this number which is in seconds according to your use case in my case I thought five per second will be a perfect uh no timing after again couple of variables then moving on to the void setup part then we are turning off the Wi-Fi and Bluetooth because there is no requirement of those radio uh what you can say modules here and with this we can save a lot of power as well declaring input output pretty common enabling the CL communication this one is for serial Monitor and this one is again for the a9g board I need to edit that so it's for the a9g grid after that here I put the interval of 20 second because a9g do require a couple of you know seconds or time to you know properly configure it and make connection with the cellular network so 20 second is good enough for it after that we can you know turn off the sleep mode by you know making the Sleep pin low and we can turn on the sleep mode by making the Sleep pin high so whenever you want to provide the 80 commands make sure you turn off the sleep mode okay and that's what I did here so after turning off the sleep mode I you know I started giving some 80 commands so this is the basic command for checking purpose after that I am turning on the GPS this time because hey we need to capture the data and we are letting the GPS to be stayed on so that whenever the SOS button is pressed we can immediately get the lateral longitude so we don't need to wait for satellite connection after that here I have enabled the GPS low power so in this low power mode 2 it will consume less power which I have discussed in my getting started video with the a9g mode you can watch it out so basically this is used for saving power even if the GPS is turned on okay and after that we are making the sleep mode as one again we are configuring the sleep mode of the a9g board to save power okay so I try to save power as much as possible in GPS as well in this the cellular network as well and also in the Xiao C3 board because it is battery powered of course we need to save the power moving on to the loop part and loop part is pretty straight forward okay here what we are doing is here first of all we are checking what our response we are getting if someone is ringing like someone is making the call on a9g board it will automatically receive the call so the previous feature of audio spying is still uh you know exist in this particular version as well so and when you make a call it will automatically receive by the a9g board this is written here inside the elsif condition okay and these two if conditions are just for the debug purpose if you are getting okay response from the a9j we say it works and if we are getting error response we say it doesn't work okay and this condition triggers whenever someone disconnects the call okay now moving ahead how we are sending the in uh location date and how we are making the call let us have a look so here we are reading the SOS button okay so once the SOS button is pressed we are you know running a loop of five second okay which is mentioned here so it will be running a loop of uh interval of one second for the 5 times which is mentioned here it is 5 Second okay and after five seconds again if the button is pressed then only we will be you know triggering the SOS condition so in case the button is released before five seconds we are just breaking out of this Loop and it will do nothing at all so let's assume the button is pressed for more than five seconds so it will come inside this if condition we are first of all you know turning off the sleep mode because we need to provide some 80 commands turning off sleep mode after that what we are doing is we are giving the command as 80 plus location is equal to 2 which which will give us the response in latitude and longitude data okay after that we are reading all the data and we are printing the response in the serial monitor after that now there are two chances whether we will receive the GPS location or we don't receive the GPS locations so whenever the a9g board is somewhere indoors maybe in the basement maybe in the room maybe in a house maybe in the office so in the closed environment situations the GPS generally don't response GPS data is only available when we are in open ground or we are on the road we are on the street we are in the garden so in this scenarios where it is clearly visible to the sky the GPS model works perfectly so I put a two condition if the GPS data is not received we are just printing as a no location data received and in case the GPS location data is received what we are doing is we are creating a Google Maps link now we can create this kind of Google Maps link which has the longitude and latitude data in the link itself so whenever this link is set we can directly click on that link and it will automatically point the location on the Google Maps which is way more convenient rather than just sending the lateral longitude values okay so here I've created the G PS or we can say Google Maps link along with the attitude and longitude data which I received from the a9g board and after that I am sending the SMS to the SOS number which we have you know mentioned above which is here so the message will be sent in the format like I am here and the Google Maps link will be forwarded after that we are immediately calling on to that number so that the person can not only get a location but con can also listen to what conversations are happening around in that dangerous or emergency situation so he can you know properly react to the situation and properly take action in that situation so I have provided that feature as well as soon as the data is Sent SMS is sent make a call on that number okay and as there is a mic built in the enig model the other person can easily listen to the conversation and this is all about the core part okay now one important thing whenever you want to send the message you need to send this character 26 and then only the message will be sent otherwise the message won't be sent this is a very important line while sending sms India that was all about the code so now I'll directly upload this code onto the a9g board and after that let's test this product out so now first of all I'll insert the SIM card onto the a9g board now here I'm using the vi SIM card but you can use the SIM card from any network operator that provides a 2G connectivity once again jio Sims won't work here so after that I'll insert the a9g board onto the PCB I'll turn on the space and after that I'll press and hold the power button onto the a9g board to Power It Up so now we are completely ready to test this product so let's first test this project inside a room where there are no GPS signal at all and let's see how it responds in this situation so I'll press and hold this SOS button for more than five seconds and now we can expect the call on the number very soon okay so as you can see we got the call from this a9g board and we can receive this car and we can hear all the conversations happening around this a9g board so in this situation we didn't get any SMS because the GPS model was not able to connect to the satellite and get the location data okay so now let's just take this board in the Terrace and test it in the open environment okay so here again press and hold this button for more than five seconds and as you can see we got the core from the number and also we received an SMS as well so in the SMS as you can see it says I am here along with the Google Maps link and if I click on that link as you can see it is showing me the location around my studio so this is how we can immediately get the location of that person and not only that we can also receive a call from that number so that we can you know listen to the all the emergency situation conversations and take the actions accordingly well that was my project about SOS button how was this project according to you and well I'm thinking of to make some changes in this particular project and you know make a dedicated custom PCB for it and this I will be doing it for my GPS tracker project so yes one more project remaining with this particular a9g and the Xiao C3 board which is to make a GPS tracker and that tracker will have all those features like SOS button and also audio spying so three in one or multi-purpose tracker project is coming on our way on this particular channel so do some subscribe this Channel right now if you don't want to miss that upcoming project and yeah do click the like button if you really love this project and let me know in the comments about how was this project according to you or do you have any suggestion to make this project feel better and way more useful do let me know your suggestion down in the comments of the video and that being said I'm just ending this video here and now just wait for my next video Explorer learn share with me techie SMS [Music]
Info
Channel: techiesms
Views: 44,900
Rating: undefined out of 5
Keywords: techiesms, electronics, electronics projects, ESP32 c3, A9G board, GPS projects, A9G projects, IoT projects, gps projects
Id: E-5vazIDznc
Channel Id: undefined
Length: 13min 9sec (789 seconds)
Published: Sat Dec 10 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.