I can't appreciate you enough for being such so kind hearted. Thank you for all your quick responses and prompt actions. My own problem is that 1 *arduino needs to reboot after each action has been completed*. 2 how can I add DTMF to the project . so I can make calls to control the relays too. Please how can I achieve this? I await your response with urgency, thanks in anticipation.
Hello Ahmad, your videos and explanations are great, I need your help, how can I do so that all registered numbers receive messages, for example, when a relay has been turned on or off... I hope you can help me solve my problem... Greetings
@@pablotorrea9901 you can use the following function to make call to all registered phone numbers. void make_calls() { int phoneLength = 13; char data[phoneLength + 1]; for (int i = 0; i < phoneLength; i++) { data[i] = EEPROM.read(addrOffset + i); } sim800.print("ATD"+data[phoneLength]+";"); }
wow superb bro,, gr8 explaination, only one problem is when power returns after power cut, we r not getting any acknowledgment message last status, and power return messages,, can u solve this problem bro,,,
In this code and video, the response is sent only when the module is controlled via SMS. But I want SMS to be sent by pressing the buttons. For example, when the first button is pressed, an SMS is sent like this: "Button1 has been pressed"
connect a button to arduino. then set the button pin i.e. int buttonPin = 1. in the setup pinMode(buttonPin, INPUT_PULLUP); In the loop() if(buttonPin == LOW) { delay(200); Reply("Hello", "PhoneNumber"); }
The Relay he used in the project has three plug-ins. Common, Normally Open and Normally Close. A cable, either positive or negative must go into Common. If the second cable is plugged into Normally Open, the relay will default ON. If plugged into Normally Close, the relay will default OFF.
Hello Ahmed, I want to send me an sms when the device is turned on to start, so that when it is turned on remotely, what changes should I make in the code?
Excellent work sir thanks for sharing this great project. Sir please also add eeprom in your 4 in 1 gsm project which was having IR remote also thanks in advance
I watched your SIM800l tutorials, I am able to register 5 phone numbers by watching your videos. But can you please tell me how can I make a call to admin number which is stored in EEPROM memory when a switch is pressed. It works for the first time but if I turn off the arduino power supply it doesn't work. Please suggest me. Thanks in advance.
Gsm module mein power aate hi power on ka sms aaye or power cut hone par power cut ka sms aaye a code add Karege to khet me light aate hi sms aaye taki pata chale ki khet me light aayi he .or mobail se water pump on off bhi kar sake ..
everything working perfectly except identifying the button or SMS triggered, how to achieve this? it will be much better if the button is pressed to send SMS content along with the BUTTON PRESSED message to the registered numbers...this will help to identify if anyone is mishandling the system...
Dear Ahmad Vai, Assalamu Alaikum. Your videos are very good, informative and useful. Would you please make a tutorial on AC load on/off notification project please? In that case you can use SIM800L or SIM900, Arduino Nano and a 5v power adapter for check power on off. The circuit may run by a 18650 lion battery.
Please add the flames and gases sensor feedback notification with sms and add the one more features is that if project is start to run then add the call and sms function which gives the notification is system is active
Thx for thr project bhai. Well, an doing the same project but the relays not responding. When i send a message it shows the relay 1 to be on but no reaction on the relays to turn on. What might be the issue
@@AhmadLogs no luck bro, I don’t know why, anyway I did manage to wrote a simple code and it is working while connected to pc/serial, and once i disconnected it from usb. sms message seems can’t read. Maybe you can help on this thanks
Hi Ahmad. Thanx for your great job, it’s really impressive. Could you advice with the code if I use sim 900 instead of sim800l. This code is not working with sim 900
Hello Ahmed, I want to send me an sms when the device is turned on to start, so that when it is turned on remotely, what changes should I make in the code?
Hello Ahmad, i like your tutorials. Could you just create a simple code to register 2 numbers, and in the void loop section, to be able to add some more code if we want to? I would appreciate that a lot. Thanks in advance.
Hello Sir Thanks for sharing this proyect. Is very helpfull for learn about arduino an GSM. I have one question. How i can add more telephone numbers to the list? For example the same but for 10 telephone numbers? thanks again
Hello Ahmad Khan Great as always If possible, write the read and write function of phone numbers for external eeprom, such as 24lc ... so that this program can be used on microcontrollers that do not have internal eeprom. Thank you befor🙏
Hello sir. Everything works well but when i send a message, the relay board does turn on or off. And am sure the relay board works well and the circuit is well connect. Wha might be the issue there? Plz help me out.
Hello, I made the connections, the led of the gsm module is on every 3 seconds. However, when I call, the phone does not pick up. It says on the serial screen constantly calling and sending sms. Can you help me?
Hello Ahmed. Thank you very much for your good and useful training. I need your help to add a small section to this code. How can I get your help? By what means of communication?
Hello sir Ahmed I have a question, how can I send a message to all numbers stored in EEPROM just in case I want to send a specific message to all numbers that is registered
Hello Ahmed Khan Most of the time, we face insufficient pin in programming It is possible to write a program that controls 16 relays using SMS and using shift register and 4 Arduino pins.
Sir, I am Tested and working all functions properly . But Replay message shows below error sir, 1on - Output 5 pin Relay is ON - and Replay message - Relay 1 is ON 1off- Output 5 pin Relay is OFF - and Replay message - Relay 1 is ON Same Replay message for other 3 relays. I am upload code by using Arduino IDE 1.8.12 But all other functions like Store number , Delete number , stauts ,EEPROM , Input Switch 100% working properly. Sir, please replay a solution for correct Replay message. Once , Thanks for Developing and Shared above very useful project.
Dear Ahmad sir, Thanks for your valuable replay & updated code Sharing. Sir, one request , updated code download link please . After testing surely replay sir. Best wishes for your New Projects and code development.
sim800l required voltages 4.4v to 3.4v. so we cannot use 3.3v pin of nodemcu. if you don't want to use battery you can use lm2596 dc to dc buck converter. and adjust the voltages for sim800l using buck converter
There are problems Mr. Ahmad. The old extractSMS function was working properly. Why did you change it? Now I cannot register the phone number by R command.
the old code was not as efficient as the new code. that's why I have changed it to new one. I will also use the new code in my latest projects. what response you get, when you send r command
@@alperkaplan5400 you might test your eeprom first. just upload the eeprom example code to see if it is working or not. to store phone numbers eeprom you need first 64 bytes (if the phone number length is 13). or you need first 69 bytes (if the phone number length is 14).
@@AhmadLogs When I make phone lenght 14, the output is like below. I am sure there is a problem in your code. Please help me to figure out the issue. SIM800L software serial initialize 12:23:13.830 -> ....................SIM800L Not Ready Registered Numbers List: 1. Empty 2. Empty 3. Empty 4. Empty 5. Empty Relay1 is OFF Relay1 is ON Relay1 is OFF Relay1 is ON Relay1 is OFF
i want try to make a program that read a sensor value and call in the registered phone number..which phone number is registered by using sms..help me sir
Dear Friend. Could you please upload your latest Phone Registration Code . Because. when I checked the code with the you tube code you were scrolling, it was different. It seems you were not checking your originally uploaded code . So if you could upload your new code it would be much better. Anyway I thank you for 1. Not Recording this Tutorial with ear bursting sub standard so called music. You tried to gave us good Explanation. Thank you for that. 2. You tried to give answers to most of the help asked. Thank you.. The only Confusing part is Phone Registrations. In Other video you started like " Registering phone is easy Just Type R1 = . This was total confusing. You could start out with Firstly 1. How to store phone numbers in EPPROM by Explaining + Giving a Good Code. 2. Then Go for GSM code and wiring. So a tutorial can Goes like this. 1. Show us what your project do. So if the people who are watching this are not interested they will go. 2. For those who are interested , Split tutorial into 3 parts. 1. What this project will do and Parts needed. 2. Registering Phone 3. GSM Part. All these can be put in one video easily. Why people were so confused because of the phone registering part. Still it is confusing. Usage 100000 can be easily over come by updation I think. My last advice. When you make tutorial next time, 1. Do not make it for experts and do not make it for half boiled eggs. 2. Make it for beginners. So that All doubts will be answered in the video itself. Any one can use that Tutorial (Beginner to expert). WHERE did you use the newly added phoneLength. I downloaded the code and did not find any. Where is do_action command Anyway Thank you very much for the tutorial. Please upload/or give us the links to your new phone registration code
First of all, thank you for giving your valuable time to my channel. Now let me try to answer your questions. 1. Could you please upload your latest Phone Registration Code check the description of the video for the link of the latest code. this is the same code that I have scrolled in the video. 2. The only Confusing part is Phone Registrations. please give me some more explanation about how to improve this code, your suggestions will be appreciated. 3. Show us what your project do. So if the people who are watching this are not interested they will go. This is the a perfect suggestion I will surely follow it in my next videos 4. Why people were so confused because of the phone registering part. Still it is confusing. Usage 100000 can be easily over come by updation I think. I have improved the code to overcome the issue with the phone registration process. but I still did not get any hint from the viewers, to figure out the issue. The write cycle of EEPROM memory is enough as I have demonstrate in the version 2 of the EEPROM memory. it the updation is more useful, then I will try to replace write method with EEPROM update function. 5. WHERE did you use the newly added phoneLength. I downloaded the code and did not find any. Where is do_action command the phoneLength is used in different parts of the code. the function is doAction not the do_action. this function is starts from the line number 270 6. My last advice. When you make tutorial next time. I have noted. I will try to make video just from scratch.
@@AhmadLogs Thank you for your valuable reply. Thanks a lot. But now the problem we have here is we have no 2G support or card available. Could you please post the same with 4 G Sim Card
hardware setup: attach one more button to unused pin of arduino software setup: define the pin for button before setup function. set the button input pullup in the setup. then go to the control relay function. and there check if the button is pressed using if condition. and inside the if condition use Reply() function. like Reply("Button is Pressed");
@@AhmadLogs Could you please check the below code for sending out SMS if the gate is open or closed, getting an error when adding Reply(text, caller_id); //XXXXXXXXXXXXXXXXXXXXXXXXXXX gate on / off button XXXXXXXXXXXXXXXXXXXXXXXX void gate_on_off_button(){ if(digitalRead(BUTTON_2) == LOW){ //control_gate(1, RELAY_1,STATE_RELAY_1 = HIGH,caller_id){ // control_gate(1, RELAY_1, STATE_RELAY_1 = HIGH); control_gate(1, RELAY_1, STATE_RELAY_1); } } void control_gate(int relay_no, int relay_pin, boolean &status){ delay(200); String text = (status)? "GATE CLOED !!!" : "GATE OPEN !!!" ; status = !status; digitalWrite(relay_pin, status); Serial.println(text); delay(100); } //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Tauseef Bhai can you please do another video modifying this code to send sms to all the registered/ eeprom stored phone numbers one by one when the Pir sensor detects the motion. Awaiting your earliest response. Kind regards.
Morning please if anyone can help me as soon as possible. I uploaded the code directly the relays start from on as show in the video but when I change the phone length from 13 to 14 and upload the code, the relay doesn't even start from on and when I try register phone no, it was registered but when I send command it only appears on serial monitor and reply "relay 1 on" but no response on the relay at all
Hello Ahmad Thank you for sharing. Please can you update Arduino SIM800L GPS Tracker with Register Phone Number V3. Registration number v3 works perfectly now with 12 digits. I don't know how to insert the functions for the GPS I'm new to arduino coding. THANKS
Sir, i am a big fan of you sir, i use this project in my home but i found one bug in this. If i lost connection with network after booting uno, Uno can not connect with SIM module again....... please fix this problem.....
@@AhmadLogs thanks dear Ahmad.. i did that,, but i want to change the state one of outputs too..all things okay, but the registered phone was not work for this operation, i define caller id for this function ... but after compiling, i faced the error about saved number
@@AhmadLogs I'm going to add an input to this circuit that when triggered - for example when it becomes HIGH- one of the similar outputs will be activated(like led). At the same time, send a text message. So I want to add an option for security system like PIR sensor .
@@AhmadLogsI have sent 1on sms to turn on rely & reboot the arduino then sent the sms stat=1 which gives the relay Off sms back but relay 1 is already on , how to turn off all rely when reboot the arduino? This will help the pump to be off when power failure happens
@@AhmadLogs Thanks Ahmad, just today I have seen your update & haven't got notified, what is the update? is that related to the wrong SMS update on relay ststus?
Hello Ahmad, your videos and explanations are great, I need your help, how can I do so that all registered numbers receive messages, for example, when a relay has been turned on or off... I hope you can help me solve my problem... Greetings
you can use the following function to make call to all registered phone numbers. void make_calls() { int phoneLength = 13; char data[phoneLength + 1]; for (int i = 0; i < phoneLength; i++) { data[i] = EEPROM.read(addrOffset + i); } sim800.print("ATD"+data[phoneLength]+";"); }
ok thanks, I just don't understand how I should call the make_calls function so that it interacts with the doAction function and the Reply function, so that it sends messages to all registered numbers
@@pablotorrea9901 Sorry the above function was wrong. use the following Reply() function, instead of original one. void Reply() { int phoneLength = 13; char data[phoneLength + 1]; for (int i = 0; i < phoneLength; i++) { data[i] = EEPROM.read(addrOffset + i); String myString = String(data[i]); sim800.print("AT+CMGF=1 "); delay(1000); sim800.print("AT+CMGS=\""+myString+"\" "); delay(1000); sim800.print(text); delay(100); sim800.write(0x1A); //ascii code for ctrl-26 //sim800.println((char)26); //ascii code for ctrl-26 delay(1000); Serial.println("SMS Sent Successfully."); delay(20000); //20 second delay. } }
thanks friend, one more question the addrOffset variable must be declared within the () of the reply function or I can declare it within the for function, because if it is not declared it throws an error.
Hello Ahmad, the reply() function that you indicated did not work quite right, it only sends a message and it is to the administrator, it carries out the process of sending the messages by viewing it on the serial monitor. I replaced all the call_id strings with myString .. I can't understand if I'm doing something wrong, please help. A video tutorial with the explanation would be very helpful
İt is now time to add this project adjustable timer functions. For example, when i want to open my relays for 4 hours or for one day long. Also, i suggest that u need to apply this project to esp32 or some kind of strong MCU. Arduino is still ok for the project but the doaction functions is overloading sometimes. Thanks for your kindness.
Hello sir aapka sabhi video dekhta hun per aap ek bhi video Hindi mein nahin banate Ho aisa kyon sar kuch video Hindi mein bhi banaya karo sar main jyada padha likha nahin hun lekin mujhe dilchaspi bahut hai lekin aapke English ke vajah se mujhe samajh nahin aata sar mere comment ko galat mat samaj main nahin aata
Surprising! That's wonderful. Keep up the good work, more knowledge for us. Thank you.
I can't appreciate you enough for being such so kind hearted. Thank you for all your quick responses and prompt actions.
My own problem is that
1 *arduino needs to reboot after each action has been completed*.
2 how can I add DTMF to the project . so I can make calls to control the relays too.
Please how can I achieve this?
I await your response with urgency, thanks in anticipation.
here is your answer th-cam.com/video/Hq1ZGWWc0e4/w-d-xo.html
Hello Ahmad, your videos and explanations are great, I need your help, how can I do so that all registered numbers receive messages, for example, when a relay has been turned on or off... I hope you can help me solve my problem... Greetings
@@pablotorrea9901 you can use the following function to make call to all registered phone numbers.
void make_calls()
{
int phoneLength = 13;
char data[phoneLength + 1];
for (int i = 0; i < phoneLength; i++)
{ data[i] = EEPROM.read(addrOffset + i); }
sim800.print("ATD"+data[phoneLength]+";");
}
boy you are my savior . love it . i had problems on this for almost a week
thanks
Hi sir .your video best information
Thanks and welcome
I like the way you explain the program function, specially the details and short presentation of moving the data
SO NICE OF YOU
if anyone have different phone length u also need to modify the number on this line of code : String temp = text.substring(3, 17);
wow superb bro,, gr8 explaination, only one problem is when power returns after power cut, we r not getting any acknowledgment message last status, and power return messages,, can u solve this problem bro,,,
sure I will try
Excellent project sir. Thanks for Sharing project with code.
So nice of you
Wonderful! This is great bro. Keep the good work going, more knowledge for you.
Appreciated
@@AhmadLogs good
Helloo there,my project involves controlling the relay using a string within a string...how can i achieve this please? alittle stuck.
Nice project, Sir.. God Job! Amazing
Thank you very much!
In this code and video, the response is sent only when the module is controlled via SMS.
But I want SMS to be sent by pressing the buttons. For example, when the first button is pressed, an SMS is sent like this: "Button1 has been pressed"
connect a button to arduino. then set the button pin i.e. int buttonPin = 1. in the setup pinMode(buttonPin, INPUT_PULLUP);
In the loop()
if(buttonPin == LOW) {
delay(200);
Reply("Hello", "PhoneNumber");
}
Awesome, Thank you! But how do you get the relay board to start with all off instead of all on?
The Relay he used in the project has three plug-ins. Common, Normally Open and Normally Close. A cable, either positive or negative must go into Common. If the second cable is plugged into Normally Open, the relay will default ON. If plugged into Normally Close, the relay will default OFF.
Hello Ahmed, I want to send me an sms when the device is turned on to start, so that when it is turned on remotely, what changes should I make in the code?
Excellent work sir thanks for sharing this great project. Sir please also add eeprom in your 4 in 1 gsm project which was having IR remote also thanks in advance
Ok I will try
I watched your SIM800l tutorials, I am able to register 5 phone numbers by watching your videos. But can you please tell me how can I make a call to admin number which is stored in EEPROM memory when a switch is pressed. It works for the first time but if I turn off the arduino power supply it doesn't work. Please suggest me. Thanks in advance.
can you please give us full codes?
in comments?
Sir kya hum pawar on and send sms code add kar sakte he?
give me some more detail
Gsm module mein power aate hi power on ka sms aaye or power cut hone par power cut ka sms aaye a code add Karege to khet me light aate hi sms aaye taki pata chale ki khet me light aayi he .or mobail se water pump on off bhi kar sake ..
th-cam.com/video/Kb1JU7wt1EQ/w-d-xo.html
Ashi system banao jish se farmar ko aaram mile.
everything working perfectly except identifying the button or SMS triggered, how to achieve this? it will be much better if the button is pressed to send SMS content along with the BUTTON PRESSED message to the registered numbers...this will help to identify if anyone is mishandling the system...
hmmm I will try to update it
SUPERB ! 👍👍👍 as always.
Thank you so much 😀
Thank you Ahmad
welcome
NICELY EXPLAINED.
Glad it was helpful!
Verry nice project sir
So nice of you
Great work, i did lmost the same using your micro python code with the pico project.
Great 👍
Dear Ahmad Vai, Assalamu Alaikum. Your videos are very good, informative and useful. Would you please make a tutorial on AC load on/off notification project please? In that case you can use SIM800L or SIM900, Arduino Nano and a 5v power adapter for check power on off. The circuit may run by a 18650 lion battery.
will try
Please add the flames and gases sensor feedback notification with sms and add the one more features is that if project is start to run then add the call and sms function which gives the notification is system is active
This is bumble request to you plz make the video on this. Or may be shared code alao in the description plz sir
Thx for thr project bhai. Well, an doing the same project but the relays not responding. When i send a message it shows the relay 1 to be on but no reaction on the relays to turn on. What might be the issue
Thanks Bro, I will give it a go this coming week end.
Hope you enjoy
@@AhmadLogs no luck bro, I don’t know why, anyway I did manage to wrote a simple code and it is working while connected to pc/serial, and once i disconnected it from usb. sms message seems can’t read. Maybe you can help on this thanks
Hi I cannot locate the source to this project in your GitHub repository all I can see is sim800 relay which has a different code
thank you so much bro i'll try to do this project and modify it with gps tracker
great
Hi Ahmad. Thanx for your great job, it’s really impressive. Could you advice with the code if I use sim 900 instead of sim800l. This code is not working with sim 900
unfortunately I did not have sim900 module. so I am unable to answer. As I know, you need to modify some of the AT commands in the code.
@@AhmadLogs anyway, thanx for your video. It helps me a lot. Will continue to find code for my sim900
sir can i use normal ac switches behalf of push buttons
It project arduino is the best 👍
But; how to make is this project for 4 relay is on to 2 second and off automatic all 4 relay?
Are you providing online language course for iot and gsm based project..
sir, i was connected my sim module with 2s lipo battery then it was damaged. is possible to fix it???
Hello Ahmed, I want to send me an sms when the device is turned on to start, so that when it is turned on remotely, what changes should I make in the code?
I really like your very useful project, thank you.!
Glad you like it!
Hello Ahmad, i like your tutorials. Could you just create a simple code to register 2 numbers, and in the void loop section, to be able to add some more code if we want to? I would appreciate that a lot. Thanks in advance.
I will try it soon
@@AhmadLogs Thank you.
Nice video, very useful
Glad it was helpful!
Good work thanks
so nice of you
Hello Sir
Thanks for sharing this proyect. Is very helpfull for learn about arduino an GSM. I have one question. How i can add more telephone numbers to the list? For example the same but for 10 telephone numbers?
thanks again
it is very simple if you have a little programming knowledge you can easily do it
Hello Ahmad Khan
Great as always
If possible, write the read and write function of phone numbers for external eeprom, such as 24lc ... so that this program can be used on microcontrollers that do not have internal eeprom.
Thank you befor🙏
Ok I will try
@@AhmadLogs
Hi si Big project
Can you increase the temperature sensor and control the max and min value?
@@amirtelecom6898 you want me to add the temperature sensor in this project. Am I right?
@@AhmadLogs
Yes if possible
Please I want to get in touch with you. I need help
Thank you sir
@@AhmadLogs
Please help me !!
Hello sir. Everything works well but when i send a message, the relay board does turn on or off. And am sure the relay board works well and the circuit is well connect. Wha might be the issue there? Plz help me out.
check serial monitor send me the output
Hello, I made the connections, the led of the gsm module is on every 3 seconds. However, when I call, the phone does not pick up. It says on the serial screen constantly calling and sending sms. Can you help me?
it is strange
Hello Ahmed. Thank you very much for your good and useful training. I need your help to add a small section to this code. How can I get your help? By what means of communication?
Sir, please add the DFPlayer mini with this pogram.
Thank you.
I hope on your future video you will use esp8266 or esp32.. by using blynk or txt msg. it can control or something like a home security
will try
Hello sir Ahmed I have a question, how can I send a message to all numbers stored in EEPROM just in case I want to send a specific message to all numbers that is registered
you need a loop to iterate through each number and make a call using ATD command
This is an amazing project! How do I add DTMF feature in this project?
check this th-cam.com/video/Hq1ZGWWc0e4/w-d-xo.html
Is this working in Canada? There is no more 2g services and 3g is meant to be shut in 2025
trying to register with R I have +CMGR: "REC UNREAD" in my serial monitor, whats that means ? thanks
if mean your module have received an sms. have you get back the response?
Does it mean when I change the phone length, there's something I have to change as well
it works perfectly on 13 digits phone numbers
Hello Ahmed Khan
Most of the time, we face insufficient pin in programming
It is possible to write a program that controls 16 relays using SMS and using shift register and 4 Arduino pins.
you can use shift register to increase the gpio. it is possible
Sir, I am Tested and working all functions properly . But Replay message shows below error sir,
1on - Output 5 pin Relay is ON - and Replay message - Relay 1 is ON
1off- Output 5 pin Relay is OFF - and Replay message - Relay 1 is ON
Same Replay message for other 3 relays.
I am upload code by using Arduino IDE 1.8.12
But all other functions like Store number , Delete number , stauts ,EEPROM , Input Switch 100% working properly.
Sir, please replay a solution for correct Replay message.
Once , Thanks for Developing and Shared above very useful project.
I have updated the code. please download the latest copy of the code
Dear Ahmad sir, Thanks for your valuable replay & updated code Sharing. Sir, one request , updated code download link please . After testing surely replay sir. Best wishes for your New Projects and code development.
@@renjithcatek7435 thanks, check and let me know
Sir, one request , updated code download link please .Thanks
@@renjithcatek7435 the same link in the description
Is this any reason you use 3.7v external battery. why are you not use node mcu 3.3 volt pin..
sim800l required voltages 4.4v to 3.4v. so we cannot use 3.3v pin of nodemcu. if you don't want to use battery you can use lm2596 dc to dc buck converter. and adjust the voltages for sim800l using buck converter
@@AhmadLogs thanks..
@@Javedansari-yl6ts welcome
@@AhmadLogs can i also use LM317 voltage regulator ic
From 5v supply for sim800l ..
@@Javedansari-yl6ts yes you can. just give it a try
sir how we can read response of outgoing call from sim800l ?
how we know that our outgoing call is
: answered
or
Not connected
or
Made Busy
etc ?
unfortunately I never do it before.
amazing sir
Thanks and welcome
does the second phone number registration have to be from the same phone number
Hello bro
Can you help me to make DTMF appliances control with audio feed back by using Arduino Uno , sim 800L and DF player-mine MP3 player
will try
There are problems Mr. Ahmad. The old extractSMS function was working properly. Why did you change it? Now I cannot register the phone number by R command.
the old code was not as efficient as the new code. that's why I have changed it to new one. I will also use the new code in my latest projects. what response you get, when you send r command
@@AhmadLogs resetsin800l function is working when i power the system. İ use Arduino nano. İ think the problem is eeprom addresses.
@@alperkaplan5400 you might test your eeprom first. just upload the eeprom example code to see if it is working or not. to store phone numbers eeprom you need first 64 bytes (if the phone number length is 13).
or you need first 69 bytes (if the phone number length is 14).
Ok I'll try and let you know thanks
@@AhmadLogs
When I make phone lenght 14, the output is like below. I am sure there is a problem in your code. Please help me to figure out the issue.
SIM800L software serial initialize
12:23:13.830 -> ....................SIM800L Not Ready
Registered Numbers List:
1. Empty
2. Empty
3. Empty
4. Empty
5. Empty
Relay1 is OFF
Relay1 is ON
Relay1 is OFF
Relay1 is ON
Relay1 is OFF
hi, i want to add DHT 11 into this project how can i do
i want try to make a program that read a sensor value and call in the registered phone number..which phone number is registered by using sms..help me sir
I will try soon
I want to add alarm system on same project. Is this possible???
give me some more detail
@@AhmadLogs please include push button for one click calling on digital pin 13
@@kantilab will try in next version
@@AhmadLogs thanks 😊
Sir, please update this project…. I am waiting for your reply
Dear Friend. Could you please upload your latest Phone Registration Code . Because. when I checked the code with the you tube code you were scrolling, it was different. It seems you were not checking your originally uploaded code . So if you could upload your new code it would be much better. Anyway I thank you for
1. Not Recording this Tutorial with ear bursting sub standard so called music. You tried to gave us good Explanation. Thank you for that.
2. You tried to give answers to most of the help asked. Thank you..
The only Confusing part is Phone Registrations. In Other video you started like " Registering phone is easy Just Type R1 = . This was total confusing. You could start out with
Firstly
1. How to store phone numbers in EPPROM by Explaining + Giving a Good Code.
2. Then Go for GSM code and wiring.
So a tutorial can Goes like this.
1. Show us what your project do. So if the people who are watching this are not interested they will go.
2. For those who are interested , Split tutorial into 3 parts.
1. What this project will do and Parts needed.
2. Registering Phone
3. GSM Part.
All these can be put in one video easily.
Why people were so confused because of the phone registering part. Still it is confusing. Usage 100000 can be easily over come by updation I think.
My last advice. When you make tutorial next time,
1. Do not make it for experts and do not make it for half boiled eggs.
2. Make it for beginners. So that All doubts will be answered in the video itself. Any one can use that Tutorial (Beginner to expert).
WHERE did you use the newly added phoneLength. I downloaded the code and did not find any.
Where is do_action command
Anyway Thank you very much for the tutorial. Please upload/or give us the links to your new phone registration code
First of all, thank you for giving your valuable time to my channel. Now let me try to answer your questions.
1. Could you please upload your latest Phone Registration Code
check the description of the video for the link of the latest code. this is the same code that I have scrolled in the video.
2. The only Confusing part is Phone Registrations.
please give me some more explanation about how to improve this code, your suggestions will be appreciated.
3. Show us what your project do. So if the people who are watching this are not interested they will go.
This is the a perfect suggestion I will surely follow it in my next videos
4. Why people were so confused because of the phone registering part. Still it is confusing. Usage 100000 can be easily over come by updation I think.
I have improved the code to overcome the issue with the phone registration process. but I still did not get any hint from the viewers, to figure out the issue. The write cycle of EEPROM memory is enough as I have demonstrate in the version 2 of the EEPROM memory. it the updation is more useful, then I will try to replace write method with EEPROM update function.
5. WHERE did you use the newly added phoneLength. I downloaded the code and did not find any. Where is do_action command
the phoneLength is used in different parts of the code. the function is doAction not the do_action. this function is starts from the line number 270
6. My last advice. When you make tutorial next time.
I have noted. I will try to make video just from scratch.
@@AhmadLogs Thank you for your valuable reply. Thanks a lot. But now the problem we have here is we have no 2G support or card available. Could you please post the same with 4 G Sim Card
Thank you sir may you explain about mit app inventor for this project?
Not planned yet
Hi Ahmad, how to add if the dedicated button is pressed send an SMS message saying BUTTON PRESSED like a calling bell
hardware setup: attach one more button to unused pin of arduino
software setup: define the pin for button before setup function. set the button input pullup in the setup. then go to the control relay function. and there check if the button is pressed using if condition. and inside the if condition use Reply() function. like Reply("Button is Pressed");
@@AhmadLogs no luck🙃
@@AhmadLogs Could you please check the below code for sending out SMS if the gate is open or closed, getting an error when adding Reply(text, caller_id);
//XXXXXXXXXXXXXXXXXXXXXXXXXXX gate on / off button XXXXXXXXXXXXXXXXXXXXXXXX
void gate_on_off_button(){
if(digitalRead(BUTTON_2) == LOW){
//control_gate(1, RELAY_1,STATE_RELAY_1 = HIGH,caller_id){
// control_gate(1, RELAY_1, STATE_RELAY_1 = HIGH);
control_gate(1, RELAY_1, STATE_RELAY_1);
}
}
void control_gate(int relay_no, int relay_pin, boolean &status){
delay(200);
String text = (status)? "GATE CLOED !!!" : "GATE OPEN !!!" ;
status = !status;
digitalWrite(relay_pin, status);
Serial.println(text);
delay(100);
}
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
hi, got the chance to look into this
Tauseef Bhai can you please do another video modifying this code to send sms to all the registered/ eeprom stored phone numbers one by one when the Pir sensor detects the motion.
Awaiting your earliest response.
Kind regards.
will try
@@AhmadLogs ok, thanks
Morning please if anyone can help me as soon as possible.
I uploaded the code directly the relays start from on as show in the video but when I change the phone length from 13 to 14 and upload the code, the relay doesn't even start from on and when I try register phone no, it was registered but when I send command it only appears on serial monitor and reply "relay 1 on" but no response on the relay at all
it works perfectly on 13 digits phone numbers. have you registered your phone number correctly?
Hello Ahmad
Thank you for sharing.
Please can you update Arduino SIM800L GPS Tracker with Register Phone Number V3.
Registration number v3 works perfectly now with 12 digits.
I don't know how to insert the functions for the GPS I'm new to arduino coding.
THANKS
will try soon
hello sir gsm not reply on off relay please help this video
Place code this function for command ((1 on )) sms to sim800l ; relay is on to 2 seconds and off 🙇♂️please help me
sendstatus function is not working properly. It alwasy send relay* is ON sms even though i sent 3off command.
hmmm. it required to update the code.
How to keep the relay off even after the power failure or reboot?
this feature is available in the project
Sir, i am a big fan of you
sir, i use this project in my home but i found one bug in this. If i lost connection with network after booting uno, Uno can not connect with SIM module again....... please fix this problem.....
I will try to fix it
Dear Sir it is possible to add the timer function please thank you for the effort you are making
yes it is possible
you can send us the enforcement code adding timer and call
Thanks
@@adlanhugo353 I did not write it yet. I will soon make the version 4 of the project. and will try to add these features.
@@adlanhugo353 will try
Please can you add me the code with the timer and call
The pogram is work properly. please add DTMF this pogram.
th-cam.com/video/Hq1ZGWWc0e4/w-d-xo.html
Does this code work on gsm900a
Hi, the video was great. Thank you. There was no code link in the description. Can you send me the code download link?
github.com/ahmadlogs/arduino-ide-examples/tree/main/sim800l-reg-phone-v3
Sir it's project perfect but mit app to opreting please
Am having issues to add remaining phone number apart from admin phone number
give me some more detail
How to own write arduino language?
hi, how can send SMS when push buttons pressed!?
use in the loop()
if(buttonPin == LOW){
Reply("Hello");
}
@@AhmadLogs thanks dear Ahmad.. i did that,, but i want to change the state one of outputs too..all things okay, but the registered phone was not work for this operation, i define caller id for this function ... but after compiling, i faced the error about saved number
@@mymail-f9e can you give me the full detail about the issue.
@@AhmadLogs I'm going to add an input to this circuit that when triggered - for example when it becomes HIGH- one of the similar outputs will be activated(like led). At the same time, send a text message.
So I want to add an option for security system like PIR sensor .
@@mymail-f9e can you share the code?
Sir how to work phone number saving codes
sir relay on off command responce error
he sends warning sms when he calls by the button
Hi sir .. I am request to make GSM bastard motor controller 3 phase motor in farm.
Plzz make.
will try
getting relay Off SMS where Relay is on after the whole system putting off & on each time. command used "stat=1", I think the code is having a bug.
please give me some more detail
@@AhmadLogsI have sent 1on sms to turn on rely & reboot the arduino then sent the sms stat=1 which gives the relay Off sms back but relay 1 is already on , how to turn off all rely when reboot the arduino? This will help the pump to be off when power failure happens
@@pookoye I have updated the code. download the latest copy of the code, test it yourself and let me know
@@AhmadLogs Thanks Ahmad, just today I have seen your update & haven't got notified, what is the update? is that related to the wrong SMS update on relay ststus?
@@AhmadLogs How to clear the SMS stored in the SIM, is there any code or command to do?
I have Arduino nano if paste code working ?
yes, I will work like a charm.
sir ji I want this code with dtmf and ATD on admin number
Frind for admin register need send r or R fisrt ?
you either send r or R. both commands have the same function.
@@AhmadLogs bt why not register i did but my number length 14 need change 13 to 14 only?
Thank you, I follow your channel.
Unfortunately, I did not find even one code that works. 😪😪
so sad. I try my best to provide the content that will work for my viewers. So any advice from you will be appreciated.
Hello Ahmad, your videos and explanations are great, I need your help, how can I do so that all registered numbers receive messages, for example, when a relay has been turned on or off... I hope you can help me solve my problem... Greetings
you can use the following function to make call to all registered phone numbers.
void make_calls()
{
int phoneLength = 13;
char data[phoneLength + 1];
for (int i = 0; i < phoneLength; i++)
{ data[i] = EEPROM.read(addrOffset + i); }
sim800.print("ATD"+data[phoneLength]+";");
}
ok thanks, I just don't understand how I should call the make_calls function so that it interacts with the doAction function and the Reply function, so that it sends messages to all registered numbers
@@pablotorrea9901 Sorry the above function was wrong.
use the following Reply() function, instead of original one.
void Reply()
{
int phoneLength = 13;
char data[phoneLength + 1];
for (int i = 0; i < phoneLength; i++)
{
data[i] = EEPROM.read(addrOffset + i);
String myString = String(data[i]);
sim800.print("AT+CMGF=1
");
delay(1000);
sim800.print("AT+CMGS=\""+myString+"\"
");
delay(1000);
sim800.print(text);
delay(100);
sim800.write(0x1A); //ascii code for ctrl-26 //sim800.println((char)26); //ascii code for ctrl-26
delay(1000);
Serial.println("SMS Sent Successfully.");
delay(20000); //20 second delay.
}
}
thanks friend, one more question the addrOffset variable must be declared within the () of the reply function or I can declare it within the for function, because if it is not declared it throws an error.
Hello Ahmad, the reply() function that you indicated did not work quite right, it only sends a message and it is to the administrator, it carries out the process of sending the messages by viewing it on the serial monitor. I replaced all the call_id strings with myString ..
I can't understand if I'm doing something wrong, please help. A video tutorial with the explanation would be very helpful
please include push button for one click calling on digital pin 13… i am still waiting for this project…
hmmmm.
@@AhmadLogs sir i am waiting for your reply
@@kantilab I will add it in version 5
@@AhmadLogs i am waiting. I love your all work…. 💕 thanks 😊
Please sir….
Hi my friend
Have a nice day
@@AhmadLogs thanks;
If i want; relay 1to 4; after receiving sms on; just for 2 seconds on and off to be, this code whit this project;how to do?
İt is now time to add this project adjustable timer functions. For example, when i want to open my relays for 4 hours or for one day long. Also, i suggest that u need to apply this project to esp32 or some kind of strong MCU. Arduino is still ok for the project but the doaction functions is overloading sometimes.
Thanks for your kindness.
will try
Sir, please add the dialing function
hmmmm. will try
hello why code error not compile please
compile for arduino uno
@@AhmadLogs i did buterror please send phone number
cant woking plz help
its work normal but need +DTMF
check this th-cam.com/video/Hq1ZGWWc0e4/w-d-xo.html
Nice Dear sir
Plz add code AceButton code
Ok
@@AhmadLogs hi sir please update code with Ace button
@@tecvishnu unfortunately I did not update it yet
Bro same process plz GPRS...
please give me some more detail
Hello sir aapka sabhi video dekhta hun
per aap ek bhi video Hindi mein nahin banate Ho
aisa kyon sar
kuch video Hindi mein bhi banaya karo
sar main jyada padha likha nahin hun lekin mujhe dilchaspi bahut hai lekin aapke English ke vajah se mujhe samajh nahin aata
sar mere comment ko galat mat samaj main nahin aata
will try
Lora ebyte please...
please give me some more details
@@AhmadLogs Lora ebyte E220 or E320 series with esp32 or esp8266 control relays by buttons for long distance.
@@keeper1855 OK I will try
@@AhmadLogs thanks