I am trying to integrate arduino due with esp8266-01 and use AT commands. But unfortunately i can't see any results on Serial Monitor. Earlier, I was using UNO with esp8266 and everything was working fine. I have tried everything i found on internet, nothing helped. My esp8266 pin connections are:
VCC->3.3V
GND->GND
TX->RX3
RX->TX3
CH_PD->3.3V
This is the code I found on a tutorial which i have been trying to run just to test:
int LED=13;
void setup() {
Serial3.begin(9600);
delay(1000);
pinMode(LED,OUTPUT);
Serial.write("Hello");
}
void loop() {
if (Serial3.available() > 0) {
digitalWrite(LED,LOW);
delay(100);
digitalWrite(LED,HIGH);
}
if (Serial.available() > 0) {
digitalWrite(LED,LOW);
delay(2000);
digitalWrite(LED,HIGH);
}
}
One more thing, i am uploading code in Due's native mode. Could this be in anyway the cause of this?. Programming mode isnt working properly, Once the code is uploaded, If i try to re upload it gives the following error:
No device found on COM12
An error occurred while uploading the sketch
While the device is shown in tools section, i am still getting the above error.. I also tried to find fixes for this issue.. there were no definite ones.
Please help me out.. Thanks