SIM800L Home Automation Project Using Arduino and Push Buttons

  Рет қаралды 17,380

Ahmad Logs

Ahmad Logs

2 жыл бұрын

Here is the latest and the updated version of my IOT Based Home Automation Project using SIM800L. In this project I have tried to solve the issues that are present in the previous version of the project. I have also add the push buttons support to make this project more useful. So now you can control the project by send the SMS as well as using the push buttons. First you will have to register your phone number with the project. You can easily register your phone number by just sending SMS from your mobile phone. You will also get the feedback of all the command, that you will send to the project from your mobile phone. If you accidentally send wrong command, you will still get back the response on you phone as error message. So you can debug the project without using the serial monitor.
Features of the Project
1. Only the registered phone numbers will be used to control the project.
2. Register maximum five phone numbers
3. Control 4 Channel Relay Module by SMS
4. Received the Status of the relays on your mobile phone
5. Delete any register phone numbers
6. Push button Control
7. Reload Relay Status after power up the Arduino
Parts Used in This Project
1. Arduino UNO - amzn.to/3ZWKAz2
2. SIM800L GSM Module - amzn.to/3J48mlW
3. 2G SIM Card
4. Relay Module (4 Channel) - amzn.to/3YJXa3w
5. Push Buttons
6. AC bulbs with holder (x4)
7. Jumper Wires
8. Breadboard
9. Battery 3.7v 78000mAh - amzn.to/3ZAxV51
--------------------------------------------------------------------------------------------------------------------
Useful Video Links
--------------------------------------------------------------------------------------------------------------------
Version 1. SIM800L Register Phone Number by SMS
• Arduino SIM800L Relay ...
Version 2. DTMF | Arduino SIM800L Relay Control with SMS
• DTMF | Arduino SIM800L...
--------------------------------------------------------------------------------------------------------------------
Social Media Links
--------------------------------------------------------------------------------------------------------------------
GitHub:
github.com/ahmadlogs/
KZbin:
kzbin.info?sub...
--------------------------------------------------------------------------------------------------------------------
Download Code
--------------------------------------------------------------------------------------------------------------------
github.com/ahmadlogs/arduino-...
--------------------------------------------------------------------------------------------------------------------
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: I will use High Voltages which if incorrectly or improperly used could result in serious injuries or death. So be careful of what you are doing because I will take no responsibility for any of your actions.
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.
#Arduino #SIM800L #HomeAutomation

Пікірлер: 305
@peraxoritis
@peraxoritis 9 ай бұрын
Surprising! That's wonderful. Keep up the good work, more knowledge for us. Thank you.
@user-np6dm7ks3e
@user-np6dm7ks3e Жыл бұрын
boy you are my savior . love it . i had problems on this for almost a week
@AhmadLogs
@AhmadLogs Жыл бұрын
thanks
@yawarsaeed6499
@yawarsaeed6499 2 жыл бұрын
SUPERB ! 👍👍👍 as always.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Thank you so much 😀
@dondon1992
@dondon1992 2 жыл бұрын
I like the way you explain the program function, specially the details and short presentation of moving the data
@AhmadLogs
@AhmadLogs 2 жыл бұрын
SO NICE OF YOU
@reynalddd1169
@reynalddd1169 4 ай бұрын
if anyone have different phone length u also need to modify the number on this line of code : String temp = text.substring(3, 17);
@CAXRAMEDIA
@CAXRAMEDIA 2 жыл бұрын
Nice project, Sir.. God Job! Amazing
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Thank you very much!
@ezeoluchukwu5104
@ezeoluchukwu5104 2 жыл бұрын
Wonderful! This is great bro. Keep the good work going, more knowledge for you.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Appreciated
@ezeoluchukwu5104
@ezeoluchukwu5104 2 жыл бұрын
@@AhmadLogs good
@dabhichandresh5955
@dabhichandresh5955 Жыл бұрын
Hi sir .your video best information
@AhmadLogs
@AhmadLogs Жыл бұрын
Thanks and welcome
@muhammadnor4135
@muhammadnor4135 2 жыл бұрын
I really like your very useful project, thank you.!
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Glad you like it!
@yr4865
@yr4865 2 жыл бұрын
NICELY EXPLAINED.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Glad it was helpful!
@aeb5307
@aeb5307 Жыл бұрын
Thank you Ahmad
@AhmadLogs
@AhmadLogs Жыл бұрын
welcome
@renjithcatek7435
@renjithcatek7435 2 жыл бұрын
Excellent project sir. Thanks for Sharing project with code.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
So nice of you
@filipinodiynot
@filipinodiynot 2 жыл бұрын
Thanks Bro, I will give it a go this coming week end.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Hope you enjoy
@filipinodiynot
@filipinodiynot 2 жыл бұрын
@@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
@AAdnaanmtl
@AAdnaanmtl 2 жыл бұрын
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
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Ok I will try
@lecoindesgamers3729
@lecoindesgamers3729 2 жыл бұрын
Great work, i did lmost the same using your micro python code with the pico project.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Great 👍
@dondon1992
@dondon1992 2 жыл бұрын
Nice video, very useful
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Glad it was helpful!
@jagdishchauhan8683
@jagdishchauhan8683 2 жыл бұрын
Good work thanks
@AhmadLogs
@AhmadLogs 2 жыл бұрын
so nice of you
@s.husain6125
@s.husain6125 2 жыл бұрын
Verry nice project sir
@AhmadLogs
@AhmadLogs 2 жыл бұрын
So nice of you
@aniszed3641
@aniszed3641 2 жыл бұрын
thank you so much bro i'll try to do this project and modify it with gps tracker
@AhmadLogs
@AhmadLogs 2 жыл бұрын
great
@kishanmodhu1553
@kishanmodhu1553 Жыл бұрын
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.
@terlumunjoseph6779
@terlumunjoseph6779 10 ай бұрын
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
@webdeveloper5323
@webdeveloper5323 Жыл бұрын
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
@codingspottelugu2983
@codingspottelugu2983 9 ай бұрын
sir can i use normal ac switches behalf of push buttons
@Ais-qc1bc
@Ais-qc1bc Жыл бұрын
sir, i was connected my sim module with 2s lipo battery then it was damaged. is possible to fix it???
@GREAT-ATA
@GREAT-ATA Жыл бұрын
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.
@AhmadLogs
@AhmadLogs Жыл бұрын
here is your answer kzbin.info/www/bejne/fqKUi3qNjMhjm5Y
@pablotorrea9901
@pablotorrea9901 Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
@@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]+";"); }
@user-dq9ud3bf5f
@user-dq9ud3bf5f Жыл бұрын
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"
@AhmadLogs
@AhmadLogs Жыл бұрын
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"); }
@user-ht2wo8xv9w
@user-ht2wo8xv9w 6 ай бұрын
Sir, please add the DFPlayer mini with this pogram. Thank you.
@vahidparvizi8191
@vahidparvizi8191 Жыл бұрын
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?
@Romello_Pietersz
@Romello_Pietersz Жыл бұрын
Awesome, Thank you! But how do you get the relay board to start with all off instead of all on?
@rabana2me
@rabana2me Жыл бұрын
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.
@sinakhosravi52
@sinakhosravi52 Жыл бұрын
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?
@sinakhosravi52
@sinakhosravi52 Жыл бұрын
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?
@yusufgedik8511
@yusufgedik8511 Жыл бұрын
hi, i want to add DHT 11 into this project how can i do
@vcooltm8769
@vcooltm8769 2 жыл бұрын
amazing sir
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Thanks and welcome
@vcooltm8769
@vcooltm8769 Жыл бұрын
does the second phone number registration have to be from the same phone number
@nitishkumar-sp6xe
@nitishkumar-sp6xe Жыл бұрын
Are you providing online language course for iot and gsm based project..
@eerrfanshayyestehh2069
@eerrfanshayyestehh2069 Жыл бұрын
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?
@user-bt8be4lw8t
@user-bt8be4lw8t 5 ай бұрын
hello sir gsm not reply on off relay please help this video
@rockfireist
@rockfireist 2 жыл бұрын
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,,,
@AhmadLogs
@AhmadLogs 2 жыл бұрын
sure I will try
@farhadrahman1658
@farhadrahman1658 Жыл бұрын
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.
@AhmadLogs
@AhmadLogs Жыл бұрын
will try
@nitishkumar-sp6xe
@nitishkumar-sp6xe Жыл бұрын
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
@nitishkumar-sp6xe
@nitishkumar-sp6xe Жыл бұрын
This is bumble request to you plz make the video on this. Or may be shared code alao in the description plz sir
@masoudjafarzadeh
@masoudjafarzadeh 2 жыл бұрын
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🙏
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Ok I will try
@amirtelecom6898
@amirtelecom6898 2 жыл бұрын
@@AhmadLogs Hi si Big project Can you increase the temperature sensor and control the max and min value?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@amirtelecom6898 you want me to add the temperature sensor in this project. Am I right?
@amirtelecom6898
@amirtelecom6898 2 жыл бұрын
@@AhmadLogs Yes if possible Please I want to get in touch with you. I need help Thank you sir
@amirtelecom6898
@amirtelecom6898 2 жыл бұрын
@@AhmadLogs Please help me !!
@IRAQTube-Bilal
@IRAQTube-Bilal Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
will try
@dondon1992
@dondon1992 Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
will try
@FatTunaTakos
@FatTunaTakos 3 ай бұрын
Is this working in Canada? There is no more 2g services and 3g is meant to be shut in 2025
@eerrfanshayyestehh2069
@eerrfanshayyestehh2069 Жыл бұрын
Place code this function for command ((1 on )) sms to sim800l ; relay is on to 2 seconds and off 🙇‍♂️please help me
@andytechs
@andytechs Жыл бұрын
trying to register with R I have +CMGR: "REC UNREAD" in my serial monitor, whats that means ? thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
if mean your module have received an sms. have you get back the response?
@youlearnchannel5383
@youlearnchannel5383 Жыл бұрын
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.
@AhmadLogs
@AhmadLogs Жыл бұрын
I will try it soon
@youlearnchannel5383
@youlearnchannel5383 Жыл бұрын
@@AhmadLogs Thank you.
@pookoye
@pookoye Жыл бұрын
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...
@AhmadLogs
@AhmadLogs Жыл бұрын
hmmm I will try to update it
@jagdishchauhan8683
@jagdishchauhan8683 Жыл бұрын
Sir it's project perfect but mit app to opreting please
@qassimbusari9039
@qassimbusari9039 Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
it works perfectly on 13 digits phone numbers. have you registered your phone number correctly?
@sebamorel
@sebamorel 2 жыл бұрын
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
@AhmadLogs
@AhmadLogs 2 жыл бұрын
it is very simple if you have a little programming knowledge you can easily do it
@michaelraj873
@michaelraj873 Жыл бұрын
How to own write arduino language?
@rampage_xdit
@rampage_xdit 2 жыл бұрын
Thank you sir may you explain about mit app inventor for this project?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
Not planned yet
@christiandavecarmesis3431
@christiandavecarmesis3431 11 ай бұрын
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
@AhmadLogs
@AhmadLogs 11 ай бұрын
you need a loop to iterate through each number and make a call using ATD command
@pedjanbgd4221
@pedjanbgd4221 Жыл бұрын
This is an amazing project! How do I add DTMF feature in this project?
@AhmadLogs
@AhmadLogs Жыл бұрын
check this kzbin.info/www/bejne/fqKUi3qNjMhjm5Y
@samindakulathunga4873
@samindakulathunga4873 4 ай бұрын
Does this code work on gsm900a
@cubityt
@cubityt 2 жыл бұрын
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
@AhmadLogs
@AhmadLogs 2 жыл бұрын
I will try soon
@canisklanadam8388
@canisklanadam8388 Жыл бұрын
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?
@AhmadLogs
@AhmadLogs Жыл бұрын
it is strange
@zeeshanakram8751
@zeeshanakram8751 2 жыл бұрын
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 ?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
unfortunately I never do it before.
@masoudjafarzadeh
@masoudjafarzadeh Жыл бұрын
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.
@AhmadLogs
@AhmadLogs Жыл бұрын
you can use shift register to increase the gpio. it is possible
@bharathasrimal8641
@bharathasrimal8641 Жыл бұрын
Sir how to work phone number saving codes
@NextGen_automation
@NextGen_automation 8 ай бұрын
sir relay on off command responce error
@mesquitamk1681
@mesquitamk1681 Жыл бұрын
he sends warning sms when he calls by the button
@pookoye
@pookoye 2 жыл бұрын
How to keep the relay off even after the power failure or reboot?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
this feature is available in the project
@qassimbusari9039
@qassimbusari9039 Жыл бұрын
Does it mean when I change the phone length, there's something I have to change as well
@AhmadLogs
@AhmadLogs Жыл бұрын
it works perfectly on 13 digits phone numbers
@switage
@switage Жыл бұрын
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.
@AhmadLogs
@AhmadLogs Жыл бұрын
check serial monitor send me the output
@sunilbajar8070
@sunilbajar8070 9 ай бұрын
sir ji I want this code with dtmf and ATD on admin number
@user-nd1ol2vw9h
@user-nd1ol2vw9h Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
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.
@user-nd1ol2vw9h
@user-nd1ol2vw9h Жыл бұрын
@@AhmadLogs anyway, thanx for your video. It helps me a lot. Will continue to find code for my sim900
@souravchakraborty5695
@souravchakraborty5695 Жыл бұрын
The pogram is work properly. please add DTMF this pogram.
@AhmadLogs
@AhmadLogs Жыл бұрын
kzbin.info/www/bejne/fqKUi3qNjMhjm5Y
@Engineering_Designs
@Engineering_Designs Жыл бұрын
Am having issues to add remaining phone number apart from admin phone number
@AhmadLogs
@AhmadLogs Жыл бұрын
give me some more detail
@J.Navelo
@J.Navelo 11 ай бұрын
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
@AhmadLogs
@AhmadLogs 11 ай бұрын
will try soon
@Np_6425
@Np_6425 3 ай бұрын
can you please give us full codes? in comments?
@alperkaplan5400
@alperkaplan5400 2 жыл бұрын
sendstatus function is not working properly. It alwasy send relay* is ON sms even though i sent 3off command.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
hmmm. it required to update the code.
@yawarsaeed6499
@yawarsaeed6499 2 жыл бұрын
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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
will try
@yawarsaeed6499
@yawarsaeed6499 2 жыл бұрын
@@AhmadLogs ok, thanks
@Javedansari-yl6ts
@Javedansari-yl6ts Жыл бұрын
Is this any reason you use 3.7v external battery. why are you not use node mcu 3.3 volt pin..
@AhmadLogs
@AhmadLogs Жыл бұрын
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
@Javedansari-yl6ts
@Javedansari-yl6ts Жыл бұрын
@@AhmadLogs thanks..
@AhmadLogs
@AhmadLogs Жыл бұрын
@@Javedansari-yl6ts welcome
@Javedansari-yl6ts
@Javedansari-yl6ts Жыл бұрын
@@AhmadLogs can i also use LM317 voltage regulator ic From 5v supply for sim800l ..
@AhmadLogs
@AhmadLogs Жыл бұрын
@@Javedansari-yl6ts yes you can. just give it a try
@pookoye
@pookoye Жыл бұрын
Hi Ahmad, how to add if the dedicated button is pressed send an SMS message saying BUTTON PRESSED like a calling bell
@AhmadLogs
@AhmadLogs Жыл бұрын
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");
@pookoye
@pookoye Жыл бұрын
@@AhmadLogs no luck🙃
@pookoye
@pookoye Жыл бұрын
@@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
@pookoye
@pookoye Жыл бұрын
hi, got the chance to look into this
@vipinv8004
@vipinv8004 Жыл бұрын
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
@AhmadLogs Жыл бұрын
I will try to fix it
@dabhichandresh5955
@dabhichandresh5955 Жыл бұрын
Sir kya hum pawar on and send sms code add kar sakte he?
@AhmadLogs
@AhmadLogs Жыл бұрын
give me some more detail
@dabhichandresh5955
@dabhichandresh5955 Жыл бұрын
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 ..
@dabhichandresh5955
@dabhichandresh5955 Жыл бұрын
kzbin.info/www/bejne/gZOUe4htrNlke7M
@dabhichandresh5955
@dabhichandresh5955 Жыл бұрын
Ashi system banao jish se farmar ko aaram mile.
@alperkaplan5400
@alperkaplan5400 2 жыл бұрын
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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
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
@alperkaplan5400 2 жыл бұрын
@@AhmadLogs resetsin800l function is working when i power the system. İ use Arduino nano. İ think the problem is eeprom addresses.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@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).
@alperkaplan5400
@alperkaplan5400 2 жыл бұрын
Ok I'll try and let you know thanks
@alperkaplan5400
@alperkaplan5400 2 жыл бұрын
@@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
@lakshithasamaranayake7519
@lakshithasamaranayake7519 2 жыл бұрын
cant woking plz help
@nima1111
@nima1111 2 жыл бұрын
Hi, the video was great. Thank you. There was no code link in the description. Can you send me the code download link?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
github.com/ahmadlogs/arduino-ide-examples/tree/main/sim800l-reg-phone-v3
@mostafa-ke8kk
@mostafa-ke8kk 2 жыл бұрын
thanks
@AhmadLogs
@AhmadLogs 2 жыл бұрын
thank you too
@mhamadsalam7289
@mhamadsalam7289 2 жыл бұрын
I have Arduino nano if paste code working ?
@AhmadLogs
@AhmadLogs 2 жыл бұрын
yes, I will work like a charm.
@renjithcatek7435
@renjithcatek7435 2 жыл бұрын
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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
I have updated the code. please download the latest copy of the code
@renjithcatek7435
@renjithcatek7435 2 жыл бұрын
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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@renjithcatek7435 thanks, check and let me know
@renjithcatek7435
@renjithcatek7435 2 жыл бұрын
Sir, one request , updated code download link please .Thanks
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@renjithcatek7435 the same link in the description
@adlanhugo353
@adlanhugo353 Жыл бұрын
Dear Sir it is possible to add the timer function please thank you for the effort you are making
@AhmadLogs
@AhmadLogs Жыл бұрын
yes it is possible
@adlanhugo353
@adlanhugo353 Жыл бұрын
you can send us the enforcement code adding timer and call Thanks
@AhmadLogs
@AhmadLogs Жыл бұрын
@@adlanhugo353 I did not write it yet. I will soon make the version 4 of the project. and will try to add these features.
@AhmadLogs
@AhmadLogs Жыл бұрын
@@adlanhugo353 will try
@adlanhugo353
@adlanhugo353 Жыл бұрын
Please can you add me the code with the timer and call
@reshadnecefov8363
@reshadnecefov8363 Жыл бұрын
its work normal but need +DTMF
@AhmadLogs
@AhmadLogs Жыл бұрын
check this kzbin.info/www/bejne/fqKUi3qNjMhjm5Y
@manmangy
@manmangy Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
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.
@manmangy
@manmangy Жыл бұрын
@@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
@dabhichandresh6128
@dabhichandresh6128 Жыл бұрын
Hi sir .. I am request to make GSM bastard motor controller 3 phase motor in farm. Plzz make.
@AhmadLogs
@AhmadLogs Жыл бұрын
will try
@eerrfanshayyestehh2069
@eerrfanshayyestehh2069 Жыл бұрын
Hi my friend
@AhmadLogs
@AhmadLogs 11 ай бұрын
Have a nice day
@eerrfanshayyestehh2069
@eerrfanshayyestehh2069 11 ай бұрын
@@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?
@sorinmavrigu6221
@sorinmavrigu6221 2 жыл бұрын
Sir, please add the dialing function
@AhmadLogs
@AhmadLogs 2 жыл бұрын
hmmmm. will try
@engineer-e9h
@engineer-e9h Жыл бұрын
I want to add alarm system on same project. Is this possible???
@AhmadLogs
@AhmadLogs Жыл бұрын
give me some more detail
@engineer-e9h
@engineer-e9h Жыл бұрын
@@AhmadLogs please include push button for one click calling on digital pin 13
@AhmadLogs
@AhmadLogs Жыл бұрын
@@engineer-e9h will try in next version
@engineer-e9h
@engineer-e9h Жыл бұрын
@@AhmadLogs thanks 😊
@engineer-e9h
@engineer-e9h Жыл бұрын
Sir, please update this project…. I am waiting for your reply
@MohamedMohamed-kv5pw
@MohamedMohamed-kv5pw Жыл бұрын
Thank you, I follow your channel. Unfortunately, I did not find even one code that works. 😪😪
@AhmadLogs
@AhmadLogs Жыл бұрын
so sad. I try my best to provide the content that will work for my viewers. So any advice from you will be appreciated.
@alperkaplan5400
@alperkaplan5400 2 жыл бұрын
İ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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
will try
@yawarali4361
@yawarali4361 Жыл бұрын
Frind for admin register need send r or R fisrt ?
@AhmadLogs
@AhmadLogs Жыл бұрын
you either send r or R. both commands have the same function.
@yawarali4361
@yawarali4361 Жыл бұрын
@@AhmadLogs bt why not register i did but my number length 14 need change 13 to 14 only?
@engineer-e9h
@engineer-e9h Жыл бұрын
please include push button for one click calling on digital pin 13… i am still waiting for this project…
@AhmadLogs
@AhmadLogs Жыл бұрын
hmmmm.
@engineer-e9h
@engineer-e9h Жыл бұрын
@@AhmadLogs sir i am waiting for your reply
@AhmadLogs
@AhmadLogs Жыл бұрын
@@engineer-e9h I will add it in version 5
@engineer-e9h
@engineer-e9h Жыл бұрын
@@AhmadLogs i am waiting. I love your all work…. 💕 thanks 😊
@engineer-e9h
@engineer-e9h Жыл бұрын
Please sir….
@pookoye
@pookoye 2 жыл бұрын
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.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
please give me some more detail
@pookoye
@pookoye 2 жыл бұрын
@@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
@AhmadLogs 2 жыл бұрын
@@pookoye I have updated the code. download the latest copy of the code, test it yourself and let me know
@pookoye
@pookoye 2 жыл бұрын
@@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?
@pookoye
@pookoye 2 жыл бұрын
​@@AhmadLogs How to clear the SMS stored in the SIM, is there any code or command to do?
@user-dq9ud3bf5f
@user-dq9ud3bf5f Жыл бұрын
hi, how can send SMS when push buttons pressed!?
@AhmadLogs
@AhmadLogs Жыл бұрын
use in the loop() if(buttonPin == LOW){ Reply("Hello"); }
@user-dq9ud3bf5f
@user-dq9ud3bf5f Жыл бұрын
@@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
@AhmadLogs Жыл бұрын
@@user-dq9ud3bf5f can you give me the full detail about the issue.
@user-dq9ud3bf5f
@user-dq9ud3bf5f Жыл бұрын
@@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 .
@AhmadLogs
@AhmadLogs Жыл бұрын
@@user-dq9ud3bf5f can you share the code?
@user-ht2wo8xv9w
@user-ht2wo8xv9w 6 ай бұрын
Sir , please reply
@yawarali4361
@yawarali4361 Жыл бұрын
Friend please i want speak with u u how say with u
@yawarali4361
@yawarali4361 2 жыл бұрын
hello why code error not compile please
@AhmadLogs
@AhmadLogs 2 жыл бұрын
compile for arduino uno
@yawarali4361
@yawarali4361 2 жыл бұрын
@@AhmadLogs i did buterror please send phone number
@pablotorrea9901
@pablotorrea9901 Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
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]+";"); }
@pablotorrea9901
@pablotorrea9901 Жыл бұрын
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
@AhmadLogs
@AhmadLogs Жыл бұрын
@@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. } }
@pablotorrea9901
@pablotorrea9901 Жыл бұрын
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.
@pablotorrea9901
@pablotorrea9901 Жыл бұрын
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
@Graphic-Tech-Art
@Graphic-Tech-Art 2 жыл бұрын
Bro same process plz GPRS...
@AhmadLogs
@AhmadLogs 2 жыл бұрын
please give me some more detail
@keeper1855
@keeper1855 2 жыл бұрын
Lora ebyte please...
@AhmadLogs
@AhmadLogs 2 жыл бұрын
please give me some more details
@keeper1855
@keeper1855 2 жыл бұрын
@@AhmadLogs Lora ebyte E220 or E320 series with esp32 or esp8266 control relays by buttons for long distance.
@AhmadLogs
@AhmadLogs 2 жыл бұрын
@@keeper1855 OK I will try
@keeper1855
@keeper1855 2 жыл бұрын
@@AhmadLogs thanks
SIM800L Programming With Arduino - GSM Module Arduino UNO
12:07
Ahmad Logs
Рет қаралды 20 М.
New Blynk IOT Home Automation System with Security System
9:51
Ahmad Logs
Рет қаралды 11 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 114 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 21 МЛН
GSM Based Home Automation | DTMF Based Home Appliances Control
10:39
Just Do Electronics
Рет қаралды 2,9 М.
Arduino Geo Fencing with SIM800L and GPS Module
7:01
Ahmad Logs
Рет қаралды 26 М.
GSM RELAY Control from  Registered Number Call
11:46
Saravanan AL
Рет қаралды 39 М.
How to Use SIM800L With Arduino
9:55
Ahmad Logs
Рет қаралды 60 М.
LESSON 28: Tutorial for Programming Software Interrupts on Arduino
25:14
NodeMCU ESP8266 Blynk IOT with SIM800L using Blynk App and SMS
10:31