Arduino Sim800l Relay Control with SMS | Control Home Appliances with Arduino and Sim800l

  Рет қаралды 57,678

Ahmad Logs

Ahmad Logs

Күн бұрын

This is a very simple project based on Arduino and SIM800L GSM module. You can control electrical home appliances by using SIM800L that is connected to a 2 channel relay module.
In this tutorial, you will be able to use the SIM800L GSM module for controlling anything through SMS. To do that, you just need to parse the incoming SMS from SIM800L extract message. After extracting the message Arduino will control your home appliances according to received SMS.
There are lot of GSM module available in the market but I personally recommends and prefers SIM800L due to its small size.
#Arduino #Sim800l #ArduinoTutorials
--------------------------------------------------------------------------------------------------------------------
Code Download Link
--------------------------------------------------------------------------------------------------------------------
github.com/ahm...
--------------------------------------------------------------------------------------------------------------------
Parts Needed
--------------------------------------------------------------------------------------------------------------------
1 - Arduino UNO - amzn.to/3ZWKAz2
2 - SIM800L GSM Module - amzn.to/3l6rKGP
3 - Two Channel Relay Module - amzn.to/3l1aoem
4 - Mobile Charger 5v 2A
5 - Two Electrical Bulbs
6 - Jumper Wires (Male-Male / Male-Female / Female-Female)
5 - AC Power Extension - amzn.to/3Jvhoti
--------------------------------------------------------------------------------------------------------------------
Disclaimer
--------------------------------------------------------------------------------------------------------------------
Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
Warning: In some countries it is required to register gsm module from govt authorities before using it. So, get proper understanding of govt laws related to gsm technologies.
High Voltages be careful

