GithubHelp home page GithubHelp logo

esp8266_with_arduino_ide's Introduction

Configure Arduino IDE for ESP8266

Simplified steps as of of Arduino IDE 1.6.8 with ESP2866 library version 2.2.0-rc1 or greater

  • Start Arduino (Note: Assuming version 1.6.8)
  • Click 'Arduino' -> 'Preferences'
  • Restart Arduino IDE
  • Click 'Tools' -> 'Board' -> 'Boards Manager'
    • Select 'Generic ESP8266 Module' # NOTE: Assuming version 2.2.0-rc1 or greater
  • Click 'Tools' -> 'Board' -> 'Generic ESP8266 Module'
  • Click 'Tools' -> 'Upload Speed' -> '460800' # I am impatient and this seems to work, even though the IDE warns about it
  • Click 'Tools' -> 'Port' -> Select your port
  • Upload your sketch

Note: You can still use esptool.py if you want

perl -i -pe "s#tools.esptool.upload.pattern=.*#tools.esptool.upload.pattern=/usr/bin/python ${HOME}/bin/esptool.py --port \"{serial.port}\" write_flash 0x00000 \"{build.path}/{build.project_name}.bin\"#" `cd ~/Library/Arduino15/packages/esp8266/hardware/esp8266/; ls -d -1 $PWD/*|tail -1`/platform.txt

Steps required for previous versions

mv ~/Library/Arduino15 ~/Library/Arduino15-old
mkdir ~/Library/Arduino15
cp ~/Library/Arduino15-old/preferences.txt ~/Library/Arduino15
  • Start Arduino (Note: Assuming version 1.6.7)
  • Click 'Arduino' -> 'Preferences'
  • Restart Arduino IDE
  • Click 'Tools' -> 'Board' -> 'Boards Manager'
    • Select 'Generic ESP8266 Module' # NOTE: Assuming version 2.1.0-rc2 (see replace below)
  • Stop Arduino IDE
  • Install pyserial, esptool, and reconfigure IDE to use pyserial
sudo pip install pyserial
mkdir ~/bin
cd /tmp && git clone https://github.com/themadinventor/esptool && cp esptool/esptool.py ~/bin/esptool.py

# Note: using command line substitution with ${HOME} below because the platform.txt file cannot interpret ~
perl -i -pe "s#tools.esptool.upload.pattern=.*#tools.esptool.upload.pattern=/usr/bin/python ${HOME}/bin/esptool.py --port \"{serial.port}\" write_flash 0x00000 \"{build.path}/{build.project_name}.bin\"#" `cd ~/Library/Arduino15/packages/esp8266/hardware/esp8266/; ls -d -1 $PWD/*|tail -1`/platform.txt
  • Start Arduino IDE
  • Connect your ESP8266
  • Upload your sketch

FTDI or PL2303 Connection

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.