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. St. Louis YouTubers Meetup: Broadcasting for Charity
    • Start time: 12:00pm
    • End time: 02:00pm
    • Where: Arch Reactor, 2215 Scott Ave, St. Louis, MO 63103, USA
    • To start off this week's meeting, we'll have a short presentation/discussion about Extra Life, a charity event for Children's Miracle Network Hospitals that involves streaming video online while soliciting donations from viewers. Learn tips tips, techniques, and recommendations from two volunteers with over 100 hours of experience, and start planning your own stream for this fall.

      After the Extra Life discussion, we will be open for general discussion as usual.

    • View this event in Google Calendar

Sunday, July 21st

  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, July 23rd

  1. Don't Try This at Home planning meeting
  2. Class: Sheet Metal Bending

Friday, July 26th

  1. 3D Printer Meetup
    • Start time: 07:00pm
    • End time: 09: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.

      https://www.meetup.com/STL-3D-Printing/

    • View this event in Google Calendar

Saturday, July 27th

  1. Private event <> BG Meet-up
    • Start time: 12:00pm
    • End time: 10:00pm
    • Where: 2215 Scott Ave, St. Louis, MO 63103, USA, Archreactor, Arch Reactor
    • ORGANIZER : Frank Kallal

      This is a Team meet-up and Practice session for an event we are attending two weeks from now. We will Be Utilizing the Classroom Area, with some possibility of the Wooden table and Maybe some of the Main "clean Room" table

      Possible attendance is in the 15-20 person range. with 5-10 of those being folks that have not been to the space previously. It's possible we will run later than 6pm, but at that point the space should be open for anyone even though we are still there.

      Member's of any form are more than welcome to use the Shop or front area space, however I would Prefer not to Compete against a secondary event during this time frame.

    • View this event in Google Calendar