elec:esp8266:nodemcu
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| elec:esp8266:nodemcu [2015/11/07 11:41] – created redox | elec:esp8266:nodemcu [2023/11/24 21:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| So, I got a cheap NodeMCU board from eBay. Here are some notes to get started with the ESP8266 ! | So, I got a cheap NodeMCU board from eBay. Here are some notes to get started with the ESP8266 ! | ||
| - | ## Requirements | + | ## Basic use |
| ### ESPTool | ### ESPTool | ||
| Line 23: | Line 23: | ||
| Which means your board is working ! It's also included in the NodeMCU firmware repository | Which means your board is working ! It's also included in the NodeMCU firmware repository | ||
| - | ### NodeMCU | + | ### NodeMCU |
| + | |||
| + | Download the last NodeMCU release from github: https:// | ||
| + | |||
| + | Check the image | ||
| + | ./ | ||
| + | Should output something like | ||
| + | Entry point: 40100008 | ||
| + | 3 segments | ||
| + | |||
| + | Segment 1: 31900 bytes at 40100000 | ||
| + | Segment 2: 3064 bytes at 3ffe8000 | ||
| + | Segment 3: 8 bytes at 3ffe8bf8 | ||
| + | |||
| + | Checksum: 12 (valid) | ||
| + | |||
| + | If it looks okay, proceeed to the next step, Flash ! | ||
| + | ./ | ||
| + | |||
| + | Wait until completion... | ||
| + | |||
| + | Connecting... | ||
| + | Erasing flash... | ||
| + | Writing at 0x00070c00... (100 %) | ||
| + | |||
| + | Leaving... | ||
| + | |||
| + | Reset your board (powercycle). Connect using a serial app, like _picocom_ | ||
| + | |||
| + | picocom / | ||
| + | |||
| + | And you should be ready to go ! More info on NodeMCU usage, on the github page: https:// | ||
| + | |||
| + | ### Connect to your AP | ||
| + | |||
| + | In the serial terminal: | ||
| + | |||
| + | wifi.setmode(wifi.STATION) | ||
| + | wifi.sta.config(" | ||
| + | ip = wifi.sta.getip() | ||
| + | print(ip) | ||
| + | |||
| + | Output is the current IP of your board. Open a new terminal and try to _ping_ it =) | ||
| + | |||
| + | This setting is kept in flash I guess, since it still works after powercycling the board... | ||
| + | |||
| + | ## Build from source | ||
| Grab the firmware from github: https:// | Grab the firmware from github: https:// | ||
| Line 30: | Line 76: | ||
| cd nodemcu-firmware/ | cd nodemcu-firmware/ | ||
| + | FIXME Todo | ||
/home/share/www/redox.ws/wiki/data/attic/elec/esp8266/nodemcu.1446896480.txt.gz · Last modified: 2023/11/24 21:55 (external edit)