Пікірлер: 290
@gerardoscotta1642
@gerardoscotta1642 Ай бұрын
Muy buen proyecto y bien explicado. Gracias
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, how to turn off the relay after 3 seconds automatically? Pls change the code for me thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
Please wait
@NextGen_automation
@NextGen_automation Жыл бұрын
Water pump controller only 5sec switching relay like push button on and off relay separate
@jonasmaghanoy7297
@jonasmaghanoy7297 3 жыл бұрын
Woohh impressive sir. So cool. How I hope I could study deep the coding, kind'a hard for me to learn. I'll try harder to study this one. Thank you sir for making such innovative tech. ❣
@AhmadLogs
@AhmadLogs 3 жыл бұрын
thanks
@kalebhofer9709
@kalebhofer9709 2 жыл бұрын
Thanks
@rhingenieria6964
@rhingenieria6964 2 жыл бұрын
the best video for sim 800l
@AhmadLogs
@AhmadLogs 2 жыл бұрын
thanks
@mehdiabedi6163
@mehdiabedi6163 Ай бұрын
Thanks Ahmed
@ubaid7979
@ubaid7979 2 жыл бұрын
Bhai is main pc add kar k rakhna pharega kiya programming upload kar k pc hata k power supply se used kar sakhte hai naa???? Number mil jaega to bohat help ho jaegi main bhi pakistan se hun
@AhmadLogs
@AhmadLogs 2 жыл бұрын
nahi pc on rakhany ki zaroorat ni hy. but ap ko charger ki 5v pin ko arduino ki 5v pin sy connect kerna ho ga.
@saitammali5138
@saitammali5138 3 жыл бұрын
thanq so much broooo............!!!!! 100% working>>
@AhmadLogs
@AhmadLogs 3 жыл бұрын
glad it works
@shubhamubarhande2122
@shubhamubarhande2122 Жыл бұрын
Does this gsm module work on 4g sim?
@moussaab8292
@moussaab8292 3 жыл бұрын
Please, I have a GSM working on 4 volts, can it be connected to a 5-volt Arduino power supply and put a resistance to reduce the voltage
@AhmadLogs
@AhmadLogs 3 жыл бұрын
it also required 2Amp burst for sending or receiving sms and making call. Arduino 5v pin does not provide enough current. I have a 5v sim800l module it works only with separate 5v 2amp supply.
@davidacostagarcia402
@davidacostagarcia402 11 ай бұрын
Excuse me sir, everything works great but if I add a digitalRead in the void loop the messages dont arrive, like the communication is affected. How should I implement that without affecting the serial comunication?
@kentbinaoro9164
@kentbinaoro9164 3 жыл бұрын
This is so cool.....I wish I could see your schematic diagram sir.. it is very hard to follow ... I hope you can help me sir for my studies.🥺
@AhmadLogs
@AhmadLogs 3 жыл бұрын
you may check download link.
@glob.entertainment
@glob.entertainment 2 ай бұрын
Ahmad, please, if do I need to change the sim800 function in your code to sim900 if I am using sim900. Because I'm a bit confuse. FYI, I'm using sim 900
@oet6967
@oet6967 2 жыл бұрын
thank you sir , i have some questions , i have sim900 and i connected every thing right , and there is a communication between gsm and arduino everything is good except the light is not turn off or on and there is no feedback sent from gsm to the sender phone as (relay has been off or off ) , what is the problem ? all i did is i change the pin of rx and tx to 7 and 8 and i change the pin of the lights please help and thank you alot note : i didn't connect relay yet , im testing in leds lights
@AhmadLogs
@AhmadLogs 2 жыл бұрын
you need to check the following things. 1. power supply (check datasheet for more detail) 2. use good quality wires for tx and rx connection 3. keep power source close to the gsm module 4. make a call to gsm module from your phone and listen the tone. also checks the serial monitor.
@oet6967
@oet6967 2 жыл бұрын
@@AhmadLogs i have checked everything , can I communicate with u in email or any other app?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
you might communicate here. I am here to answer every thing related to the project.
@dabhichandresh6128
@dabhichandresh6128 2 жыл бұрын
Sir i am using sim900 but same problem.
@rajaduraisangari
@rajaduraisangari 7 ай бұрын
Sir, gsm sim 800l with Arduino relay control by agriculture motor , how to connect the CT coil for low or high Amp motor will turn off motor, need the CT coil connection diagram and code, thanks
@chidiayoanasonye9243
@chidiayoanasonye9243 2 жыл бұрын
Can I power the arduino using same 5v adaptor ?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
there are some module in the market that works perfect on 5v. like the one I am using. best power source is 3.7v battery or use buck convertoer
@ismailsinapli
@ismailsinapli 2 жыл бұрын
Esselamun aleyküm Çok işime yaradı, varlığına şükran kardeş. 👏🇹🇷 Good lock my friend.
@mdsharifulislamsharif3545
@mdsharifulislamsharif3545 10 ай бұрын
Hello, Please, Can you give a Arduino code that two relay 'on' only for 1 minute and 2 minutes when i send 'ON' through sim900a
@edgardoravier5641
@edgardoravier5641 Жыл бұрын
Hola, como estas. gracias por el proyecto y ponerlo a disposicion. Consulta cargue los codigos pero quedan las 2 digitales en on.
@kamalkamel7559
@kamalkamel7559 2 жыл бұрын
good work, excellent, I have a question for you, is it possible to make a video on the pwm led variation by sms message? example to send sms led=30, the led on at 30, send led=100, the led on complete.... it's possible, i need this!! thank you so much
@AhmadLogs
@AhmadLogs 2 жыл бұрын
yes it is possible. I will try it soon
@kamalkamel7559
@kamalkamel7559 2 жыл бұрын
@@AhmadLogs ohh, thank you my freind
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, I have two questions 1)when gsm sim 800 power on, i need to received message, because here power cut 4 times per day, 2) how to change the mobile number from SMS.
@AhmadLogs
@AhmadLogs Жыл бұрын
1. not possible using this code. lots of modifications are required 2. kzbin.info/www/bejne/f5rLloR3grlmoaM
@moussaab8292
@moussaab8292 3 жыл бұрын
I have a problem with programming, as soon as I write pine Mode( 7,OUTPUT) the relay works without defining HIGH in the program
@AhmadLogs
@AhmadLogs 3 жыл бұрын
there is just need a change in hardware. just replace your AC wiring to NC (normally closed) to NO (normally open)
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Hi sir, when we received reply message, need the date and time together with notification, How to add the code in CCLK?
@mustaphajammeh6723
@mustaphajammeh6723 10 ай бұрын
Hi,how can I integrate relay with the GSM module to send me messages.
@rajaduraisangari
@rajaduraisangari 6 ай бұрын
Sir, how add the two const string phone number ?
@amdavadinishant354
@amdavadinishant354 2 жыл бұрын
SENDER PHONE NUMBER MEANS THAT PHONENUMBER WHICH IS ATTACHED WITH MODULE OR THAT NUMBER FROM WE MESSAGE TO MODULE
@AhmadLogs
@AhmadLogs 2 жыл бұрын
the phone number that we will use to message to the module
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, 1)I need to receiving the message automatically when sim800L power On . 2) how to registered the master mobile number and how to change the mobile number with SMS, 3) can store the 2 no’s registered mobile number?, thanks.
@AhmadLogs
@AhmadLogs Жыл бұрын
watch this kzbin.info/www/bejne/hXvGeIxqrrimatE
@svsezhil2051
@svsezhil2051 3 жыл бұрын
Can we use SIM900A? If yes , can we use the same code for SIM900A.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes you can use. I use AT commands in code that will run on almost all gsm modules. that's why it will run on sim900A. but I didn't test it with sim900A.
@DARK2SHARK
@DARK2SHARK Жыл бұрын
In Sim900a not working properly..... relay wae turned on but didn't turn off
@ricardomontiel5198
@ricardomontiel5198 2 жыл бұрын
Hello sir. How can add an other phone for receive the message. I mean that two phones receive the status of relays
@AhmadLogs
@AhmadLogs 2 жыл бұрын
watch the following video kzbin.info/www/bejne/f5rLloR3grlmoaM
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, I am used the sim800L with Arduino nano board control by the two relays , Send the sms 1 to ON the First relay for motor start button , after 3 seconds time delay to cut off. Send the sms 2 to ON the second relay for motor stop button, after3 seconds time delay to cut off. This function Working is fine and reply message also fine, But I need how to check the motor last status on/ off, Pls can doing the code for me thanks.
@AhmadLogs
@AhmadLogs Жыл бұрын
for that you need to define one more variable in the code Boolean LastState; each time you turn on or off the motor, you also update the LastState variable
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs sir, pls can update the code for me thanks
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs sir can I get the your email I’d?
@shahriarrivan
@shahriarrivan Жыл бұрын
Why doesn’t it work when I unplug the arduino from my laptop and use a powerbank. If you know how to fix it please let me know. It only works when the arduino is connected with a computer.
@AhmadLogs
@AhmadLogs Жыл бұрын
you need to step down the voltages to 4.4v and the module will surely work.
@tajmalitha7292
@tajmalitha7292 Жыл бұрын
Sketch uses 7944 bytes (24%) of program storage space. Maximum is 32256 bytes. Global variables use 655 bytes (31%) of dynamic memory, leaving 1393 bytes for local variables. Maximum is 2048 bytes. how can I solve this problem?
@AhmadLogs
@AhmadLogs Жыл бұрын
This message is not actually an error, but rather an informational message that tells you how much program storage and dynamic memory your Arduino sketch is using.
@chidiayoanasonye9243
@chidiayoanasonye9243 2 жыл бұрын
Plz sir which phone number should I put in the code ? . The sim inserted in the sim800L module ? Or my personal phone number in my phone ? . If my personal phone , how can I add up to three phone ? numbers
@AhmadLogs
@AhmadLogs 2 жыл бұрын
The sim inserted in the sim800L module
@Jeggerblok12
@Jeggerblok12 3 жыл бұрын
Modul Micro Sim800l Gprs Description: Chip: SIM800L Voltage: 3.7-4.2V ???? explanation please?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
i have sim800l module that works on 5v directly. I have also sim800l module that works on 3.4-4.4v. both versions are available in market.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
good question.
@Techie499
@Techie499 3 жыл бұрын
@@AhmadLogsHow can i understand the difference?? which one will work on 3.7v and which one will work of 5v, if not mentioned by seller?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@Techie499 try to test with 3.7v. a module that works on 5v it must also works on 3.7v
@Techie499
@Techie499 3 жыл бұрын
@@AhmadLogs I tested with 3.7v.it worked. should i test with 5v or leave that risk?
@tuanvinh7987
@tuanvinh7987 Жыл бұрын
I use google translate to record these words, sorry for the inconvenience. Can you tell me about the end of the power cord? Make it so that it can be plugged in, thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
just cut out the end of the power plug
@unknownartist2809
@unknownartist2809 6 ай бұрын
How can I use it without register the number
@marif1586
@marif1586 6 ай бұрын
sir Arduino programing ki koi Urdu main books available hy
@saadelm2955
@saadelm2955 2 жыл бұрын
Thanks sir.. Coool... Haw i can place an ather Led...for detect the Net
@AhmadLogs
@AhmadLogs 2 жыл бұрын
use AT+CREG. if the response is 1. its mean the gsm module is connected to the network. so, turn on the led. if the response is other than 1. its mean the gsm module is not connected to the network. so, turn off the led.
@saadelm2955
@saadelm2955 2 жыл бұрын
@@AhmadLogs thanks... So much
@mahaveerprasad8326
@mahaveerprasad8326 2 жыл бұрын
Hi Sir, i am using emonlib library in this code for measuring current after that gsm not read msg
@AhmadLogs
@AhmadLogs 2 жыл бұрын
hmmmm. have your gsm module working fine?
@mahaveerprasad8326
@mahaveerprasad8326 2 жыл бұрын
@@AhmadLogs yes sir
@mahaveerprasad8326
@mahaveerprasad8326 2 жыл бұрын
doaction function not working
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@mahaveerprasad8326 it only works, if you send sms from the phone number that you have entered in the sketch
@user-ri8rs8xl9j
@user-ri8rs8xl9j 3 жыл бұрын
you're the best!
@AhmadLogs
@AhmadLogs 3 жыл бұрын
thanks
@mobilestudynk5284
@mobilestudynk5284 3 жыл бұрын
Bhai india me chalega I mean sim 800l indian network supported hai
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes, it supports all gsm based networks.
@warrenscorner
@warrenscorner Жыл бұрын
My SIM800L stopped working because it’s only 3g. What module can I use that’s 4g or 5g compatible?
@AhmadLogs
@AhmadLogs Жыл бұрын
sim7600
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, I need the same code but how to add the one master mobile number and how to check the last relay status ? Thank
@AhmadLogs
@AhmadLogs Жыл бұрын
have you watch this? kzbin.info/www/bejne/hXvGeIxqrrimatE
@syahnanification
@syahnanification 2 жыл бұрын
Use of undeclared identifier 'prasedata', 'extactsms', 'doAction', 'reply' Saya memasukan code yang anda punya. Kenapa pada arduinodroid saya ada tulisan seperti itu. ?
@erlandrewabrasaldo3320
@erlandrewabrasaldo3320 2 жыл бұрын
Independently this code of yours work, but when I try to insert this to my project code, it doesn't work anymore. It can receive my sms but won't extract it, thus not going to process void doAction();
@AhmadLogs
@AhmadLogs 2 жыл бұрын
can I take a look at your code. just upload the code to github and give me the link
@atulpartole747
@atulpartole747 5 ай бұрын
Can I use 4g sim card
@realexposer
@realexposer 10 ай бұрын
How to use with 440v ac?
@dabbarmohsen8696
@dabbarmohsen8696 Жыл бұрын
hi where to find the application '' sim800" to install it in the Gsm and send the sms THANKS
@AhmadLogs
@AhmadLogs Жыл бұрын
no need to install sim800 separately. sim800 code is with in the ino file.
@klt-rms
@klt-rms 3 жыл бұрын
Dear bro, As tested with your code, everything ok.but sms is directly save to sim memory and only can send about 40 sms. after that, sms can not receive from sim.can you help me? I tested some code to delete sms from sim memory but still not ok. Below are i tested code AT+CMGDA="DEL ALL" AT+CMDA="DEL ALL" AT+CMGD=1 AT+CMGD=1,4 currently, after over sms 40 quantity, i delete with my phone and install again to sim module. Could you please help? and are there any way to update phone number by remote sms command?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
1. I have used sim800l.println("AT+CMGD=1,4"); in the setup() function. when I want to delete the message. I just press reset button of arduino uno. 2. what issue you are facing while using AT+CMGD=1,4 command 3. can you please explain the following statement "are there any way to update phone number by remote sms command?" are you talking about the phone number we have enter in the arduino sketch
@F3ChannelRs3
@F3ChannelRs3 2 жыл бұрын
Hi sir, is it possible to add more sender number? or remove that feature? cause i wanna register more than 5 numbers
@AhmadLogs
@AhmadLogs 2 жыл бұрын
are you talking about this? kzbin.info/www/bejne/hXvGeIxqrrimatE
@imen4698
@imen4698 3 жыл бұрын
Hi sir i need help My country cod is +213 Not made of tow numb There's solution for this problem?!
@AhmadLogs
@AhmadLogs 3 жыл бұрын
do you test to make call using three digit code? Tell me the output when making call. AT command for making call is "ATD+Phone_Number;" test this command and tell me the output
@imen4698
@imen4698 3 жыл бұрын
@@AhmadLogs when i try in the monitor ,I get a question mark
@yasserchenini3789
@yasserchenini3789 3 жыл бұрын
​@@imen4698 مشكل مش في كود
@kalebhofer9709
@kalebhofer9709 2 жыл бұрын
hello sir i am from canada will this work with bell 4g network here in canada
@AhmadLogs
@AhmadLogs 2 жыл бұрын
no it will not work with 4g network. you must use 4g gsm module
@kalebhofer9709
@kalebhofer9709 2 жыл бұрын
@@AhmadLogs so witch gsm module do you reccomend?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@kalebhofer9709 sim7600
@wersissima15
@wersissima15 Жыл бұрын
the SIM800L is not 5V tolerent (3.3V - ~4.4V ), even if it works, it won't perform correctly and can be damaged at any moment, chech please the official documentation of the SIM800L module
@hamlovingprophetpisslam183
@hamlovingprophetpisslam183 Жыл бұрын
True. It worked for few days and stopped receiving commands. I am controlling my farm irrigation with solenoid valveswith arduino, 800l n relays. I dont use sms but calls
@AhmadLogs
@AhmadLogs Жыл бұрын
you are right
@inlandb.villos1872
@inlandb.villos1872 2 жыл бұрын
WHAT NUMBER DID YOU PUT IN YOUR CODE A RECEIVER SIMCARD OR THE SENDER SIMCARD?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
enter your personal phone number. you can say it sender phone number. note: not enter the gsm module phone number
@luvochosi3958
@luvochosi3958 3 жыл бұрын
I find it very interesting, I am working on a similar project, can i see your code please.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
In the description
@rajasidhu268
@rajasidhu268 2 жыл бұрын
oo haini bhrawa code keyon murkh bnayi jana lokannu
@filipinodiynot
@filipinodiynot 2 жыл бұрын
hello Sir, I tried to upload the code but no luck, it seems it is not receiving SMS. can manage to detect a call and just show ring and no carrier on serial. any help is highly appreciated.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
what is the led status of your gsm module
@filipinodiynot
@filipinodiynot 2 жыл бұрын
@@AhmadLogs led status ok sir, AT+CMGD=1,4 OK AT+CMGDA= "DEL ALL" OK at+cops? +COPS: 0,0,"T-Mobile" OK at+cops=? +COPS: (2,"T-Mobile","TMO UK","23430"),(1,"O2","O2 -UK","23410"),(1,"vodafone","voda UK","23415"),,(0-4),(0-2) OK at+csq +CSQ: 6,0 OK seems signal is ok, im here in UK sir- thanks
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, I want same code but need to update the 2nos master mobile register with SMS, can help me to modify the code, thanks.
@AhmadLogs
@AhmadLogs Жыл бұрын
Please wait
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs sure sir, and one more thing when power off gsm we can get the notification from SMS? Take your time to can reply to me, thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
@@rajaduraisangari hmmm. I will try
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs sir, how to check the all reply status?
@AhmadLogs
@AhmadLogs Жыл бұрын
@@rajaduraisangari I have updated version for this. kzbin.info/www/bejne/hXvGeIxqrrimatE
@panjatcharaml9683
@panjatcharaml9683 3 жыл бұрын
It's taking too more time to receive message and some time message is not received how to solve this problem
@AhmadLogs
@AhmadLogs 3 жыл бұрын
It should take normal time. you need to check signal quality of gsm module.
@panjatcharaml9683
@panjatcharaml9683 3 жыл бұрын
@@AhmadLogs yes bro but it changing frequently first few seconds it blink slowly and some time it blink faster and some time no blinking how can solve this bro
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@panjatcharaml9683 I think, you need to use outdoor antenna
@panjatcharaml9683
@panjatcharaml9683 3 жыл бұрын
@@AhmadLogs but I don't have it bro any other way
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@panjatcharaml9683 you need to test it outdoor or on the roof. also checks the signal quality by using the following AT command AT+CSQ
@republikbasecamp
@republikbasecamp 2 жыл бұрын
projek this am success... but versi reg am no work....
@faroekjuthan89
@faroekjuthan89 3 жыл бұрын
I have 2 problems and hope you have a solution 1) SMS is not being sent to my phone number. Serialmonitor gives the following message: AT + CMGR = 14 + CMGR: "REC UNREAD", "+ 31XXXX", "", "> Relay 1 off. 2) What I notice is that if i change the Phone number in the Code and upload,the old number stays in de memory,which display on de serialmonitor.Even if i reset the Arduino bord it hold the first added number.Thank you in advance for your help.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
1. Have you add your phone number in the code with country code? 2. send sms Relay1 off. Notice no space between world Relay and 1.
@faroekjuthan89
@faroekjuthan89 3 жыл бұрын
@@AhmadLogs,many thanks for your help,I appreciate it very much.The first part of the code works great,the memorylocation change every time like this on the serialmonitor:"+CMTI: "SM",28 ".But something happend when the SMS must be read out,put into the new memorylocation,extract and pass further into the code.I think in this part something go's wrong:if(cmd == "+CMTI"){ //get newly arrived memory location and store it in temp index = buff.indexOf(","); String temp = buff.substring(index+1, buff.length()); temp = "AT+CMGR=" + temp + " "; //get the message stored at memory location "temp" sim800.println(temp); } else if(cmd == "+CMGR"){ extractSms(buff); if(senderNumber == PHONE){ doAction(); I do not know any thing about programming,so i hope you will forgive me if i see it the wrong way.The code is good and i need it for my study and other peaple i help.Thanks again.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@faroekjuthan89 memory location must be change when new message is arrived like in serialmonitor:"+CMTI: "SM",28 this statement String temp = buff.substring(index+1, buff.length()) get the memory location from "+CMTI: "SM",28 mean 28 will store in temp variable then next statement temp = "AT+CMGR=" + temp + " "; - reading the sms from memory location in this case 28 then extractSms(buff); function is called to parse sms. and get the "message" and "phone number" from sms stored at memory location 28 then phone number is compare if the sms received from the phone number you have added in top of the code. then doAction() function is call to control the relay
@faroekjuthan89
@faroekjuthan89 3 жыл бұрын
Thank you very much for the nice explanation, I learned a lot from it. I will continue to play around with your project and hope it will work once. Wish you good luck with your projects.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@faroekjuthan89 very happy for such a nice appreciation
@masoudjafarzadeh
@masoudjafarzadeh 2 жыл бұрын
Hi Do you have any program that can save multi phones number on arduino eeprom via sms with a password Thanks of your sharing time.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
No, sorry. but soon I will make code for this
@masoudjafarzadeh
@masoudjafarzadeh 2 жыл бұрын
@@AhmadLogs thank you Your programs are awsome
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@masoudjafarzadeh So nice of you
@edgardoravier5641
@edgardoravier5641 Жыл бұрын
Sabras donde estara la falla. gracias
@rajaduraisangari
@rajaduraisangari Жыл бұрын
sir, i need the this code but same code how to add the 2 nos register phone number? last time your send the link for registered video, i try to change the code but cannot, can help to add the register numer with the same code, thanks.
@AhmadLogs
@AhmadLogs Жыл бұрын
I will try it in future
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs thank you sir
@rajaduraisangari
@rajaduraisangari Жыл бұрын
@@AhmadLogs dear sir, this week can get the code for 2 nos register mobile number , thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
​@@rajaduraisangari unfortunately not this week.
@chidiayoanasonye9243
@chidiayoanasonye9243 2 жыл бұрын
Please sir can u help me write out and post the code here . I can't access it through the link . its not opening .
@AhmadLogs
@AhmadLogs 2 жыл бұрын
please check the link again
@rajaduraisangari
@rajaduraisangari Жыл бұрын
Dear sir, how to change the mobile number?
@AhmadLogs
@AhmadLogs Жыл бұрын
kzbin.info/www/bejne/hXvGeIxqrrimatE
@sibujacob977
@sibujacob977 2 жыл бұрын
Can the SIM800L support 4g sim
@AhmadLogs
@AhmadLogs 2 жыл бұрын
no
@sibujacob977
@sibujacob977 2 жыл бұрын
@@AhmadLogs Does it support 3G
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@sibujacob977 it only support 2g
@ricardomontiel3267
@ricardomontiel3267 3 жыл бұрын
Hi!! i have a question . How can i delete all the msj using the phone , i know how delete all message with monitor serial but i want to delete with the phone. what have to write i have the same code that you ;) thank u for all teacher
@AhmadLogs
@AhmadLogs 3 жыл бұрын
in the setup() function add the following line of code sim800l.println("AT+CMGD=1,4);
@ricardomontiel5198
@ricardomontiel5198 3 жыл бұрын
@@AhmadLogs with this line when i write in the msg AT+CMGD=1,4 i send to number of sim 800l i delete all the msg?? I mean the msg than the sim800l has to receive and the msg send with sim800l. With this i delete all the msg including msg receive and sends msg?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@ricardomontiel5198 yes, this will delete all the message stored in sim800l memory. if you want to delete some specific message then you may use this command AT+CMGD=1 delete the sms at memory location 1. similarly, AT+CMGD=2 delete the sms at memory location 2, and so on
@ricardomontiel5198
@ricardomontiel5198 3 жыл бұрын
​ @Ahmad Logs i have a problem . when i write this AT+CMGD=1,4 send the msj and the sim800l does´nt delete all the msj dont made anything. i sent i msj from you facebook page can you help me please
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@ricardomontiel5198 first send command AT+CMGF=1 and then AT+CMGD=1,4 Unfortunately, I am unable to use facebook page now a days. so please ask any thing here
@camcam3388
@camcam3388 2 жыл бұрын
My friend, please, if you have a device code. servo motor control by sms thanks
@AhmadLogs
@AhmadLogs 2 жыл бұрын
sorry, i have not the code
@moussaab8292
@moussaab8292 3 жыл бұрын
Can control by calling the phone only without sms
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes, you need to use dtmf function of gsm module
@moussaab8292
@moussaab8292 3 жыл бұрын
@@AhmadLogs I hope you will explain it to her in the future, please
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@moussaab8292 I will, INSHAALLAH
@tobiasxy1230
@tobiasxy1230 2 жыл бұрын
Hi, which phone number is your "sender phone number"? The number, who sends the sms to the SIM800L or the number which is as a SIM Card in the SIM800L?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
the number which is as a SIM Card in the SIM800L
@tobiasxy1230
@tobiasxy1230 2 жыл бұрын
@@AhmadLogs OK thanks for the response. I placed the number there. But the relais doesn't switch. I changed the msg text for relais 1 to "LED AN" then the relais is LOW. And for the msg text "LED AUS" the Relais is "HIGH". Relais is connected to Pin 7. The Sim card ist registered into network. The red led is blinking every 3 seconds. And I have 2,4 A peak current.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@tobiasxy1230 I have connected the load to relay NO (normaly open). that's why when we send LOW the load will turn ON. and when HIGH the relay will be OFF.
@tobiasxy1230
@tobiasxy1230 2 жыл бұрын
Okay thanks. Should I connect the 5v DC from the plug power supply to the VCC from the arduino too? I have connect the power supply to the Sim 800l and the ground and VCC from the arduino to the relay. I think this is wrong? The relay doesn't switch if I send a SMS. The Sim 800l is registered in the mobile network. And how can I create a white list for the phone number which are allowed to switch the relay through a sms?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@tobiasxy1230 relay required more current that VCC does not able to provide. directly connect the 5v power supply to relay. just connect the GND pin of the relay to Arduino. check the video on white list phone numbers kzbin.info/www/bejne/f5rLloR3grlmoaM
@azamjahangir3071
@azamjahangir3071 3 жыл бұрын
Sim 800l module PTA sa resistor hota hai kia reply me
@AhmadLogs
@AhmadLogs 3 жыл бұрын
ni, apko register krwana parta hy
@moinshaikh6684
@moinshaikh6684 3 жыл бұрын
I was feeling like I'm in a disco according to music..!
@AhmadLogs
@AhmadLogs 3 жыл бұрын
this is KZbin royalty free music
@moinshaikh6684
@moinshaikh6684 3 жыл бұрын
@@AhmadLogs I've no issues with music, i commented to show the enjoyment i had with your video, learning as well as dancing...
@AhmadLogs
@AhmadLogs 3 жыл бұрын
​@@moinshaikh6684 hahaha.... thanks you bro
@safar24X7
@safar24X7 3 жыл бұрын
Sir plz plz sand background music link
@AhmadLogs
@AhmadLogs 3 жыл бұрын
KZbin music library. Music name: Forget Me Not
@ridwanolawale8558
@ridwanolawale8558 3 жыл бұрын
am from nigeria please i try to connect it not responds
@AhmadLogs
@AhmadLogs 3 жыл бұрын
you need to power sim800l with 3.7v mobile phone battery
@moab5246
@moab5246 3 жыл бұрын
When I open the monitor, it comes to me (??????)
@AhmadLogs
@AhmadLogs 3 жыл бұрын
this is Serial communication issue. have you select the correct baud rate from serial monitor. most of sim800l works on 3.4 to 4.4 volts. test the circuit with 3.7v mobile phone battery
@redigjona8757
@redigjona8757 2 жыл бұрын
After 40 messages my project isnt working anymore. Can you tell me anyway to solve it?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
use the following AT command at the end of "do_action function" AT+CMGD=1,4
@redigjona8757
@redigjona8757 2 жыл бұрын
I can't understand clearly. Can you be more specific sir please?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@redigjona8757 I have updated the code. just download the latest copy
@redigjona8757
@redigjona8757 2 жыл бұрын
Do i need to send any msg to sim800 for deleting msgs?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@redigjona8757 message will delete automatically
@fernandohood5542
@fernandohood5542 2 жыл бұрын
There is no voltage translation?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
because my sim800l works perfect on 5v dc. strange.......
@fernandohood5542
@fernandohood5542 2 жыл бұрын
@@AhmadLogs So there is lot of misinformation?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@fernandohood5542 there are many videos on my channel about sim800l. you just have a look at them.
@hatem2561
@hatem2561 3 жыл бұрын
hey sir can you send me this program of arduino i need it .. i am a student and i need it for my finaly exam pls....
@AhmadLogs
@AhmadLogs 3 жыл бұрын
code link is available in description of video
@ahmadnurlintangsmesta_0028
@ahmadnurlintangsmesta_0028 Жыл бұрын
Sim 800l relay control using telegram bot, this work?
@AhmadLogs
@AhmadLogs Жыл бұрын
telegram is banned in my country
@chenapallireddypraveen8947
@chenapallireddypraveen8947 3 жыл бұрын
Sir 4g sim is worked in GSM module 800l
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes, most of 4g sims also have 2 functionality. it will use 2g services of 4g sim
@chenapallireddypraveen8947
@chenapallireddypraveen8947 3 жыл бұрын
I'm trying to on the relays but it's don't work sir, code is uploaded to Arduino and everything is fine
@chenapallireddypraveen8947
@chenapallireddypraveen8947 3 жыл бұрын
I'm giving relay vcc to Arduino 5v
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@chenapallireddypraveen8947 have you test relays separately. how many relays you are using?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@chenapallireddypraveen8947 check voltages and current around relays using multi meter
@dabbarmohsen8696
@dabbarmohsen8696 Жыл бұрын
Hi mister I followed the connection diagram and uploaded the code but the arduino does not receive the sms 02:31:27.728 -> Arduino serial initialize 02:31:27.728 -> SIM800L software serial initialize 02:31:31.764 -> AT+CMGF=1 02:31:31.764 -> ERROR 02:31:31.764 -> AT+CMGD=1,4 02:31:31.764 -> ERROR 02:31:31.811 -> AT+CMGDA= "DEL ALL" 02:31:31.811 -> E
@AhmadLogs
@AhmadLogs Жыл бұрын
test your gsm module, by making call on it from your phone
@talebsalah139
@talebsalah139 3 жыл бұрын
salut j'ai un projet de arduino il se compose de Arduino nano Gsm module Battery 3.7v Breadboard 430 pts Relay module 4ch aide moire pour rialise ce projet je besoin schema et installation
@AhmadLogs
@AhmadLogs 3 жыл бұрын
I will try to make it
@talebsalah139
@talebsalah139 3 жыл бұрын
@@AhmadLogs Je vous remercie.
@talebsalah139
@talebsalah139 3 жыл бұрын
Jous changer le batterie 3.7v au Buck Converter
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@talebsalah139 No problem, only adjust the voltages of Buck Convertor (4v is best)
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@talebsalah139 so nice of you
@anildolage9371
@anildolage9371 3 жыл бұрын
Onde baixo essa programação?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
o link está disponível na descrição do vídeo
@anildolage9371
@anildolage9371 3 жыл бұрын
@@AhmadLogs vc concegue me enviar a programação por email? lageanildo@gmail.com
@rahmanihamidou6093
@rahmanihamidou6093 3 жыл бұрын
Hello, super You can send me the code for sim800l .
@AhmadLogs
@AhmadLogs 3 жыл бұрын
check download link in the video description
@rahmanihamidou6093
@rahmanihamidou6093 3 жыл бұрын
Where i check it? You say in vidéo description I have sim800l and i need code ,how i do it , Went sending message to start for exemple relay or lamp Thank you.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@rahmanihamidou6093 github.com/ahmadlogs/arduino-sim800l-relay-control
@shaniteach1166
@shaniteach1166 3 жыл бұрын
Super Dear i buy this project plz conct me
@AhmadLogs
@AhmadLogs 3 жыл бұрын
want to buy from me?
@GP_BALAN1423
@GP_BALAN1423 3 жыл бұрын
Sir I can control any one relay by making call Example:2ring to on the relay and 5 ring to off the relay Sir you can make the code it possible or not.
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes it is possible and very simple
@GP_BALAN1423
@GP_BALAN1423 3 жыл бұрын
@@AhmadLogs how?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@GP_BALAN1423 when we call to sim800l. you will receive "ring" in serial monitor. count the number of rings from serial and perform required action according to number of rings
@GP_BALAN1423
@GP_BALAN1423 3 жыл бұрын
@@AhmadLogs ok sir ❤️
@ALLINONETeam
@ALLINONETeam 3 жыл бұрын
Please give me circuit diagram pdf ☺️
@AhmadLogs
@AhmadLogs 3 жыл бұрын
I dont have circuit diagram for pcb.
@ALLINONETeam
@ALLINONETeam 3 жыл бұрын
@@AhmadLogs bro how many cost they making?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@ALLINONETeam this is very cheap solution. $15 for hardware parts. other hardware configuration and software cost may vary according to someone requirements
@elvisryanmillan2843
@elvisryanmillan2843 3 жыл бұрын
atchup
@zebafatma3683
@zebafatma3683 3 жыл бұрын
Please help me
@AhmadLogs
@AhmadLogs 3 жыл бұрын
what is the error
@azamjahangir3071
@azamjahangir3071 3 жыл бұрын
Asslam o alikam bhi
@AhmadLogs
@AhmadLogs 3 жыл бұрын
w.slaam
@azamjahangir3071
@azamjahangir3071 3 жыл бұрын
Register kar wana ki fee kitni hai sim 800l module
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@azamjahangir3071 same as you register your mobile phone
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@azamjahangir3071 not sure. meny free me register kerwaya tha bohat pehly
@azamjahangir3071
@azamjahangir3071 3 жыл бұрын
Thanks
@zebafatma3683
@zebafatma3683 3 жыл бұрын
Nihi hoa
@AhmadLogs
@AhmadLogs 3 жыл бұрын
what is the error
@aminebelgacem8906
@aminebelgacem8906 3 жыл бұрын
can i have the code source
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes source code available in description
@aminebelgacem8906
@aminebelgacem8906 3 жыл бұрын
@@AhmadLogs thank you, but can i use this code for SIM900A??
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@aminebelgacem8906 I think it will work because I am using simple AT commands in the code that are common in all gsm modules. but I will not test the code other than sim800l. you may test it and also dont forget to give me the feedback. thanks
@aminebelgacem8906
@aminebelgacem8906 3 жыл бұрын
Can you help me in code source of controlling 2 relay using text message?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@aminebelgacem8906 yes of-course. tell me what do you want
@TahirElectronics
@TahirElectronics 2 жыл бұрын
سر جی پلیز پلیز اپنا ای میل یا واٹس ایپ نمبر دے دیں مشکور رہوں گا
@manmangy
@manmangy 2 жыл бұрын
Kindly Shut off this horrible background so called useless music. Give us some explanation instead
@chidiayoanasonye9243
@chidiayoanasonye9243 2 жыл бұрын
Plz sir which phone number should I put in the code ? . The sim inserted in the sim800L module ? Or my personal phone number in my phone ? . If my personal phone , how can I add up to three phone ? numbers
@AhmadLogs
@AhmadLogs 2 жыл бұрын
The sim inserted in the sim800L module
@bulesky3401
@bulesky3401 3 жыл бұрын
Hello We can control 8 relays؟
@AhmadLogs
@AhmadLogs 3 жыл бұрын
yes, you can control 8 relays easily. if you have some issues you may ask.
@bulesky3401
@bulesky3401 3 жыл бұрын
@@AhmadLogs Thanks in the program fertilizer, what should I change for 8-rail control?
@AhmadLogs
@AhmadLogs 3 жыл бұрын
@@bulesky3401 you need to add 8 channel relay module to arduino attach two pins of the relay module like in1 and in2 according to circuit diagram. and other 6 pins from in3 to in8 to any empty pins on arduino. and then you need to do some changes in code. if you know a little bit about the programming you can easily modify the code according to your need
@bulesky3401
@bulesky3401 3 жыл бұрын
@@AhmadLogs Thanks
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 7 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 48 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 81 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 53 МЛН
SEND SMS messages to control DEVICES
10:03
Androbot TECH
Рет қаралды 22 М.
GSM RELAY Control from  Registered Number Call
11:46
Saravanan AL
Рет қаралды 40 М.
LoRa Relay Control With Arduino Upto 15KM
12:46
Ahmad Logs
Рет қаралды 32 М.
GSM REMOTE CONTROL using phone CALLS
7:07
Androbot TECH
Рет қаралды 8 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 7 МЛН