Monday, November 30, 2015

Arduino ESP8226-13 (ESP-13) By a Noob 4 a Noob

I have never needed to use WiFi in any of my projects thus far and I always assumed it would be pretty hard to integrate. I came across the ESP8226 very lately (2015) and after reading many online references I thought I’d give it a shot.

I purchased the latest and greatest ESP-13 for a few bucks($3) together with a FTDI ($2) off e-bay I had no idea why I needed the FTDI except that it was mentioned in quite a few online ESP tutorials.

For this topic, some background is required to set the scene.

FTDI What???

In order to communicate/program the ESP-13 module we need to be able to send serial communication from our PC to the ESP device.
Future Technology Devices International (FTDI) is a company that makes USB->Serial ICs. One famous one that I have purchased is the FT232RL. (notice the 232 reference i.e from back in the RS232 days). The module that I purchased off e-bay allows our PCs to expose a serial port over USB and send serial communication to an external device on COM ports. (Side note, if you had a very old PC with a serial port you would not need this FTDI board).

FTDIBoard.jpg

ESP What???

Now to the magical ESP chip manufactured by Espressif Systems. The ESP8266 is a module that incorporates a Microcontroller IC and a Flash storage IC. The microcontroller is pretty sweet in that is operates in the 40 ->160MHz range and with the external flash you can have access to 2MB of storage.

So the ESP is a microcontroller with some storage… but how the heck do I use it?

Reminder that I’m a noob with regards to these ESP chips so this is my understanding.

The ESP-13 (or any other ESP module) can be run as is because it is has preset/preloaded WiFi software stack. what does this mean? It can detect//connect/transmit over WiFi using a few commands that it understands (AT commands). AT commands refer to the Hayes command set commonly used to communicate with modems. AT stands for ATtention. So by supplying the chip with power and setting a few configuration pins accordingly (as defined in the datasheet) you can effectively boot the device into a “slave mode” config. In this mode the RX/TX lines allow us to send and receive AT command and information between our PC and the ESP module.

Alternatively the ESP module can be used as a microcontroller that runs your code. Remember the microcontroller is used to facilitate the WiFi software stack but like any microcontroller has GPIO, PWM, ADC, UART, I2C, I2S, IRDA functionality. This means that you can write your own code and program it directly to this chip. (<--- I have not used this method yet)

ESP-13

The ESP-13 module that I bought has printed on it ESP_WROOM_02 this is the datasheet that you will find on the Espressif site. To use this chip, I needed to solder (with great precision) a break out board to use it on breadboard.

ESP-13.jpg
ESP-13 Bottom.jpg
ESP-13 Soldering.jpg
Adaptor Board.jpg
ESP-13 Breakout4.jpg
ESP-13 Breakout.jpg

To be continued…

  1. Valentín

    Friday, February 3, 2017 - 17:19:26

    Anyone have more information on this chip ?? Why do not you have the “CH_PD” pin ??

  2. Admin

    Friday, February 3, 2017 - 17:46:12

    Hi,
    CH_PD means CHip Power Down Pin. It is called EN (Enable) in this version. To Enable the chip you need to have this pin directly connected to 3.3V.

  3. thank you

    Saturday, January 27, 2018 - 07:09:13

    Keep it up!

  4. rushmyessay

    Thursday, February 1, 2018 - 05:26:11

    A good invention which may lead to an ease for people who are software specialist. Such a good news to hear I really look for such types of news now a days. Keep it up.

  5. uk assignment

    Wednesday, February 14, 2018 - 15:26:04

    Ordered a Saturday night and received at 9am Sunday morning. Very impressed with what can be stuffed in a small box. Spent more than half a day trying to install the correct drivers and checking many forums to get to the realization that the USB cable A to B was powered only, not data. Fortunately enough Ki had an old USB printer cable that worked a treat. Felt a little cheated but still very good value for money.

  6. write me an assignment

    Thursday, April 26, 2018 - 12:58:16

    Very informative and rich in content article. It is very important to taKe care of the health. I also would like to recommend this high quality custom writing service where all students can get premium help with writing effective academic assignments.

  7. do my assignment for me

    Thursday, April 26, 2018 - 12:59:09

    Looking forward to more information and you have continually intrigued me. Thank you for creating an article that has amazing substance and is well formed and even I am revived by your composed style as well.

Add comment

Fill out the form below to add your own comments