ESP8266

Documenting my adventures with the ESP8266 wifi module.  

First things first, solder on the pins.  I wanted to be able to use the module on a bredboard, so since the outer 2 pairs are all that is needed I soldered like so:

The pins in the back are just to hold the board level while solering.  Pro Tip there.  I also found that one pin in particular has to be pulled to VCC in order for the module to "come alive", so I added a little jumper wire:

Next, I connected it to a Leonardo clone.  I decided to use the Leonardo since it's 0,1 serial are seperate from the usb-serial, makes debugging easier.

The wiring is basically from Seeed's guide at http://www.seeedstudio.com/wiki/WiFi_Serial_Transceiver_Module.  I was not able to get Seeed's code to work though.  I would get the "Can not connect to the WiFi" message 5 times and that's it.  imjosh's code at https://github.com/imjosh/espBasicExample/blob/master/espBasicExample.ino also failed, but copying the "serial loop mode for diag" section up to the connection fail section I was able to make ti connect by manually issuing AT commands.  In both cases I modified the programs to use the Leonardo's Serial and Serial1.

Since I had success with a manual config, I think the issue may lay in the brute force methods and lack of validation that this code uses.  When I get some time soon I'm going to start over from scratch and try to duplicate my manual config method and add in that validation.    

UPDATES:

I was able to have some better success by removing the delays in the serial loops.  It seems it was filling the buffer faster than the code was reading it and timing out.  I also now have some better documentation and example sessions:

Command Doc  Socket Client   Socket Server (incomplete example)   AP and Socket Client

 

Posted by
Chris Weiss's picture
Chris Weiss
on Tuesday, September 23rd, 2014
Filed under arduino
| More

Agenda

Friday, June 22nd

  1. 3D Printer Meetup

Saturday, June 23rd

  1. KC Maker Faire

Sunday, June 24th

  1. Open Build Something!
    • Start time: 07:00pm
    • End time: 10:00pm
    • Where: 2215 Scott Ave, St. Louis, MO 63103, USA
    • Come stop by and visit! Open build night to work on projects and hang out!

    • View this event in Google Calendar

Tuesday, June 26th

  1. MAME Machines!
    • Start time: 08:00pm
    • End time: 10:00pm
    • Join Arch Reactor for an exploration of options to build and perfect a MAME build. We'll cover cabinet selections, performance specs, front end configuration, supported emulators and much more! Come see how to bring classic games from the 80s and 90s into your build! 8:00 to 10:00.

      Taught by Derek S.

    • View this event in Google Calendar

Thursday, June 28th

  1. Armoring Class
    • Start time: 06:00pm
    • End time: 09:00pm
    • Monthly class series on Armoring, with an emphasis on SCA (Society For Creative Anachronism) legal armor. These classes will be co-hosted by Amberly Brown and Mike Martin and open to anyone with an interest in Armor for SCA, LARP, cosplay, etc.

    • View this event in Google Calendar