Connecting Arduino with ESP8266-01, PH Sensor reading 0

Hai, im very new to learn Arduino, and i try to learn to build one project, but second i have a problem when connecting my ESP8266-01 with Arduino uno. When i was comply and upload everyhtings was fine, but the serial monitor show that cant read the wifi, is there anything wrong ? please kindly need your experience to solve this. i have put RX-TX. TX-RX jumper wire before upload it.

Highly appreciate if you could help me to through this problem,

below is my sketch

// 1000uf 25V cap between gnd and 3.3v
// ESP to Arduino connection
// Vcc ESP to 3.3v of Arduino
// Gnd ESP to Gnd of Arduino
// CHPD ESP to 3.3v of Arduino
// RST ESP to 3.3v of Arduino
// Rx ESP to Tx Arduino
// Tx ESP to Rx Arduino
#define SSID "xxxxxxx"
#define PASS "xxxxxxx"
#define IP "184.106.153.149" // thingspeak.com ip
String msg = "GET /update?key=xxxxxxxxxxxx";
int Time_S = 5;
///////////////////////////Setup///////////////////////////////////////////
void setup()
{
Serial.begin(115200);
//delay(5000);
}
///////////////////////////Main loop////////////////////////////////////////
void loop()
{
Serial.println("AT");
if(Serial.find("OK"))
{
connectWiFi();
Serial.println("Module found");
}
Send();
delay(1000*Time_S);
}
///////////////////////////ThingSpeak//////////////////////////
void Send()
{
String cmd = "AT+CIPSTART="TCP","";
cmd += IP;
cmd += "",80";
Serial.println(cmd);
delay(2500);
cmd = msg ;
cmd += "&field1="; //field 1 for test value
cmd += 10;
cmd += "&field2="; //field
cmd += 20;
cmd += "&field3="; //field
cmd += 30;
cmd += "&field4="; //field
cmd += 40;
cmd += "&field5="; //field
cmd += 40;
cmd += "&field6="; //field
cmd += 500;
cmd += "&field7="; //field
cmd += 60;
cmd += "&field8="; //field
cmd += 700;
cmd += "\r\n";
cmd += "\r\n";
Serial.print("AT+CIPSEND=");
Serial.println(cmd.length());
if(Serial.find(">")){
Serial.print(cmd);
}
else
{
Serial.println("AT+CIPCLOSE");
}
}
///////////////////////////WiFi connect/////////////////////////////////////////
boolean connectWiFi()
{
Serial.println("AT+CWMODE=1");
delay(2000);
String cmd="AT+CWJAP="";
cmd+=SSID;
cmd+="","";
cmd+=PASS;
cmd+=""";
Serial.println(cmd);
delay(5000);
if(Serial.find("OK")){
return true;
}else{
return false;
}
}

Serial Monitor RESPON;
AT
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=123
AT+CIPCLOSE

We get someone with this problem on here every day or every other day. I always ask if it's necessary to have the Arduino Uno/Nano etc. in the first place. The ESP8266 is way more powerful than an Arduino UNO/Nano and in nearly all cases, all tasks that need to be done can be done by the ESP8266 itself. For instance, if you want to read a pH sensor (which your sketch doesn't do at present, but let's put that aside for now), you can easily do that directly from the ESP8266. This saves you the trouble of having to connect the ESP8266 to an Arduino.

So short recommendation: ditch the Arduino and continue with just the ESP8266.

@anon35827816 , sorry i mean that now i want to do the Arduino Uno Connect with the esp8266 the details as serial monitor a i mentioned. i have try 115200 baud , and 9600, none can read it.

I know what you're trying to do. My advise is to not do it. Please read my post above carefully.

Try a delay 2000 after the AT command.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.