No matter what I did, I couldn't get the esp8266 wifi module that I bought last month to work. At first, I thought the problem was caused by the firmware and after some research, I updated the firmware, but it still didn't work. I tried a few more codes and it still didn't work, then I restored the firmware to version 2.0 and it still didn't work. After struggling a bit, I found a tutorial from an Indian content producer. According to this tutorial, a simple blink code could be uploaded to the esp8266 chip inside the module. I followed every step and uploaded the code. The code was uploaded successfully, but the blue light on the card did not blink. Afterwards, I thought there was a problem with the card itself, so I updated the firmware again and everything on the card was working correctly. I tried again and again, but every code I tried (such as esp and dht11) gave the error "esp8266 not found". If anyone encounters this error like me, PLEASE HELP ME.
Are you confusing firmware with sketch?
Hi @karadeniz.
I think it will be useful for you to provide more information about the module.
If you bought the module online, you can provide a link to the product listing page and the helpers will probably be able to gather sufficient information from that resource.
Please provide a simple example of code you tried that produced this error.
Please tell us exactly where you saw the error. Was it in Arduino IDE's "Output" panel while you were uploading? Or was it in the Arduino IDE Serial Monitor? Or was it somewhere else?
nope
i buy from a local store and error is in the serial monitor.Can't detect the module and module is not responding for at commands
OK, then you are going to need to make the effort to clearly describe the board to us. Keep in mind that we are not psychic. We only have the information you deign to give us here on the forum.
Typically when we say "ESP8266 module", we are referring to something like this:
or this:
Is that what you have? Or do you instead have a complete development board?
In my previous reply, I asked you to provide your code. You did not provide your code. If you want free help here, you are going to need to start making a much stronger effort. Otherwise you can figure it out on your own. The choice is yours.
Does it have a USB port ?
Best is to post a link and / or a picture of what you have.
Then please tell us more about the 'firmware' you uploaded and how you did this. If you managed that, you will probably manage the rest with our help.
There is no blue light on the module, especially if you are loading the blink code example you followed.
I know there is a blue light on some nockoff clones, but these are perhaps at a different address that is used in the standard blink test.
Perhaps a better title might be "I can't get my ESP8226 to work"
Most ESP-01 modules have a led on GPIO 1 (TX) and nearly all ESP8266 devboards (as well as ESP-07 & ESP-12F) have one on GPIO 2,
But we don't know what the OP has for now.
Sorry I should have been more clear. But my module is in the first photo. And here is my code:
#include <SoftwareSerial.h>
#include <dht11.h>
String wifiname = "*******";
String wifipassword = "*******";
int rxPin = 10;
int txPin = 11;
int dht11Pin = 2;
String ip = "184.106.153.149";
float heat, moisture;
dht11 DHT11;
SoftwareSerial esp(rxPin, txPin);
void setup() {
Serial.begin(9600);
Serial.println("Started");
esp.begin(115200);
esp.println("AT");
Serial.println("AT send");
while(!esp.find("OK")){
esp.println("AT");
Serial.println("ESP8266 not found.");
}
Serial.println("OK command received");
esp.println("AT+CWMODE=1");
while(!esp.find("OK")){
esp.println("AT+CWMODE=1");
Serial.println("setting....");
}
Serial.println("Set to client");
Serial.println("connecting to wifi");
esp.println("AT+CWJAP=\""+wifiname+"\",\""+wifipassword+"\"");
while(!esp.find("OK"));
Serial.println("connected to wifi");
delay(1000);
}
void loop() {
esp.println("AT+CIPSTART=\"TCP\",\""+ip+"\",80");
if(esp.find("Error")){
Serial.println("AT+CIPSTART Error");
}
DHT11.read(dht11Pin);
heat = (float)DHT11.temperature;
moisture = (float)DHT11.humidity;
String data = "GET https://api.thingspeak.com/update?api_key=TKF8NUXMCRWBB5PN";
data += "&field1=";
data += String(heat);
data += "&field2=";
data += String(moisture);
data += "\r\n\r\n";
esp.print("AT+CIPSEND=");
esp.println(data.length()+2);
delay(2000);
if(esp.find(">")){
esp.print(data);
Serial.println(data);
Serial.println("data sent.");
delay(1000);
}
Serial.println("Connection Closed.");
esp.println("AT+CIPCLOSE");
delay(1000);
}
Note:I tried other similar codes and they all gave the message "esp not found". Personally, I do not think that the ESP is broken because when the firmware is updated, it is done successfully and the MAC and IP address of the ESP appear on the screen and also, the blue LED on the ESP blinks 2-3 times quickly when the power is supplied to the ESP.
here is my firm ware:ESP8266_NONOS_SDK-2.0.0.
sorry i can't attach files
Ok so that is called an ESP-01.
How have you connected it and to what ? (schematic please, hand drawn will suffice)
That is a code that should be loaded onto a different MCU like an UNO which can then control the ESP-01 if it is connected correctly. But the connections are rather important, and incorrect connection may damage your module.
So to re-upload that to the ESP, you must have connected it in a different way again. Which connections did you use to do that ?