Git Product home page Git Product logo

iteadlib_arduino_esp8266's Introduction

Warning!

This library has been discarded. A new library named WeeESP8266 is recommended, which is more easy-to-use for users. WeeESP8266 can be downloaded at https://github.com/itead/ITEADLIB_Arduino_WeeESP8266.

ESP8266 library

When you use with UNO board, uncomment the follow line in uartWIFI.h.

#define UNO

When you use with MEGA board, uncomment the follow line in uartWIFI.h.

#define MEGA

Connection:

When you use it with UNO board, the connection should be like these:

ESP8266_TX->D0

ESP8266_RX->D1

ESP8266_CHPD->3.3V

ESP8266_VCC->3.3V

ESP8266_GND->GND

FTDI_RX->D3 //The baud rate of software serial can't be higher that 19200, so we use software serial as a debug port

FTDI_TX->D2

When you use it with MEGA board, the connection should be like these:

ESP8266_TX->RX1(D19)

ESP8266_RX->TX1(D18)

ESP8266_CH_PD->3.3V

ESP8266_VCC->3.3V

ESP8266_GND->GND

When you want to output the debug information, please use DebugSerial. For example,

DebugSerial.println("hello");

Attention

Note1: The size of message from ESP8266 is too big for arduino sometimes, so the library can't receive the whole buffer because
the size of the hardware serial buffer which is defined in HardwareSerial.h is too small.

Open the file from \arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h. See the follow line in the HardwareSerial.h file.

#define SERIAL_BUFFER_SIZE 64

The default size of the buffer is 64. Change it into a bigger number, like 256 or more.

The SRAM size of mega is bigger than UNO's, so it is better to use MEGA board to communicate with ESP8266.

BUG: When you use this library and receive the http package, it might miss some characters because the library can't process so much data in the same time.

Created by Stan Lee([email protected])

2014/10/8

Modified version

V1.0 released the first version of ESP8266 library

iteadlib_arduino_esp8266's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.