Hi Nigel GoodwinAs I've said all along, I recommend the WEMOS D1 Mini - the WEMOS D1 is just a bigger board,
I have connected with 5 v dc adopter. LED is blinking means its workingThe Wemos D1 pictured above is designed to be fed from either:
But for 'playing' with it, just leave the USB lead connected, and power it from that. If you plug your USB lead in, there should be an LED flashing once a second to show it's working, this is the standard 'blink' program.
I have connected with 5 v dc adopter. LED is blinking means its working
Now I will start with LED blinking project. The board I have received with no manual so I am just looking for manual. I don't have LED and Resistor at this time but I think I can control on board LED. So I am trying to find out and datasheet and manual.
One another doubt, Can you control on board LED from your location via internet? If Yes then What you need to know ?
Are you joking about me. If that's the case then no matter because I do not understand your language well .It is sometimes the correct choice of words that does not occur. If so, please tell me. Well I do not feel bad.Parth86,
There are people who are also doing this project.
When you find information please help others.
Where did you get the board? Are they a good supplier?
When you find the manual please give us a link.
thank you
I have been successfully completed LED blink project. I can see LED is blinking on boardYou don't get manuals
To control the LED over the internet you need to run a server on it, there are examples installed in the ESP8266 area.
Which one is program for LED ?There are examples already installed in your Arduino IDE.
#include <ESP8266WiFi.h>
const char WiFiAPPSK[] = "password";
const char AP_NameChar[] = "Mikes Board";
const int RED_PIN = D0;
const int BLUE_PIN = D1;
const int GREEN_PIN = D2;
WiFiServer server(80);
IPAddress ip(192,168,1,100); // the desired IP Address
IPAddress gateway(192,168,1,1); // set gateway to match your network
IPAddress subnet(255, 255, 255, 0); // set subnet mask to match your network
String Red,Blue,Green;
void setup() {
Serial.begin(115200);
while (!Serial);
delay(100);
pinMode(RED_PIN,OUTPUT);
digitalWrite(RED_PIN,LOW);
Red="<a href=\"/RED=ON\"><button><font size=3>Click here to turn ON RED.<br><br></button></a><br><br>";
pinMode(GREEN_PIN,OUTPUT);
digitalWrite(GREEN_PIN,LOW);
Green="<a href=\"/GREEN=ON\"><button><font size=3>Click here to Turn ON GREEN.<br><br></button></a><br><br>";
pinMode(BLUE_PIN,OUTPUT);
digitalWrite(BLUE_PIN,LOW);
Blue="<a href=\"/BLUE=ON\"><button><font size=3>Click here to Turn ON BLUE.<br><br></button></a><br><br>";
WiFi.mode(WIFI_AP_STA);
WiFi.softAPConfig(ip, gateway, subnet);
WiFi.softAP(AP_NameChar, WiFiAPPSK);
server.begin();
Serial.print("Use this URL : ");
Serial.print("http://");
Serial.print(WiFi.softAPIP());
Serial.println("/");
Serial.println("Initialization Complete");
}
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(1);
}
// Read the first line of the request
String request = client.readStringUntil('\r');
Serial.println(request);
client.flush();
if (request.indexOf("/RED=ON") != -1){
Red="<a href=\"/RED=OFF\"><button style=\"background-color:red\"><font size=3>Click here to turn OFF RED.<br><br></button></a><br><br>";
digitalWrite(RED_PIN, HIGH);
}
if (request.indexOf("/RED=OFF") != -1){
Red="<a href=\"/RED=ON\"><button><font size=3>Click here to turn ON RED.<br><br></button></a><br><br>";
digitalWrite(RED_PIN, LOW);
}
if (request.indexOf("/GREEN=ON") != -1){
Green="<a href=\"/GREEN=OFF\"><button style=\"background-color:green\"><font size=3>Click here to Turn OFF GREEN.<br><br></button></a><br><br>";
digitalWrite(GREEN_PIN, HIGH);
}
if (request.indexOf("/GREEN=OFF") != -1){
Green="<a href=\"/GREEN=ON\"><button><font size=3>Click here to Turn ON GREEN.<br><br></button></a><br><br>";
digitalWrite(GREEN_PIN, LOW);
}
if (request.indexOf("/BLUE=ON") != -1){
Blue="<a href=\"/BLUE=OFF\"><button style=\"background-color:blue\"><font size=3>Click here to Turn OFF BLUE.<br><br></button></a><br><br>";
digitalWrite(BLUE_PIN, HIGH);
}
if (request.indexOf("/BLUE=OFF") != -1){
Blue="<a href=\"/BLUE=ON\"><button><font size=3>Click here to Turn ON BLUE.<br><br></button></a><br><br>";
digitalWrite(BLUE_PIN, LOW);
}
//Build the html page
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("");
client.println("<!DOCTYPE HTML>");
client.println("<html>");
client.println(Red);
client.println(Green);
client.println(Blue);
client.println("</html>");
delay(1);
Serial.println("Client disconnected");
Serial.println("");
}
Thank's for your interest.No posts for a while.
Yahh Now it's time to learn things step by step. I have successfully started work with raspberry pi and esp8266. Now i want to more focus on programmingThis it how I see it learn one thing learn it well go to next after that.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?