Lost my USB to TTL Serial Adapter - can I use my photon instead?

Greetings! I am trying to reflash an ESP8266 (via http://www.instructables.com/id/Turn-a-Cheap-WiFi-Plug-Into-an-OpenHAB-ESP8266-Swi/) but I seem to have lost my USB to TTL Serial Adapter.

I have an unused Particle Photon that I bought a few months ago for a different project.

Can the Photon be used to flash the firmware on the ESP? If so, any thoughts about how I might go about it? I’m really new about this stuff!

Thanks tons!

I’m just about to do the same thing with this code

SYSTEM_MODE(MANUAL)
void setup() {
    Serial1.begin(115200);
    Serial.begin(115200);
}

void loop() {
    while(Serial.available())
    {
        Serial1.write(Serial.read());
    }

    while(Serial1.available())
    {
        Serial.write(Serial1.read());
    }
}

Give it a try.

5 Likes

@ScruffR Thanks for that bit of code! I will keep track of it for later. I got sidetracked on that current project and in getting sidetracked I found me USB TTL adapter! Thank you though for your thoughtfulness and time.

This works perfectly! Great for debugging other dev kits that does not have a USB serial out.

1 Like