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 Жыл бұрын
Yep, thanks
@TheRockeyAllen5 жыл бұрын
How to control browser based variable from esp button or switch?
@vijayranaprathapraju23317 жыл бұрын
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
@vijayranaprathapraju23317 жыл бұрын
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
@mshari997 жыл бұрын
any browser from my win 10 pc not connecting with nodemcu...however all browsers from android phone communicating ..any help
@lepystudio89747 жыл бұрын
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 ?
@UjanShrestha7 жыл бұрын
Hi, Its awesome... I want to control 4 channel relay module... please make tutorial on this topic
@syahirahaqilah45906 жыл бұрын
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?
@hungrysquirrei69615 жыл бұрын
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("."); }
@teknobuzz88867 жыл бұрын
Can you give me the library for Esp8266 please?
@Jack_Mehoff_8 жыл бұрын
is it possible to change the size of the text and the buttons?
@HarshalDoshiWellAhead7 жыл бұрын
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("");
@technophileARG7 жыл бұрын
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-gz7iz7 жыл бұрын
yes, same problem with me, please provide an appropriate solution if u know, thank you!
@dekipet7 жыл бұрын
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.
@LionelTellem7 жыл бұрын
You got to use port forwarding on your router or use a VPN
@RGPinger7 жыл бұрын
I have these projects and also control with voice. All from somewhere in world!
@abhjit1005 жыл бұрын
@@LionelTellem How man? Can you detail please
@aharongina52266 жыл бұрын
Thank you, nice starting video
@yudistra54553 жыл бұрын
you have code non buttom, so just write in web browser
@technophileARG7 жыл бұрын
Awesome video dude! keep it up....
@ukaszporowski59237 жыл бұрын
Hi, I run this program but I don't have any data in serial monitor. Can you help me?
@desilonda39826 жыл бұрын
Łukasz Porowski d
@timyg4 жыл бұрын
the website does not work plz help
@lumsdot8 жыл бұрын
works great, thanks
@rizkyds86047 жыл бұрын
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_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 ............................
@sickvic39097 жыл бұрын
First things first , my board never shows up in available wifi lists
@rengoku_076 жыл бұрын
its working...
@swapnilsuryawanshi69849 жыл бұрын
can you give me the code
@mageshjayakumar16539 жыл бұрын
+Swapnil Suryawanshi internetofthinking.blogspot.in/2015/12/control-led-from-webserver-using.html check it out there