logo
navigationGo.pngQuick Navigation
allprojects32.pngAll projects
hardware32.pngHardware
links32.pngLinks

favoriteStar32.pngTop projects
Alan numitron clock
Clapclap 2313/1386
SNES Pi Webserver
USB Volume/USB toys
Smokey amp
Laser cutter
WordClock
ardReveil v3
SNES Arcade cabinet
Game boy projects
cameleon
Home Presence Detector

github32.pngGitHub
AlanFromJapan

navigationMail.pngContact me

alanfjmail.png
3flags.pngWho's Alan?


Akizukidenshi
Elec-lab
Rand Nerd Tut
EEVblog
SpritesMods
Switch-science
Sparkfun
Suzusho
Datasheet Lib
Reddit Elec
Ermicro
Carnet du maker (fr)
Marutsu
ATmel blog (defunct)

arduino and esp8266

Setting up Linux for cross compilation

Setup of PlatformIO

See the page about Raspi, most of the setup will be there. See the PlatformIO quickstart guide also, this is basically just a summary.
  • sudo apt-get install emacs-nox python-setuptools
  • ⇒ install emacs without X modules, python's easy_install so you can get pip tool
  • sudo easy_install pip
  • ⇒ install python's pip tool
  • sudo pip install -U platformio
  • ⇒ install platformio
  • mkdir wherever/the/project/will/be
  • platformio init --board esp01_1m
  • ⇒ Inits a platformio project for a standard ESP8266 ESP-01 board
  • put the main.cpp file (arduino syntax) in src/
  • platformio run
  • ⇒ will build the project

    Firmware uploading

    Just use esptool:
  • git clone https://github.com/espressif/esptool.git
  • Push firmare: sudo python esptool.py --port /dev/ttyUSB0 write_flash 0x00000 The_Path_To_The_NodeMCU_Firmware.bin
  • Backup the firmware: sudo python esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x400000 The_Path_To_The_Firmware_Backup.bin
  • LUA on ESP8266

  • http://benlo.com/esp8266/ is a good entry point
  • Get the LUA firmware? Go to this page and build your own https://nodemcu-build.com/

  • Flashing:
  • Install esptool
  • Clean all esptool.py --port COM2 erase_flash
  • Flash esptool.py --port COM2 write_flash -fm qio 0x00000 "nodemcu_0.9.5.bin"
  • Random old stuff

    For uploading the firmware:
    1. get the firmware https://github.com/nodemcu/nodemcu-firmware/tree/master/pre_build
    2. get the flasher https://github.com/nodemcu/nodemcu-flasher/tree/master/Win64/Release
    3. power off
    4. Connect GPIO0 to ground
    5. Power on
    6. Run the flasher
    7. Set the COM port and baud rates
    8. In the 2nd tab add the firware to upload
    9. Go for upload
    10. Once finished, unplug gpio0
    11. Use http://benlo.com/esp8266/ LuaLoader to play with lua or simple putty
      1. Samples here http://nodemcu.com/index_en.html


    All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
    electrogeek.cc ~ Formerly known as Kalshagar.wikispaces.com (AlanFromJapan [2009 - 2017])