ESP-BKOUT

From blwiki
Jump to: navigation, search

Tindie-larges-v2.png

ESP8266 ESP-01 breakout card

ESP-BKOUT 5866-512px.jpg

Features

  • ESP8266 WiFi Module (On ebay)
  • Arduino Nano Module (On bay)
  • On-board Power Supply
    • 7-9 VDC power input
    • 5V power regulator for the Arduino Nano
    • 3.3V power regulator for the ESP-8266
  • Voltage translator between the Nano and the ESP parts
  • Header to allow connection to the ESP module if no Nano is used
  • Headers for Nano outputs allows sensors to be connected to the Nano
  • 49x49mm form factor

ESP8266 Features

  • SDIO 2.0, SPI, UART
  • 32-pin QFN package
  • Integrated RF switch, balun, 24dBm PA, DCXO, and PMU
  • Integrated RISC processor, on-chip memory and external memory interfaces
  • Integrated MAC/baseband processors
  • Quality of Service management
  • I2S interface for high fidelity audio applications
  • On-chip low-dropout linear regulators for all internal supplies
  • Proprietary spurious-free clock generation architecture
  • Integrated WEP, TKIP, AES, and WAPI engines
  • Supports APSD for optimal VoIP applications
  • Patented spurious noise cancellation algorithm for integration in SOC applications
  • Supports Bluetooth co-existence interface
  • Self-calibrated RF to ensure optimal performance under all operating conditions
  • Zero factory tuning
  • No external RF components
  • 802.11 b/g/n
  • WiFi Direct (P2P), soft-AP
  • Integrated TCP/IP protocol stack
  • Integrated TR switch, balun, LNA, power amplifier and matching network
  • Integrated PLLs, regulators, DCXO and power management units
  • +19.5dBm output power in 802.11b mode
  • Power down leakage current of <10uA
  • Integrated low power 32-bit CPU could be used as application processor
  • SDIO 1.1/2.0, SPI, UART
  • STBC, 1×1 MIMO, 2×1 MIMO
  • A-MPDU & A-MSDU aggregation & 0.4ms guard interval
  • Wake up and transmit packets in < 2ms
  • Standby power consumption of < 1.0mW (DTIM3)

Connectors - Revision X2 board

P1 - FTDI Connector (6-pin BERGSTIK)

FTDI Pinout

Pin Description

Direction (Card Relative)

1 GND Common
2 CTS Input
3 VCC Output
4 TX Output
5 RX Input
6 RTS Output

P2 - Arduino expansion connector

  1. A0
  2. A1
  3. A2
  4. A3
  5. A4/SDA
  6. A5/SCL
  7. A6
  8. A7
  9. VCC
  10. GND

P3 - Arduino expansion connector

  1. D7
  2. D6
  3. D5
  4. D4
  5. D3
  6. D2
  7. VCC
  8. GND

7-9V - DC Power connector

  • Shell = Gnd
  • Center = +7-9V DC

U4 - ESP8266

Pinout matches standard ESP-01 parts.

  1. ESPTXD
  2. GND
  3. RTS
  4. +3.3V
  5. N/C
  6. DTR
  7. +3.3V
  8. ESPRXD

U5 - Arduino NANO

  • Standard Arduino Nano pinout.

Card Check-out

Serial Port connection

  • ESP8266 has a serial port interface
    • Can do Serial <> Wireless "bridging"
    • Also, used to set up the part and load new software
  • Serial connection is via the Arduino Nano which moves data between USB/Serial and the ESP8266 serial interface
  • ESP8266 comes up at 115,200 baud
  • Can't use the Arduino Nano's Hardware Serial port since it is used by the USB/Serial port
  • There are two software serial port libraries which allow GPIO lines to be used as Serial ports
  • Enter command to lower baud rate
AT+CIOBAUD=9600<enter><ctrl-J> (not persistent)
- or -
AT+UART_DEF=9600,8,1,0,0<enter><ctrl-J> (persistent)

Steps I followed

  • Find the firmware version
AT+GMR
AT version:0.25.0.0(Jun  5 2015 16:27:16)
SDK version:1.1.1
Ai-Thinker Technology Co. Ltd.
Jun 23 2015 23:23:50
  • Set to both AP + Station mode
AT+CWMODE_DEF=3
  • Enter SSID and password for wireless router
AT+CWJAP_CUR="myssid","mypasswd"
WIFI CONNECTED
WIFI GOT IP

OK
  • Find the IP address
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:**:**:**:**"
+CIFSR:STAIP,"192.168.1.11"
+CIFSR:STAMAC,"18:fe:**:**:**:**"
  • Ping from another computer
C:\Windows\system32>PING 192.168.1.11

Pinging 192.168.1.11 with 32 bytes of data:
Reply from 192.168.1.11: bytes=32 time=4ms TTL=255
Reply from 192.168.1.11: bytes=32 time=3ms TTL=255
Reply from 192.168.1.11: bytes=32 time=2ms TTL=255
Reply from 192.168.1.11: bytes=32 time=2ms TTL=255

Ping statistics for 192.168.1.11:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 4ms, Average = 2ms

Programming

  • To flash the esp8266 one has to hold GPIO 0 and GPIO 15 low, GPIO 2 high, pulse reset low, and then upload the firmware via the TX/RX pins.
  • GPIO 15 is grounded on the ESP-01

Esp8266 esp 01 module pinout diagram cheat sheet by adlerweb-d9iwm7a.png

ESP-BKOUT as Nano Breakout board

ESP-BKOUT-CAD-X2-front-2.PNG

  • Uses ESP-BKOUT board
  • Populate DC jack, male header pins, 15-pin female strip
  • Uses Nano functions
    • ATMega328 microprocessor - Arduino compatible
    • DC regulator
    • Reset switch
    • Mini-USB

Pin headers

ESP-BKOUT-CAD-X2-P2.PNG

  1. A0
  2. A1
  3. A2
  4. A3
  5. A4/SDA
  6. A5/SCL
  7. A6
  8. A7
  9. +5V
  10. GND

ESP-BKOUT-CAD-X2-P3.PNG

  1. D7
  2. D6
  3. D5
  4. D4
  5. D3
  6. D2
  7. +5V
  8. GND

Rev X2 Changes

  • Changed P1 to be a standard 6-pin FTDI connector
  • Removed download select header
    • Can duplicate the function via a number on the FTDI connector if desired

Assembly Sheet

Layout Rev X2

ESP-BKOUT-CAD-X2-front-2.PNG

Layout Rev X1

ESP-BKOUT-CAD-X1.PNG

Rework Rev X2

  • FTDI connector issue - bend P1 pin 6 up out of the way (or clip it).
    • With this fix the FTDI works well

Rework Rev X1

Revision X1 rework

Resources