Control an LED from Web browser, NODEMCU Esp8266

  Рет қаралды 52,534

Magesh Jayakumar

Magesh Jayakumar

Күн бұрын

Пікірлер: 37
@roidroid
@roidroid 7 жыл бұрын
If you replace the line: *int ledPin = 13;* with *int ledPin = LED_BUILTIN;* Then you can just use the ESP8266's internal LED and don't need to add an extra LED. The on/off switching will be backwards, but you can fix that in the code if you want to.
@memeph
@memeph Жыл бұрын
Yep, thanks
@TheRockeyAllen
@TheRockeyAllen 5 жыл бұрын
How to control browser based variable from esp button or switch?
@vijayranaprathapraju2331
@vijayranaprathapraju2331 7 жыл бұрын
i am doing project in emergency traffic rooting vehicle ..i need help for doing project ..how to communication between two node mcu using Mqtt protocal. my project guide told me .. learn first how the communication transfer between two node mcu using Mqtt protocal. please tell me how the communication will be done
@vijayranaprathapraju2331
@vijayranaprathapraju2331 7 жыл бұрын
i am doing project on Emergency traffic vehicle using IOT device. when ambulance is going on road. which comes near to traffic signal. all signals are turn in to Green color and ambulance will be pass away... so i need help doing project. so tell me how and where to START project , reply ,me
@mshari99
@mshari99 7 жыл бұрын
any browser from my win 10 pc not connecting with nodemcu...however all browsers from android phone communicating ..any help
@lepystudio8974
@lepystudio8974 7 жыл бұрын
Guys i can't controll other digital pins, i connected the led to TX pin and it works but if i change the ledPin to 1 (example) and connect the led, nothing works... help ?
@UjanShrestha
@UjanShrestha 7 жыл бұрын
Hi, Its awesome... I want to control 4 channel relay module... please make tutorial on this topic
@syahirahaqilah4590
@syahirahaqilah4590 6 жыл бұрын
Hi, I just want to know why there is nothing appear when I opened the serial monitor? The connecting sign also the ip address doesn't show. Can anyone help fix this?
@hungrysquirrei6961
@hungrysquirrei6961 5 жыл бұрын
Because your serial monitor doesnt show the history of communication - u should open the serial monitor at the same time u plug in ur esp. Or set ur delay to 5 seconds in this cycle, so u have plenty of time to open ur serial monitor and show the message at the time it is created: while (WiFi.status() != WL_CONNECTED) { delay(5000); Serial.print("."); }
@teknobuzz8886
@teknobuzz8886 7 жыл бұрын
Can you give me the library for Esp8266 please?
@Jack_Mehoff_
@Jack_Mehoff_ 8 жыл бұрын
is it possible to change the size of the text and the buttons?
@HarshalDoshiWellAhead
@HarshalDoshiWellAhead 7 жыл бұрын
yes, its possible Change below code as per your requirement. // Return the response client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println(""); // do not forget this one client.println(""); client.println(""); client.print("Led pin is now: "); if(value == HIGH) { client.print("On"); } else { client.print("Off"); } client.println(""); client.println("Turn Off "); client.println("");
@technophileARG
@technophileARG 7 жыл бұрын
but my friend it's working if & only if the esp8266 and my browser is connected to the same wifi router!, how to control it from anywhere in the world?
@ARG-gz7iz
@ARG-gz7iz 7 жыл бұрын
yes, same problem with me, please provide an appropriate solution if u know, thank you!
@dekipet
@dekipet 7 жыл бұрын
Beside that, anytime you disconnect it from pc it will need to be connected to it again, and start serial monitor to connect module to network. So, this is ok tutorial for beginners but it need a few modification for further use.
@LionelTellem
@LionelTellem 7 жыл бұрын
You got to use port forwarding on your router or use a VPN
@RGPinger
@RGPinger 7 жыл бұрын
I have these projects and also control with voice. All from somewhere in world!
@abhjit100
@abhjit100 5 жыл бұрын
@@LionelTellem How man? Can you detail please
@aharongina5226
@aharongina5226 6 жыл бұрын
Thank you, nice starting video
@yudistra5455
@yudistra5455 3 жыл бұрын
you have code non buttom, so just write in web browser
@technophileARG
@technophileARG 7 жыл бұрын
Awesome video dude! keep it up....
@ukaszporowski5923
@ukaszporowski5923 7 жыл бұрын
Hi, I run this program but I don't have any data in serial monitor. Can you help me?
@desilonda3982
@desilonda3982 6 жыл бұрын
Łukasz Porowski d
@timyg
@timyg 4 жыл бұрын
the website does not work plz help
@lumsdot
@lumsdot 8 жыл бұрын
works great, thanks
@rizkyds8604
@rizkyds8604 7 жыл бұрын
kenapa pada saat saya mencoba namun gagal, terlihat seperti ini di serial monitor : wdt reset load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v09f0c112 ~ld ⸮ tolong saya
@rumrobot_
@rumrobot_ 5 жыл бұрын
I have a problem with the "new client" I have changed the code a little bit to play music. I have these two "PacMan and Tetris" music. I can play the Pacman music all the time but after I played the Tetris music it just says "new client" and the side (when I press a new button) just reload nonstop. Can anyone please help me? Code: #include const char* ssid = "*******"; const char* password = "********"; int tonePin = 15; // GPIO15 WiFiServer server(80); void setup() { Serial.begin(115200); delay(10); // Connect to WiFi network Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); // Start the server server.begin(); Serial.println("Server started"); // Print the IP address Serial.print("Use this URL to connect: "); Serial.print(""); Serial.print(WiFi.localIP()); Serial.println("/"); } void loop() { // Check if a client has connected WiFiClient client = server.available(); if (!client) { return; } // Wait until the client sends some data Serial.println("new client"); while(!client.available()){ delay(500); Serial.print("."); } // Read the first line of the request String request = client.readStringUntil(' '); Serial.println(request); client.flush(); // Match the request if (request.indexOf("/Play=PacMan") != -1) { PacMan(); } if (request.indexOf("/Play=Tetris") != -1) { Tetris(); } // Set ledPin according to the request //digitalWrite(ledPin, value); // Return the response client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println(""); // do not forget this one client.println(""); client.println(""); client.println(" Tetris "); client.println(""); delay(1); Serial.println("Client disonnected"); Serial.println(WiFi.localIP()); Serial.println(""); } void Tetris() { a lot of music code (This is definitely not a problem) } void PacMan() { a lot of music code (This is definitely not a problem) } The Serial Monitor: WiFi connected Server started Use this URL to connect: 192.168.0.28/ new client .GET / HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=PacMan HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=PacMan HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=PacMan HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=PacMan HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=PacMan HTTP/1.1 Client disonnected 192.168.0.28 new client ...GET /favicon.ico HTTP/1.1 Client disonnected 192.168.0.28 new client .GET /Play=Tetris HTTP/1.1 Client disonnected 192.168.0.28 new client ............................
@sickvic3909
@sickvic3909 7 жыл бұрын
First things first , my board never shows up in available wifi lists
@rengoku_07
@rengoku_07 6 жыл бұрын
its working...
@swapnilsuryawanshi6984
@swapnilsuryawanshi6984 9 жыл бұрын
can you give me the code
@mageshjayakumar1653
@mageshjayakumar1653 9 жыл бұрын
+Swapnil Suryawanshi internetofthinking.blogspot.in/2015/12/control-led-from-webserver-using.html check it out there
@hbrothwell7
@hbrothwell7 7 жыл бұрын
STEM Education
Home automation over WiFi using WeMos ESP8266
15:00
bitluni
Рет қаралды 656 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 34 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 51 МЛН
IoT || NodeMCU as a webserver, Control LED using Wifi of NodeMCU
13:25
Mahesh Pawaskar
Рет қаралды 10 М.
ESP32 Web page creating and updating
32:11
Kris Kasprzak
Рет қаралды 168 М.
ESP8266 Digital Outputs - Relais über Webseite steuern
4:25
Control a Relay From Anywhere Using  the ESP8266
10:26
Makecademy
Рет қаралды 142 М.
ESP8266 - Getting Started & Connected.
15:47
Equinoxe
Рет қаралды 441 М.
TUTORIAL: Quickly getting started with NodeMCU / ESP8266 12E - In 7 mins! Beginner Friendly! Arduino
7:01
Antony Cartwright (Electronics & Code)
Рет қаралды 588 М.
Build a Webserver on NodeMCU ESP8266 in Station Mode
26:05
BINARYUPDATES
Рет қаралды 59 М.
Control Electrical Devices from Web Browser Esp8266 NodeMCU
8:14
Magesh Jayakumar
Рет қаралды 12 М.
Control an LED using WiFi with ESP32/ESP8266
6:53
Aymaan Rahman
Рет қаралды 13 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 34 МЛН