Control ESP32 and ESP8266 GPIOs from Anywhere in the World

  Рет қаралды 215,594

Rui Santos

Rui Santos

Күн бұрын

For complete project details (schematics + source code), visit ► RandomNerdTutorials.com/contr...
Hosting Account + Free Domain Name ► RandomNerdTutorials.com/blueh...
Learn how to control your ESP32 or ESP8266 GPIOs from anywhere in the world. This can be very useful to control a relay, a thermostat, or any device remotely. This project is also very versatile, through your cloud dashboard you can easily control more outputs (without uploading new code to your board) and you can even connect multiple boards to your server.
RELATED PROJECTS:
Gauges for Cloud Weather Station: RandomNerdTutorials.com/cloud...
Charts/Plots to Display Sensor Readings: RandomNerdTutorials.com/visua...
Tables to Display Sensor Readings: RandomNerdTutorials.com/esp32...
Send Email Notification with PHP: RandomNerdTutorials.com/esp32...
Like my page on Facebook:
/ randomnerdtutorials
Follow me on twitter:
/ ruisantosdotme
Subscribe for more projects like this!
bit.ly/subscribeRNT
#ESP32 #ESP8266 #Arduino

Пікірлер: 174
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
You can find the complete project details (schematics + full source code) on my blog ► RandomNerdTutorials.com/control-esp32-esp8266-gpios-from-anywhere/ For this project, you'll need a hosting account with PHP and MySQL. You can use any hosting provider. I recommend using Bluehost and you can use this link to setup a Hosting Account + Free Domain Name ► RandomNerdTutorials.com/bluehost/
@ugopiazza5391
@ugopiazza5391 4 жыл бұрын
Thanks great video!! Please make a video that show how we can see a esp32cam video streaming in a webserver from anywere Thank you sm
@AndersJackson
@AndersJackson 4 жыл бұрын
Would have used XMPP or MQTT or other message service instead of polling the web server. Nicer api to program to. :-) XMPP are also better as it has protocols to handle many sources/users to handle the device. And yes, XMPP are secure, so you don't need to handle that in your software. Anyways, a cool project.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
@@AndersJackson I know and in the future, I'll show a very similar project with MQTT in the cloud (running your own broker). I know that a lot of my readers/viewers already have hosting accounts that have PHP+MySQL and with that setup that's only way of controlling the ESP outputs.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
@@ugopiazza5391 Thanks for the project suggestion! I definitely have something like that planned
@patjohn775
@patjohn775 3 жыл бұрын
If you were going to setup a wifi relay device for your dad that needs controlled from internet (not local) what would you use? Blynk and auto connect? That’s what looks populat
@Excalibur32
@Excalibur32 Жыл бұрын
This is precisely the type of tutorial I was looking for. Thank you so much.
@Southghost5997
@Southghost5997 2 ай бұрын
Always enjoy your tutorials!
@colinrogers9927
@colinrogers9927 3 жыл бұрын
This is really cool. I would like to learn how to use this same technique to turn on and off a small servo motor. Do you have any tutorials on that?
@peetariki342
@peetariki342 4 жыл бұрын
Thank a lot bro! I was waiting for this.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks for watching!
@stevemiller995
@stevemiller995 4 жыл бұрын
Happy to see your new posting. Thank You. I have watched "all" your videos and have studied your examples prtaining to the ESP8266 and/or ESP32. I knew little before I found your videos. Now, I have a remote weather station web server in my chicken coop... and am working towards bigger things with far more data to manage, transmit, manage some more, view and control the Arduino "pins" or "settings" remotely. I would not be where I am without your help. Glad to see this new post.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
I'm glad you found it helpful Steve! Thanks for following my projects
@aofddofa6661
@aofddofa6661 4 жыл бұрын
@@RuiSantosdotme me too ... exact story >> no i can remotely start my engine :) thanks to you Rui
@PeterMisovicProfile
@PeterMisovicProfile 3 жыл бұрын
Thank you for your videos, worth to follow!
@RickB3n
@RickB3n 4 жыл бұрын
Great tutorial, thank you. After i created my website with WordPress, i have another four empty mysql database form my hosting. And your project is perfect for this. Greetings from your italian fan.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks for following! I'm glad you found an application using this project!
@AhmedElWakil7
@AhmedElWakil7 3 жыл бұрын
thank you for this video i was highly waited for i have question regarding can i combine this method with the local server u did in other videos? so it will be a lot faster on local network & can be remotely controlled thank you in advance
@ibefilmin
@ibefilmin Жыл бұрын
Exactly what I needed to know. I owe you one Mr Santos!
@RuiSantosdotme
@RuiSantosdotme Жыл бұрын
Glad it was helpful!
@karbalanetwork110
@karbalanetwork110 3 жыл бұрын
Thanks buddy for the push❤
@cizainnocent8392
@cizainnocent8392 2 жыл бұрын
This is a nice project. Thank you so much. Could do you please make it simple by using one ESP board and fixed pins to control Relays from anywhere over the internet?
@FilmFactry
@FilmFactry 4 жыл бұрын
Such great stuff. It amazes me how cheap these things are and how useful. I'm using several on a Robot project!
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
I feel the same, there are endless of possibilities with these inexpensive sensors and boards.
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
same here lol
@r.muruganr.murugan1101
@r.muruganr.murugan1101 3 жыл бұрын
It is very good project it is working fine same like you can upload esp8266-01 with atmega328 same like database webserver from anywhere thank you for your good project
@Minecraftg080
@Minecraftg080 3 жыл бұрын
Thank you for this video!! What if I want to change it to a momentary switch instead of a toggle switch?
@ticmania2361
@ticmania2361 4 жыл бұрын
Muito bom. Parabéns pelo excelente trabalho.
@yawarsaeed6499
@yawarsaeed6499 4 жыл бұрын
Thanks for sharing such an awesome project. Can you please add Physical Push Button Switches to the existing project with Status feedback in order to use the same functionality in absence of internet connectivity. Awaiting your earliest response.
@mareksukup9592
@mareksukup9592 4 жыл бұрын
Nice!!!! Thank you for this example project
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
You're welcome! Thanks for watching, I'm glad you found it helpful
@contactkiller7466
@contactkiller7466 6 ай бұрын
Amazing explanation that you have gave in the video this is really helpful for me
@CrazyEngineerAmit
@CrazyEngineerAmit 2 ай бұрын
Nice project 👍👍 it's working well
@woolfy02
@woolfy02 Жыл бұрын
Really cool project!
@sirisaacnewtonsc
@sirisaacnewtonsc 4 жыл бұрын
Great video, thanks a lot for sharing your knowledge.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
You're welcome! Thanks for watching
@IOTechBugs
@IOTechBugs 4 жыл бұрын
We can use mqtt also right.. more robust and reliable way for peer to peer communication
@brunowolfpack6767
@brunowolfpack6767 2 жыл бұрын
Top ! Valeu ! Muito bom seu blog !
@megatrong8161
@megatrong8161 4 жыл бұрын
Great detail video! Does this works for only local? Using ip address...thanks
@shakerileiwat4341
@shakerileiwat4341 4 жыл бұрын
Awesome project , love you man
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
You're welcome! Thanks for watching
@hectorquintero6594
@hectorquintero6594 3 жыл бұрын
Thank you very much This helped me a lot
@GizmoGuy620
@GizmoGuy620 2 жыл бұрын
Great project! I was wondering if I can access the ESP8266 remotely away from my home WIFI network? Possibly as a server with it's own IP? Any help in this area would be helpful.
@yp4577
@yp4577 Жыл бұрын
Very cool project. Does it also work with the ESP32 camera module?
@hattabunan
@hattabunan Жыл бұрын
nice video sir, regarding your video Can the tutorial be implemented on stepper motors too? Thank You
@rafaelestevao8140
@rafaelestevao8140 Жыл бұрын
Good afternoon! Can you put a physical button and the state of the button change on the site, in this project?
@sinazenaliy3044
@sinazenaliy3044 3 жыл бұрын
Hi, I had a question. Do you know a resource for html training that uses esp? Thanks
@angelarmandoolveragonzalez8124
@angelarmandoolveragonzalez8124 Жыл бұрын
Hello, I really like your videos and they have helped me a lot. I have learned a lot with your videos. But could you make one using an ultrasonic sensor, an ESP8266 and some distance away that triggers an alarm and pops up an alert or something please. it would help me a lot
@petechnology2775
@petechnology2775 3 жыл бұрын
Good morning sir, I very glad to see this project, I perform this project and it ran very well, But sir can you make this same project with two way communication, Plz sir make same project with two way communication,(physical button remote side feed back from )
@MadeniTurkey
@MadeniTurkey 4 жыл бұрын
Hello Ruis great video, greetings from Belgium, is it possible to make a video with the ESP32Cam with video and remote control of devices like relay or lights so you can see remotely if the device works like a garage-door opening on your remote camera at the same time
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
I have something like that planned, but I still need to complete some parts of that project. Thanks for the suggestion!
@felixzhu7064
@felixzhu7064 4 жыл бұрын
Can you build smart timer using ESP8266 with the interval that can be control over internet?
@amir_eshaqy
@amir_eshaqy 2 жыл бұрын
Can the recorded image from (esp32-cam) be displayed globally? Like this video where outputs can be controlled from anywhere in the world thank you
@KPDMadhuka
@KPDMadhuka 2 жыл бұрын
Thanks Rui, please explain how to add SSL encrypted web address as the server name
@penampal
@penampal 11 ай бұрын
Thankyou sir. i want to change button size. which part of .php can I edit?
@penampal
@penampal 11 ай бұрын
Terimakasih banyak tuan 🎉🎉🎉
@karaday
@karaday 2 жыл бұрын
does this same method of a get requests every second is followed by Big Giants like ewelink, sonoff switches?
@jithin7822
@jithin7822 4 жыл бұрын
Can u tell me how to view the video from esp32 cam board from anywhere in the world...
@negrowoki6590
@negrowoki6590 3 жыл бұрын
Thanks for this video... I have a question... Is there any way to control the ESP8266 via internet without using DB, i.e connect the web page to the board directly?
@jeevannikam8977
@jeevannikam8977 2 жыл бұрын
you can use AWS things and shadows, it provides you the direct connection in between nodeMCU and your app.
@petechnology8382
@petechnology8382 3 жыл бұрын
Plz sir make same project for two communication, Means control light from computer as well as from physical button with live status
@Hennesii
@Hennesii 4 жыл бұрын
Hi! I am trying to control an ESP8266 based modified car, from my PC. I want the car to connect to the building Wifi and I want to connect to the car from my PC via IP address or Mac address. is this possible? Could you help me please? I'm new to arduino
@PenuDjira
@PenuDjira 2 жыл бұрын
Oh Brother. Thank you So Much
@Noobgirl9
@Noobgirl9 3 жыл бұрын
Your explanation is the best in the world. I learn alot from you. Many people in youtube just copy paste without explanation. Thank you. Wish to see and learn more from you.. 💖
@johnpauldavid9626
@johnpauldavid9626 3 жыл бұрын
Hi! Can i ask if how many module can handle esp 32 is?
@cameronlucas6004
@cameronlucas6004 2 жыл бұрын
I would like to send messages to a display. Is this possible using the same idea in video?
@mas11ful
@mas11ful 6 ай бұрын
I have a patent on a train car,. I want to control the motor from my IPhone and want to see speed and current on the display. I also want to be able to load the webpage directly from the esp32. Will your book show how to do this?
@iiitantech5635
@iiitantech5635 3 жыл бұрын
Can we use esp32cam like this. I want connect esp32cam for live streaming and photos from anywhere. Like this I want to make a html page for live streaming and capture pic. Please make a video and create a html page and write mysql script and connect esp32cam with web.
@atlaskaiser9951
@atlaskaiser9951 2 жыл бұрын
in minute 1:47 what software did you use to display that schematic?
@mrxfin
@mrxfin 2 жыл бұрын
Hi, any server side tutorial?
@tookieasd
@tookieasd 26 күн бұрын
Hi 😊. it works the other way around, when turned ON on website it means its turned off on my esp where can i change it ?
@computerhouse9979
@computerhouse9979 2 жыл бұрын
Sir how to control this from any way if I'm far from my network is not working so what setting we used to operate from any way
@tecnovlogger
@tecnovlogger 4 жыл бұрын
Great project
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks!
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
Can this only work with HTTP websites and not HTTPS?
@f0xvibes
@f0xvibes Жыл бұрын
is it posible to shutdown the wlan access point, after a gpio was switch one time? i dont want the wlan beeing visible after gpio was switched. it would also be usefull for me if the AP is only visible for 30 seconds after reboot esp, when no gpio switched it should power of the AP. Is this all possible with esp?
@sandryseibert
@sandryseibert 3 жыл бұрын
Something really annoying is happening on my controller. For some reason it's turning ON and OFF without me doing anything. Currently I'm just playing with it on a local network, I have not mapped the port to the internet, so something on my network is frequently accessing the ON or OFF link, or the ESP32 is doing that alone.
@ahmedlz9495
@ahmedlz9495 2 ай бұрын
what if i only need a push botton that means the LED will only lit when i hit the push bottom...do i still need the database ?
@Fixec
@Fixec 4 жыл бұрын
Can you show us how to make multi user server please. With private devices
@yawarabbas9228
@yawarabbas9228 Жыл бұрын
Plz guide me I want to control my office AC from my home so before going to office I can on it and when I reached office it already cooled down the office room.
@bukanultraman789
@bukanultraman789 4 ай бұрын
How many led we can handle with this controller?
@falahoudinesaid6973
@falahoudinesaid6973 3 жыл бұрын
Nice project but sir this can i controle any whare am i ?? Or just local area ?
@bazneshastegi_matlub
@bazneshastegi_matlub Жыл бұрын
Dear rui I have a question why after too many pages in english in your site you use tts ?
@JonCherba
@JonCherba 2 жыл бұрын
Will this work with an arduino mega as well?
@piuselectronics5707
@piuselectronics5707 3 жыл бұрын
Can this work with I2C
@yojithkr17
@yojithkr17 Жыл бұрын
Will this work with esp01?
@javierpallalorden
@javierpallalorden 3 жыл бұрын
Excellent
@Dhruvstar_4
@Dhruvstar_4 8 ай бұрын
How did everyone make the website?
@LUCKY007725
@LUCKY007725 3 жыл бұрын
Nice job Why not to make an app which can connect to devices instead of using domain name... And also can we make the view looks like blynk app...
@khalillachraf5175
@khalillachraf5175 Жыл бұрын
Amazing work could make code for ttgo t call esp32 sim 800l with GPRS please and thank you
@quickfixengineeringltd8035
@quickfixengineeringltd8035 3 жыл бұрын
Hello. Please answer this quickly. Can't I use google drive to create the database. Anyone can show me how to do that
@vasurangpariya8492
@vasurangpariya8492 3 жыл бұрын
How can i control my projects over internet without blynk or any app
@maxid87
@maxid87 4 жыл бұрын
Sounds like M2M protocols like MQTT would be a better fit than using http get requests
@dwalden74
@dwalden74 3 жыл бұрын
What is the difference between WiFi.softAP() and WiFi.begin()? The Arduino ESP examples all use WiFi.begin(), but only WiFi.softAP() works for me :((
@AirmaxPneumaticsLTD
@AirmaxPneumaticsLTD 4 жыл бұрын
can i use Google firbass
@NishantjonyJaiswal
@NishantjonyJaiswal 4 жыл бұрын
Very Nice.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks!
@rodo19724
@rodo19724 2 жыл бұрын
Seasons greetings from Argentina !!. I need help. I used your project ESP32-web-server-microsd-card, i made a web page , all files are on the SD, and Would like to send, from a text area + a "send" button, and send a string to the esp32, and then, sp32 will receive that string , just that, text area or form, and a send button, receive the string on the esp32, and do something with that string, like """if string== ''lights out" do something. I hope you understand.v Thank you !!!
@osamadz5884
@osamadz5884 4 жыл бұрын
Great work dude
@ozzloy
@ozzloy 4 жыл бұрын
looks like fritzing
@osamadz5884
@osamadz5884 4 жыл бұрын
@@ozzloy ok ty
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Yes, I've used Fritzing and for the project overview I've used Photoshop + Powerpoint
@osamadz5884
@osamadz5884 4 жыл бұрын
@@RuiSantosdotme ok ty
@ehsanerfanian8693
@ehsanerfanian8693 2 жыл бұрын
you are really awesome :)))))))
@Dhruvstar_4
@Dhruvstar_4 8 ай бұрын
Is this Port fowarding?
@rasmusjansson751
@rasmusjansson751 6 ай бұрын
Great project man! I know it was some time ago you did this, but I have a small issue. Everything works, BUT it taking my ESP-board 45-60min to "see" that the JSON have been changed. If I go to the web-page an look at the string I get for example {"4":"0","2":"0"}, then on the "output control page server " I change the button to "ON", then go to the web-page the ESP-board looking to again, and the string itself updates directly to {"4":"1","2":"0"}, but also having an eye to the seriell monitor and that one keep repeating the "JSON object = {"4":"0","2":"0"} " for like 60min and then from nowhere it change to "JSON object = {"4":"1","2":"0","53":"0"}" and turn on my led . It seems not doing this randomly, but mirror the button position, but it takes 60min. Any thoughts what the issue could be?
@Dwi.P4
@Dwi.P4 10 ай бұрын
Can use only esp8266 sir?
@dienau6313
@dienau6313 Жыл бұрын
is there any webserver free in this project?
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
@RuiSantosdotme I pasted in all of the php files and replaced the value in "esp-database.php" with the values of my Database but Instead of "esp-outputs.php" displaying, it just says "Connection failed: No such file or directory". I was looking at the code of that file and when I removed the initial php code block, the html portion of it showed. So IK it has something to do with that. Idk if there's any other bits of code I'm missing or if there is something p with my database. If anyone else knows whatsup some help would be appreciated
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
I was using InfinityFree for teh hosting and I read that they don't allow Javascript on the back end so I think that had something to do with it
@RaptorRotorHead
@RaptorRotorHead 2 жыл бұрын
If you have your own Web server and write scripts one does not need iot cloud, is that a fair statement?
@noweare1
@noweare1 Жыл бұрын
Yes, you mean the esp32 acting as a server ?
@RaptorRotorHead
@RaptorRotorHead Жыл бұрын
@@noweare1 desp transmits to the wireless in my house and that transmits to my server where I have scripts running that can decode information and display it on a web page that can be read on any phone that runs a web browser
@nikhilsahani2000
@nikhilsahani2000 4 жыл бұрын
awesome
@carlos.galhano
@carlos.galhano Жыл бұрын
Como posso saber o SSD e o IP?
@ABCshake
@ABCshake Жыл бұрын
Paying for hosting and a domain name can be expensive. Using port forwarding using ngrok or using a cloud solution with blynk would be a cheaper option.
@Fitboy_hubli
@Fitboy_hubli 3 жыл бұрын
Dear sir, Make a flight controller from with esp32 development board to controller drone from wifi.
@yojithkr17
@yojithkr17 Жыл бұрын
Does ESP8266 need internet connection?
@fvgoya
@fvgoya 4 жыл бұрын
Like before watch...
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks for watching!
@wei48221
@wei48221 4 жыл бұрын
Nice.
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Thanks!
@heikosoeder
@heikosoeder 4 жыл бұрын
Vpn and u can controll the relay too and save.
@peachville4383
@peachville4383 4 жыл бұрын
Can anything be done about the huge delay time between request and action?
@raybright5805
@raybright5805 4 жыл бұрын
Some host sites may not want too many transactions & will close you down
@peachville4383
@peachville4383 4 жыл бұрын
@@raybright5805 damn web police....lmao
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
You can lower the request delay, but I would personally leave it at least 5 seconds interval (specially if you have many boards connected to your server).
@blogactivities5462
@blogactivities5462 2 жыл бұрын
read my comment
@jak12345612
@jak12345612 4 жыл бұрын
Can you solve ,How to use Wifimanager + webserver .
@RuiSantosdotme
@RuiSantosdotme 4 жыл бұрын
Unfortunately I don't have any tutorials on that exact subject...
@somebody-17546
@somebody-17546 4 жыл бұрын
How to reduce time delay
@JenteVanCampenhout
@JenteVanCampenhout 4 жыл бұрын
My esp goes into sleep mode after 1h. Help plz.
@comic-typ5919
@comic-typ5919 6 ай бұрын
wooah he IS rui santos D:
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Рет қаралды 257 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
Home Automation via HTML page on ESP32 or NodeMCU board
22:30
techiesms
Рет қаралды 52 М.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 629 М.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 515 М.
Control ESP32 from ANYWHERE in the World - Step-By-Step Tutorial
1:48:57
Tomasz Tarnowski
Рет қаралды 71 М.
Port Forwarding your IoT Projects
7:34
techiesms
Рет қаралды 45 М.
ESP32: Webserver, Websockets and JSON (WiFi Part 2) - Arduino
35:17
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 1,9 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 2,5 МЛН
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,9 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1 МЛН
Сколько реально стоит ПК Величайшего?
0:37