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

Tomorrow

  1. Build Night!
    • Start time: 07:00pm
    • End time: 09:00pm
    • Where: Arch Reactor, 2215 Scott Ave, St. Louis, MO 63103, USA
    • Come help build out Arch Reactor into the kind of space we all know it can be! All skill levels welcome, we can even teach you some new building skills!

    • View this event in Google Calendar
  2. Harry Potter Wand Making
    • Start time: 07:00pm
    • End time: 10:00pm
    • Stop by Arch Reactor to make "Magic Wands"!

      You may make one or more for yourself or donate your creations to an upcoming Arch Reactor Fundraiser.

      Please note that this style of wand-making involves hot-glue. Children are welcome but must be closely supervised by their parent/guardian.

    • View this event in Google Calendar

Friday, August 24th

  1. 3D Printer Meetup
    • Start time: 07:00pm
    • End time: 10:00pm
    • Whether you're interested in printing for art, prototyping, manufacturing, or just fixing dishwasher soap lids, this is a meetup group where you can come get answers to your questions, help people new to the hobby, and show off your printer and its creations.

      If you have a printer, bring it along, working or not, we would love to see and learn about it.

    • View this event in Google Calendar

Saturday, August 25th

  1. ESTL Meetup
    • Start time: 12:00pm
    • End time: 06:00pm
    • While this is a meetup specifically for ESTL, the space can still be open for projects, etc.
      Feel free to contact btissi@gmail.com for questions.

    • View this event in Google Calendar
  2. Harry Potter Wand Making
    • Start time: 02:00pm
    • End time: 04:00pm
    • Stop by Arch Reactor to make "Magic Wands"!

      You may make one or more for yourself or donate your creations to an upcoming Arch Reactor Fundraiser.

      Please note that this style of wand-making involves hot-glue. Children are welcome but must be closely supervised by their parent/guardian.

    • View this event in Google Calendar

Sunday, August 26th

  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, August 28th

  1. TinkerCAD for 3D Printing
    • Start time: 07:30pm
    • End time: 10:00pm
    • We will be covering the usage of TinkerCAD as it specifically relates to 3D printing.
      Taught by Chris W.

    • View this event in Google Calendar