Giter Club home page Giter Club logo

esp8266's Introduction

esp8266

Various notes about the ESP8266

Models

  • 0018000902-ai03

Serial console

Connections needed:

  • VCC to CH_PD to disable power down
  • GND with GPIO-15 (at least on models with this GPIO). This was needed to make the bootloader boot.
  • Now, connect VCC (3.3V!), GND, RX and TX as usual

Use minicom -b 9600 -D /dev/tty--- -s to get the serial console. Set Hardware Flow Control to "No".

Attention: always make sure mincom is not running while flashing firmware or uploading files. You can temporary suspend it by pressing Ctrl-A,J.

Bootloader

The bootloader is set to a strange baud rate (74766 8N1 with 13,375µs). This needs to be done manually by an external script after minicom is already configured and listening.

Firmware

On the 0018000902-ai03, a baud rate of 9600 8N1 had to be used with firmware version 0.9.2. After entering a command and the enter key, you need to additionally press Ctrl-J to add a LF character, which will make the ESP8266 execute the command.

Common Commands

  • AT+GMR: output firmware revision number
  • AT+CWMODE=N (1=Station, 2=AP, 3=both)
  • AT+CWLAP (list available APs)
  • AT+CWJAP=, (join AP. ssid and password can be double-quoted)
  • AT+CIFSR (print devices ip)

NodeMcu

Open-Source Firmware for the ESP8266 with Lua interpreter and lots of useful bindings

Installation

  • Download the esp-open-sdk
  • run make
  • as suggested, add the xtensa-lx106-elf/bin directory to your path (by exporting it for the current session or in a permament way, like bashrc
  • Download nodemcu-firmware
  • run make
  • Download nodemcu-uploader

Flashing the firmware

Flash the firmware via make flash (GPIO0 needs to be connected to GND for that)

Uploading init.lua

Initially, the ESP8266 will simply display the lua prompt at the serial console. If you want it to execute a given init.lua file on bootup, use nodemcu-uploader.py upload init.lua to upload the file.

Links

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.