Control a Relay From Anywhere Using the ESP8266

  Рет қаралды 142,591

Makecademy

Makecademy

Күн бұрын

Пікірлер: 151
@openhomeautomation
@openhomeautomation Жыл бұрын
Hope this video was useful for you! I would love to hear what you think about it in the comments :)
@alexjames6747
@alexjames6747 6 ай бұрын
Have you tried it? Does it work? Really?
@alexjames6747
@alexjames6747 6 ай бұрын
Doesn't compile. cannot covert "String" to "char" in initialization. char* out_topic = arestVar.get_topic(); Even if it compiles, what it should DO?
@timjackson6467
@timjackson6467 7 жыл бұрын
Great vid thanks learned much - sadly cloud esp8266 sketch will not compile?
@Pencilart435
@Pencilart435 5 жыл бұрын
Thanks for the video, but please tell what if we have more appliances to connect?
@vasil-yt
@vasil-yt 5 жыл бұрын
Hey I really need help with an issue i have. *So here is the problem.* The sketches (doesn't matter which) I upload will go uploading till a 100%. After this the sketch does NOT do anything at all. I tried an empty sketch with just Serial.PrintIn("Working!") in the loop command, but no response. I get no errors while uploading, it just goes to a 100% and says done uploading. *My setup* Adruino IDE NodeMCU ESP8266-12E All settings checked multiple times and changed but that did not solve the problem. While uploading the light flashes till its done. I hope ANYONE knows what this is or does. I got mine from China and i'll probably have to ask to get my money back.
@gibo588
@gibo588 7 жыл бұрын
Hey guy do you have to set any port to open on your router for this?
@hagensiekerj
@hagensiekerj 8 жыл бұрын
How would you make it control a 2nd relay? My intention is to make a 2 plug outlet box. Great tutorial! I did it and it works perfectly.
@brock335
@brock335 7 жыл бұрын
super! i want to send sensor data wirelessly to esp8266 and trigger relay when a sensor value condition is true.. is it possible??
@VINSMOKExOSKI
@VINSMOKExOSKI 2 жыл бұрын
Great video as always!
@grantforest1553
@grantforest1553 8 жыл бұрын
Great video so when ahead and built it. Everything works OK. But when I reset the ESP (switch off then on again) I am unable to switch the relay. Is there a way of automatically reconnecting to aRest? so that I do not have to manually get into the aRest dashboard each time I power off.
@hector2g299
@hector2g299 5 жыл бұрын
Hello, how can i do to get its own wifi signal from de esp3266 ó 8266 ? since gonna install it in my car to start it via cellphone?
@bobarry8167
@bobarry8167 7 жыл бұрын
Nice. Just got your book. Still learning. Didn't know about the dashboard - W4GHV since '54
@mountainfanatic
@mountainfanatic 8 жыл бұрын
Please make a LCD display (20x4) for MQTT topics and also an OLED display for MQTT topics, those two project would be really needed and appreciated.
@TheRealBobHickman
@TheRealBobHickman 8 жыл бұрын
Nice video. Does the relay board have a diode for reverse EMF protection? If not, it could potentially damage the ESP8266 when the relay is turned off.
@openhomeautomation
@openhomeautomation 8 жыл бұрын
The one I use does indeed have a protection via a diode.
@TheRealBobHickman
@TheRealBobHickman 8 жыл бұрын
Good to know. not obvious from the video.
@Labtronicchile
@Labtronicchile 8 жыл бұрын
thank you so much! for this video!! what purpose have the number five , is a delay by 5 seconds ?
@SteinErikDahle
@SteinErikDahle 8 жыл бұрын
Victor morales delgado, no. "5" refers to pin no 5.
@Labtronicchile
@Labtronicchile 8 жыл бұрын
Stein-Erik Dahle thank you :)
@lpfigue
@lpfigue 4 жыл бұрын
Hi, does it use a secure connection?
@sushilshrestha5903
@sushilshrestha5903 7 жыл бұрын
really interesting projects and i want to know that how the device is connected and communicating through different wifi or interner???
@bh-db2rp
@bh-db2rp 7 жыл бұрын
Hi, this is very interesting, and I was able to build something similar; my main question is about the power. If we want to put this installation somewhere we need to get power for the ESP and power for the relay, or for the device driven by the relay. how can we set up something with power for both ? thanks
@openhomeautomation
@openhomeautomation 7 жыл бұрын
For the ESP you'll need some external USB power adapter that you can plug to the mains electricity
@Kenneth548
@Kenneth548 4 жыл бұрын
Thanks for your tutorial on project ESP8266 control relay from anywhere. I found problem in uploading code as the message say " 'class a Rest' has no member named 'get topic'. Please can you help ?
@openhomeautomation
@openhomeautomation 4 жыл бұрын
Hi, make sure to update all the libraries to their latest versions we did a lot of changes recently
@GentleStrangerOhOh
@GentleStrangerOhOh 5 жыл бұрын
Thanks for this tuto! However the dahsboard.aRest.io user interface has changed and one cannot define the device ID, since it is an empty pick list!! That do not allow to enter any text with the actual device ID!!! No device ID no system working!!
@luisfernandofragosocarranz1526
@luisfernandofragosocarranz1526 4 жыл бұрын
how did you fix that?
@marcialbarroga4772
@marcialbarroga4772 4 жыл бұрын
exactly. Blynk is the best
@SoumilShah
@SoumilShah 8 жыл бұрын
HELLO SIR i have a doubt what about the device id it has be user defined i mean we have to enter manually ? any id ? or what is it ?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
+Soumil Shah Hey! It means you can enter anything you wish, it's just a way of identifying your device on the network :)
@diegorgzm
@diegorgzm 6 жыл бұрын
Thanks for the video! Could you tell me if it's possible to control an ESP8266 in the air? (whitout router or real WiFi), I mean the ESP8266 can 'create' a network WiFi and also recieve and send data?
@FrankP83
@FrankP83 8 жыл бұрын
is possible to send on/off using a dashbutton from amazon!?
@SoumilShah
@SoumilShah 8 жыл бұрын
Hey there just want to thank you for creating videos We learned a lot from you
@sandychatterjee7457
@sandychatterjee7457 8 жыл бұрын
I am using a nodemcu board but since the power output is 3.3v it just power up the relay and also cant turn on the relay what is the solution ?
@amrutamagdum228
@amrutamagdum228 7 жыл бұрын
hi we tried the same project our WiFi get connected but there problem like connection to mqtt failed try after 2 min can suggest me plz what go wrong ?
@kingsukmajumder9970
@kingsukmajumder9970 7 жыл бұрын
Hi, Can you please discuss about the aREST library that you have written? I know the concepts would be a bit advance for most of the people but that would really help and understand it better for web and mobile application developer like me. Would wait for your next video. Thank You.
@fasihzafar7423
@fasihzafar7423 7 жыл бұрын
can you explain how to operate the 5v relay over nodemcu.(without logic level converter or npn trasistor) Because nodemcu gpio output is 3.3volt
@fasihzafar7423
@fasihzafar7423 7 жыл бұрын
tried many times,but didn't work.
@sandrofilho7063
@sandrofilho7063 7 жыл бұрын
didnt work for me too
@jatinkathuria6102
@jatinkathuria6102 8 жыл бұрын
I am working on the same project as of yours but i wanted to know how to connect various esp 8266 to each other in master slaves? (1:N) configuration?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
+Jatin Kathuria Check my blog for more projects with the ESP8266 :)
@nadaalabdulelah8006
@nadaalabdulelah8006 6 жыл бұрын
from where do we get the device id ??
@yasaswinikovela3367
@yasaswinikovela3367 6 жыл бұрын
can u explain the same using thingspeak.
@bernaduslokaputra
@bernaduslokaputra 6 жыл бұрын
Hi there, thanks for your tutorial. But, I want to ask you. What is different your device with nodemcu? I tried your tutorial with nodemcu but doesn't work
@sr5u
@sr5u 5 жыл бұрын
bernadus lokaputra same for me
@samot56498
@samot56498 4 жыл бұрын
@@sr5u Hey, maybe you find solution?? For controling relay with NODE MCU?
@WhiteysWickedWorkshop
@WhiteysWickedWorkshop 8 жыл бұрын
Awesome video. Thanks for taking the time to show the world your knowledge. Its truly appreciated.
@kristophersean2747
@kristophersean2747 3 жыл бұрын
you probably dont care at all but does someone know of a tool to get back into an instagram account..? I somehow lost my login password. I appreciate any assistance you can offer me!
@ishaancurtis620
@ishaancurtis620 3 жыл бұрын
@Kristopher Sean instablaster =)
@ridwan1472
@ridwan1472 7 жыл бұрын
can you help?. its saying (Invalid library found in C:\Users)
@clientesym
@clientesym 8 жыл бұрын
newbie here, parts list and url? btw can I use esp8266 board to control different relays wirelessly?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
Check the corresponding article on our website :)
@douglasthomson2986
@douglasthomson2986 5 жыл бұрын
Fabulous. Thanks for this. Just what I was looking for. Subscribed!
@djjjozsi
@djjjozsi 4 жыл бұрын
hello! after watchin n+1 WIFI solution, this helped me a lot to understand the internet controlling thing. thank you!
@asheshsinha6684
@asheshsinha6684 8 жыл бұрын
can i use Adafruit Feather HUZZAH with ESP8266 WiFi instead>?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
+ashesh sinha Sure thing!
@rc4625
@rc4625 7 жыл бұрын
Is there a way of setting this up like that but controlling the relay from a python script on a raspberry pi instead of a webpage?
@openhomeautomation
@openhomeautomation 7 жыл бұрын
Sure, that will work with Python as well!
@liminni9633
@liminni9633 7 жыл бұрын
many thanks it works, but i click off LED on, ?
@vikitapes1170
@vikitapes1170 8 жыл бұрын
The maximum digital output from a ESP module is just 3.2 volt and 30 mA and how does it turn ON a Relay of Coil Voltage of 5V ? any technical answer for this ?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
Works just fine on this relay at least :)
@vikitapes1170
@vikitapes1170 8 жыл бұрын
Okay but there must be a Technical explanation for this . are you sure there was no transistor in the Relay Module your were using ?
@SteinErikDahle
@SteinErikDahle 8 жыл бұрын
Raja Vigneshwaran, most relay-modules controls the relay via an optocoupler to separate it from any dangerous voltages.
@craigminca7446
@craigminca7446 8 жыл бұрын
great video mate. thanks, your tutorial makes it so much easier.
@craigminca7446
@craigminca7446 3 жыл бұрын
@Justice Sutton you just hacked your friend? Wow!! Who needs enemies.
@PrcuisaDExsa
@PrcuisaDExsa 7 жыл бұрын
what if the relay two or more? thanks before
@nicotinte5832
@nicotinte5832 8 жыл бұрын
will it work with a ceiling light that need 220v to work? thanks!
@davidpodeszwa7010
@davidpodeszwa7010 8 жыл бұрын
If you get some relay able to switch this high voltage you could prooably control your light
@swapneelsukhdani6746
@swapneelsukhdani6746 5 жыл бұрын
@ Can you show this video with app control.. control home devices anywhere in world using app
@mcgamingproyt
@mcgamingproyt 8 жыл бұрын
Is there a way to control this with siri via homekit, but without the use of a homekit server in between ?
@openhomeautomation
@openhomeautomation 8 жыл бұрын
That'd be difficult in my opinion, but with a server running on a RPi in the middle that should be no problem !
@mcgamingproyt
@mcgamingproyt 8 жыл бұрын
can a RPi Zero be used or any other cheaper Pi alternative ?
@davidpodeszwa7010
@davidpodeszwa7010 8 жыл бұрын
I think you could run Tcp server on ESP, connect to it and control it with some own made protocols
@mcgamingproyt
@mcgamingproyt 8 жыл бұрын
oh ok, I have ordered a Pi Zero to be sure
@rafaelrangelszillat3802
@rafaelrangelszillat3802 8 жыл бұрын
Hi, congratulations for this video, but i have some questions. I tried to conect with my ESP8266-12E, uploading direct from my PC the code in the microcontroler. But it dosen't work. When I upload the code and press rst comes this error in monitor serial comes this error: häüȤlìÉã¤$0xølb8ÉüÿŠH�lèˆhl$�y2xÍú................................................. (the points dosn't stop coming) and nothing more. This result that i can't conect in aREST. Did you know what i should do to fix it? thanks for your attention
@hamzakhalid2957
@hamzakhalid2957 8 жыл бұрын
Rafael Rangel Szillat change your esp module it may b an error
@MrBobWareham
@MrBobWareham 6 жыл бұрын
Thanks for the video I have joined your channel in the hope that I see a project similar to the one I want to do that is 8266 door sensor with an indicator on my phone so when I am in the workshop I know when the post arrives, any suggestions?
@openhomeautomation
@openhomeautomation 6 жыл бұрын
Hi Bob, thanks! I recommend checking our website for more projects: openhomeautomation.net/
@MrBobWareham
@MrBobWareham 3 жыл бұрын
@@openhomeautomation I tried your link above but just get an error not able to connect Thanks, Bob
@victorramos6393
@victorramos6393 6 жыл бұрын
dude you are amazing, it worked very well
@openhomeautomation
@openhomeautomation 6 жыл бұрын
Thanks!
@swathivinod
@swathivinod 7 жыл бұрын
Very informative. Thank you for posting this video.
@ParrudoRicardo
@ParrudoRicardo 8 жыл бұрын
i followed every step and the program uploads but when i it the reset and monitor the status only crazy symbols appear in the screen and they go on forever tried many times over and always with the same result :/
@SteinErikDahle
@SteinErikDahle 8 жыл бұрын
Ricardo Vieira, try changing the bps-rate (bits pr second or Baud). It'll mostly likely be 115200 bps, but sometimes other bps-rates are used.
@ParrudoRicardo
@ParrudoRicardo 8 жыл бұрын
Stein-Erik Dahle thank you I will try that
@billfield8300
@billfield8300 8 жыл бұрын
Thanks for the video. you made this look very simple and easy.
@benjaminwright4612
@benjaminwright4612 8 жыл бұрын
could you do this with multiple relays and control which one turns on or turns on a sensor also if you were to do this how would you receive the data that the sensors collect via wifi or Bluetoothh
@openhomeautomation
@openhomeautomation 8 жыл бұрын
Sure, that will work fine for multiple relays, and you could also use the same project to collect data from sensors
@benjaminwright4612
@benjaminwright4612 8 жыл бұрын
thank you so much for answering my question i halve had a hard time find a way to make a resonably cheap home autamation systom a milion thank yous
@ravichudgar
@ravichudgar 8 жыл бұрын
while compiling its show error that "exit status 1 Error compiling for board Generic ESP8266 Module." please send me solution
@SNSBUILDINGSOLUTIONSKurnool
@SNSBUILDINGSOLUTIONSKurnool 7 жыл бұрын
same problem please help
@timjackson6467
@timjackson6467 7 жыл бұрын
Same problem - cant even compile
@gabrielback3891
@gabrielback3891 6 жыл бұрын
hey thanks love it
@volpeta
@volpeta 7 жыл бұрын
I am using Esp8266-12e when debugging I am geting : exit status 1 Error compiling for board NodeMcu 1.0 esp-12E Module Vive la France
@MountainNZ
@MountainNZ 8 жыл бұрын
Great resource, hard to find something that will do this.
@RameshwarTalwar
@RameshwarTalwar 5 жыл бұрын
How to control 18 relays which are at different locations..
@davidharper4289
@davidharper4289 8 жыл бұрын
Very cool.....................you have given me another headache LOL........thank you for sharing
@gregormocnik5665
@gregormocnik5665 7 жыл бұрын
Which relay exactly are you using? Is it 5V relay?
@openhomeautomation
@openhomeautomation 7 жыл бұрын
Indeed :)
@johnverbendoy
@johnverbendoy 8 жыл бұрын
Where i can find the device i.d? please reply asap :D thank you
@Weglobaltech
@Weglobaltech 8 жыл бұрын
Nice video ! Can you make a video or send info on how to create my own dashboard on my own server ? Thanks
@openhomeautomation
@openhomeautomation 8 жыл бұрын
Thanks! Indeed, that's something that would be interesting :)
@dipeshpatidar2473
@dipeshpatidar2473 7 жыл бұрын
from where we will get device id?? or is it on us to select id??
@openhomeautomation
@openhomeautomation 7 жыл бұрын
Hi, it's up to you to set the ID that you want :)
@dipeshpatidar2473
@dipeshpatidar2473 7 жыл бұрын
thanx for your precious reply
@MsSebaastian
@MsSebaastian 8 жыл бұрын
thanks for the great tutorial your awesome man
@ehsanaz1928
@ehsanaz1928 7 жыл бұрын
why show this massage {"message":"Requested device not found"} and my unique_id : "r56f89i" what is API key in account ? My module is esp 8266-01 ُSome one can help me??
@CARLOSINTERSIOASOCIA
@CARLOSINTERSIOASOCIA 7 жыл бұрын
Great videoo, thank yoou soo muuch, was exactly what i needed
@R2053
@R2053 7 жыл бұрын
is it also possible to use password with the device id?
@openhomeautomation
@openhomeautomation 7 жыл бұрын
It is possible using aREST Pro :) Check the videos on kzbin.info/door/TZOzcRUkEJNRQF-Vh9C7rw
@igrewold
@igrewold 8 жыл бұрын
By the way, there are 3V relays. www.fasttech.com/products/0/10024423/5288402-huike-hk4100f-dc-3v-shg-3v-6-pin-power-relay
@Hasanjanac
@Hasanjanac 8 жыл бұрын
great work.thanks....
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 жыл бұрын
After few days arest dashboard will not be worked properly
@firazpeerjade
@firazpeerjade 8 жыл бұрын
Ty..soo mush for sharing this tutorial.
@shadenneiroukh5069
@shadenneiroukh5069 7 жыл бұрын
how can i get device ID?
@openhomeautomation
@openhomeautomation 7 жыл бұрын
You define your own device ID in the code :)
@ethanvandal4436
@ethanvandal4436 7 жыл бұрын
const int nodeID = ESP.getChipId();
@dericc8611
@dericc8611 8 жыл бұрын
Love it! Thanks for the video! :)
@Electricworld-1
@Electricworld-1 5 жыл бұрын
Thank you , very good .
@bipinpanchal5630
@bipinpanchal5630 7 жыл бұрын
Dear Sir how to get device id please sugess.
@openhomeautomation
@openhomeautomation 7 жыл бұрын
You define your own device ID in the code :)
@prabhatchaudhary9885
@prabhatchaudhary9885 8 жыл бұрын
sir this code which u have used in the video.... is it available in the example ??? if yess can u please share the steps to open this example??? sir please reply as fast as possible.............
@mukuonline33
@mukuonline33 8 жыл бұрын
I used some of your libraries,I was able to control the relay from anywhere over the internet.Here is the problem for me,the device is responding in JSON format.What am I suppose to do to create my own dashboard dashboard without using dashboard.arest.io
@vacoff2717
@vacoff2717 6 жыл бұрын
but what about safety someone can hack your wifi to control your things
@samudralankaiahjampani4825
@samudralankaiahjampani4825 6 жыл бұрын
source code for 4 switches (i.e 4 relay operating)
@felinetech9215
@felinetech9215 7 жыл бұрын
plz help where can I get the libraries for Arduino plz provide a link
@julita1880
@julita1880 7 жыл бұрын
help Arduino: 1.8.4 (Windows 10), Board:"Adafruit Circuit Playground" In file included from C:\Users\teren\Desktop\sketch_sep17b\sketch_sep17b.ino:1:0: C:\Users\teren\Documents\Arduino\libraries\ESP8266SSDP/ESP8266SSDP.h:33:25: fatal error: ESP8266WiFi.h: No such file or directory #include ^ compilation terminated. exit status 1 Fout bij het compileren voor board Adafruit Circuit Playground Dit rapport zou meer informatie bevatten met "Uitgebreide uitvoer weergeven tijden compilatie" optie aan in Bestand -> Voorkeuren. open home automation
@F_N9901
@F_N9901 7 жыл бұрын
Julita Doorewaard you have to include the esp library
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 жыл бұрын
My relay is working properly.
@csabi72
@csabi72 8 жыл бұрын
once you pulled up the software i got lost LOL
@udith-pz4tv
@udith-pz4tv 8 жыл бұрын
best,,,,,,,,Thanks
@brasiloikos
@brasiloikos 8 жыл бұрын
thanks!!
@jean-francoiscartier658
@jean-francoiscartier658 8 жыл бұрын
Merci :) !
@ilyassayoujil4105
@ilyassayoujil4105 2 жыл бұрын
Thanks for tNice tutorials amazin tutorial! Such a helpful one
@sayerman
@sayerman 7 жыл бұрын
Can't understand you
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 жыл бұрын
I can help every body.
@tropicaljantie
@tropicaljantie 7 жыл бұрын
zse lamf is on zanx zu tis fproject :)
@phonenew789
@phonenew789 7 жыл бұрын
connect133t
@urban8644
@urban8644 5 жыл бұрын
Parle français
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 жыл бұрын
When I connect to my wifi then I get some time, so I drink a cup of tee
@maxwellmoojw8544
@maxwellmoojw8544 7 жыл бұрын
great work.thanks....
Port Forwarding your IoT Projects
7:34
techiesms
Рет қаралды 48 М.
ESP8266 Relay Control via Web Browser
12:16
ItKindaWorks
Рет қаралды 44 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
ESP8266 mini sends SMS  when door opens
15:32
Viktor Kjartansson
Рет қаралды 33 М.
ESP32/ESP8266 Relay Module - Control AC Appliances (Web Server)
6:10
How To: DIY Home Automation With ESP8266 and Amazon Alexa!
12:01
TheMakersWorkbench
Рет қаралды 75 М.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 645 М.
ESP8266 WiFi relay control
10:45
learnelectronics
Рет қаралды 142 М.
Home Automation at Home Part 1: ESP8266 & MQTT
14:03
ItKindaWorks
Рет қаралды 181 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН