Using Arduino DUE as ESP8266 programmer
Posted: Mon Jan 05, 2015 3:34 pm
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:
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.
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 all
void 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.