-->
Page 1 of 1

Using Arduino DUE as ESP8266 programmer

PostPosted: Mon Jan 05, 2015 3:34 pm
by spierepf
Greetings,

I am trying to program my ESP-01 module but I don't have a 3.3v FTDI. I thought instead that I could use my Arduino DUE.

My plan was to plug the ESP into Serial3 and use a sketch like:

Code: Select allvoid setup() {
  pinMode(PIN_LED_13, OUTPUT);
  digitalWrite(PIN_LED_13, LOW);
  Serial.begin(115200);
  Serial3.begin(115200);
}

void loop() {
  while(Serial.available() > 0)
  {
    digitalWrite(PIN_LED_13, HIGH);
    Serial3.write(Serial.read());
    digitalWrite(PIN_LED_13, LOW);
  }
  while(Serial3.available() > 0)
  {
    digitalWrite(PIN_LED_13, HIGH);
    Serial.write(Serial3.read());
    digitalWrite(PIN_LED_13, LOW);
  }
}


I've connected the CH_PD pin to +V and the GPIO2 pin to GND but so far I've had no luck.

Has anyone managed to get something like this working?

Thanks.

Re: Using Arduino DUE as ESP8266 programmer

PostPosted: Mon Jan 05, 2015 7:04 pm
by villTech
i used arduino micro to program my esp-03 module, it's working without issue.

something is not right with your connection. when programming esp-01, it should be:
ch_pd - vcc
reset - vcc
gpio2 - vcc (nc)
gpio0 - gnd