Code Monkey home page Code Monkey logo

esp8266_softwareserial's Introduction

ESP8266_SoftwareSerial

Based on ITEAD's library this library improves communication when using SoftwareSerial to comminucate between the Arduino and the ESP8266.

Intro

We have modified the original library due to Software serial baudrate problems. Now, the init function, when using software serial only, will set the ESP8266 baudrate to 9600.

Wiring

You'll need:

  1. Arduino Uno
  2. ESP8266
  3. Logic Level Converter

Wiring ESP8266 to Arduino Uno

Usage

See example usage in Firmware.ino

Troubleshooting

  • If you receive partial response from the esp8266 when using software serial - go to C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.h Change line 42: #define _SS_MAX_RX_BUFF 64 // RX buffer size To: #define _SS_MAX_RX_BUFF 256 // RX buffer size this will enlarge the software serial buffer.
  • Sometimes setting the baudrate on initialization fails, try resetting the Arduino, it should work fine.
  • On some cases it might be necessary to flash the ESP's firmware. See Flashing the ESP

Flashing the ESP

  1. Use a 3.3v FTDI board like this one
  2. Hookup the ESP to the FTDI Wiring ESP8266 to FTDI
  3. Get the ESP8266Flasher
  4. Get the 1.1.1.1 Firmware
  5. Flash the ESP!

Reference

License

Released under GPLv3. View the license

esp8266_softwareserial's People

Contributors

eyak avatar robohad avatar yanais avatar

Watchers

Lesther Borge 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.