Page Nav

HIDE

Grid

GRID_STYLE

Breaking News:

latest

Introduction for esp8266

What is the ESP8266 ? ESP8266 is a wifi SOC ( wireless) (system on a chip) produced by Espressif Systems. This highly integr...


What is the ESP8266 ?

ESP8266 is a wifi SOC (wireless)(system on a chip) produced by Espressif Systems.

This highly integrated chip designed to provide full internet connectivity in a small package.

What is it good for ?

Can be use ESP8266 as an external Wifi (wireless) module, the standard AT Command used to set Firmware, by connecting it to any micro controller using the UART serial, or directly serve as a Wifi-enabled microcontroller, by programming a new firmware using the provided SDK.
The GPIO pins allow Analog and Digital IO, plus  SPI, PWM, I2C, etc.
It has been used mostly in IoT contexts, and has been around for almost a year now, where we want to add connectivity for example to a project of Arduino.
The very modest price facilitated the wide adoption has been, ranging from 3$ to 10$ depending on the features offered by the manufacturers.

example projects :

Technical Features

  • Built-in low-power 32-bit CPU: can double as an application processor
  • SDIO 2.0, SPI, UART
  • STBC, 1×1 MIMO, 2×1 MIMO
  • A-MPDU, A-MSDU aggregation and the 0.4 Within wake
  • 2ms, connect and transfer data packets
  • standby power consumption of less than 1.0mW (DTIM3)
  • off leakage current is less than 10uA
  • 802.11 b / g / n
  • Wi-Fi Direct (P2P), soft-AP
  • Built-in TCP / IP protocol stack
  • Built-in TR switch, balun, LNA, power amplifier and matching network
  • Built-in PLL, voltage regulator and power management components
  • 802.11b mode + 19.5dBm output power
  • Built-in temperature sensor
  • Support antenna diversity

Variants

The several vendors offred The ESP8266-based boards and with different breakout boards.
Most of the boards differ in the number of pins made available, the amount of Flash memory for storing program and data, and the shielding on the SOC for certified boards.
Some boards also support an external uFL antenna connector as well as the buil-in on-chip antenna.

The most common variants are:

ESP-01


This is the first and simplest board using the ESP8266.
It allows to attach serial lines, and only breaks out two GPIO pins for native usage.
This is also the cheapest and can be purchased from many chinese suppliers at 3$

ESP-03


This is the second generation board, breaking out more GPIO pins, and using a different antenna, plus an external antenna connector.

Olimex ESP8266 Eval Board

This board, produced by Olimex, breaks out all the ESP8266 pins in breadboard headers, but can also be soldered as a module. 
It contains 2Mb of flash memory, four times that available on the ESP-01 and ESP-03, for larger firmware and space for files useful to make a webserver.

Using the ESP8266 with Arduino

Several Libraries have been developed to use ESP8266 as a module for Arduinos.
Also there is a port of the Arduino IDE for programming the ESP Directly, see below.

Using the ESP8266 via Serial port

By using another microcontroller you can interact with the ESP8266 sending AT Commands via the provided TX and RX pins .
Attention to the voltage of your signal lines, as the ESP8266 only works with 3.3v and pins are not 5V tolerant.
I.e. if you want to attach it to an Arduino clone you must use a logic level converter such as this .
An alternative to the logic level converter is to build a voltage divider circuit for each
signal line.

Programming the ESP8266 Directly

In order to program the ESP directly you need to install a toolchain and firmware upload utility.
The ESP8266 Wiki explains the process in detail.
You should use the ESP Open SDK to build your toolchain.
Espressif also provides an SDK containing the AT Firmware and the proprietary libraries.
Finally a ready to use VirtualBox virtual machine is available here
As an alternative you might want to program the ESP using the Arduino libraries. A port of the Arduino IDE 1.6.x is available here .


Resources



No comments