Will post a schematic at uno-esp part after work .cant remember resistor values to write now. The only thing that may cause this in my opinion are long wires.
@sherzaad
couldn't describe the whole schematic too much to write decide to upload image.
surepic:
couldn't describe the whole schematic too much to write decide to upload image.
OK... that not how I wired up my arduino. this is your code that I ran (getting same issue as u)
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
//char string[] = "AT\r\n";
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
mySerial.begin(115200);
Serial.println("arduino");
mySerial.println("AT");
//delay(100);
//mySerial.write("AT");
Serial.println("Esp");
}
void loop() { // run over and over
while (mySerial.available()) {
Serial.write(mySerial.read());
}
}
your schematic does not really tell but how did you manage to print "mySerial.println("AT")" and "Serial.println("Esp")" to the SAME serial monitor when u tested the code? did you wire things differently then?
Myserial is an object of softwareserial im sending data and as soon esp is getting it its generating reply.
Myserial.println”at” - send data to esp as myserial is sending data via pins mentioned in the line “myserial(10,11)” Check wires in schematic.
Then in setup again im printing to serial monitor via serial.println(“esp”) to show you guys that averything i will be getting now on serial monitor is comming from esp. comment out the line and you will see no difference thats just for extra verbosity.
Serial.monitor is using pins 0 and 1 to transfer and receive. Myserial 10 and 11. They are not interfeering with each other nothing wrong there.