Differences between revisions 1 and 16 (spanning 15 versions)
Revision 1 as of 2015-11-15 19:08:28
Size: 124
Editor: PieterSmit
Comment:
Revision 16 as of 2019-05-29 08:28:55
Size: 2718
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * Small wifi electronic module  * Links [[Sonoff]] , [[MicroPython]] , [[mqtt]] , [[ds18b20]] , [[RabbitMq]]
 * https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/overview

 * 201512 - https://www.hackster.io/komedia/esp8266-automated-dog-feeder-using-pebble-watch-and-more-d43749?ref=newsletter&utm_source=Hackster.io+newsletter&utm_campaign=bbc5d934a5-2015_4_17_Top_projects4_16_2015&utm_medium=email&utm_term=0_6ff81e3e5b-bbc5d934a5-135098377
 * Small wifi electronic module ESP-01(WIR04001251) and ESP-03(WIR04001252)
Line 6: Line 10:
 * http://www.hobbytronics.co.za/p/930/esp8266-serial-wifi-wireless-transceiver
 * 3D wifi map http://hackaday.com/2015/02/17/mapping-wifi-signals-in-3-dimensions/
 * github project for ESP https://github.com/cnlohr/esp8266ws2812i2
 * LUA + programming http://vaasa.hacklab.fi/2015/01/12/esp8266-ds18b20-thingspeak-nodemcu/
Line 8: Line 16:
== 2019 connect old esp8266 Huzzah ==
 * https://www.adafruit.com/product/2471
 * Connect to usb using FDDI 3.3v cable (White usb plug)
   * Connect to serial /dev/ttyUSB using screen {{{
sudo screen /dev/ttyUSB0
   }}}
   * When i click the reset button on esp8266 i get the welcome message {{{
NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
lua: cannot open init.lua
}}}
   * Switch on red led on esp8266 using lua commands {{{
gpio.mode(3, gpio.OUTPUT)
gpio.write(3, gpio.LOW)
#Pause red led on
gpio.write(3, gpio.HIGH)
}}}

=== Program the HUZZAH ESP8266 ===

For the HUZZAH ESP8266 breakout buttons for GPIO0 and RESET are built in to the board. Hold GPIO0 down, then press and release RESET (while still holding GPIO0), and finally release GPIO0.

$ sudo esptool --port /dev/ttyUSB0 erase_flash
 * Upload firmware {{{
$ esptool --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 firmware.bin
## Press hold left button, then click reset, upload begins.
esptool.py v2.1
Connecting........_____....._____....._____....._____....._____....._____.....
Detecting chip type... ESP8266
Chip is ESP8266
Enabling default SPI flash mode...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash...
Flash params set to 0x0040
Took 2.55s to erase flash block
Writing at 0x00015800... (14 %)
Line 9: Line 53:
Wrote 615424 bytes at 0x00000000 in 67.2 seconds (73.2 kbit/s)...

Leaving...
Hard resetting...

}}}

=== Setup Arduino for esp8266 ===
 * Have to download Arduino linux tar file
 * Un-tar and sudo ./install.sh to install
 * Add aditional board url "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
 * Under boards, open board manager and search for esp8266, add
 * Now select board, NodeMCU 0.9 ESP-12
...

esp8266

2019 connect old esp8266 Huzzah

  • https://www.adafruit.com/product/2471

  • Connect to usb using FDDI 3.3v cable (White usb plug)
    • Connect to serial /dev/ttyUSB using screen

      sudo screen /dev/ttyUSB0
    • When i click the reset button on esp8266 i get the welcome message

      NodeMCU 0.9.5 build 20150318  powered by Lua 5.1.4
      lua: cannot open init.lua
    • Switch on red led on esp8266 using lua commands

      gpio.mode(3, gpio.OUTPUT)
      gpio.write(3, gpio.LOW)
      #Pause red led on
      gpio.write(3, gpio.HIGH)

Program the HUZZAH ESP8266

For the HUZZAH ESP8266 breakout buttons for GPIO0 and RESET are built in to the board. Hold GPIO0 down, then press and release RESET (while still holding GPIO0), and finally release GPIO0.

$ sudo esptool --port /dev/ttyUSB0 erase_flash

  • Upload firmware

    $ esptool --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 firmware.bin
    ## Press hold left button, then click reset, upload begins.
    esptool.py v2.1
    Connecting........_____....._____....._____....._____....._____....._____.....
    Detecting chip type... ESP8266
    Chip is ESP8266
    Enabling default SPI flash mode...
    Configuring flash size...
    Auto-detected Flash size: 4MB
    Erasing flash...
    Flash params set to 0x0040
    Took 2.55s to erase flash block
    Writing at 0x00015800... (14 %)
    ...
    Wrote 615424 bytes at 0x00000000 in 67.2 seconds (73.2 kbit/s)...
    
    Leaving...
    Hard resetting...

Setup Arduino for esp8266

...

esp8266 (last edited 2019-05-29 08:28:55 by PieterSmit)