User Tools

Site Tools


elec:esp8266:nodemcu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
elec:esp8266:nodemcu [2015/11/07 11:59] – [NodeMCU from source] redoxelec:esp8266:nodemcu [2015/11/07 12:06] – [Connect to your AP] redox
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 44: Line 44:
 Wait until completion... Wait until completion...
  
-### NodeMCU from source+    Connecting... 
 +    Erasing flash... 
 +    Writing at 0x00070c00... (100 %) 
 +     
 +    Leaving... 
 + 
 +Reset your board (powercycle). Connect using a serial app, like _picocom_ 
 + 
 +    picocom /dev/ttyUSB0 
 + 
 +And you should be ready to go ! More info on NodeMCU usage, on the github page: https://github.com/nodemcu/nodemcu-firmware 
 + 
 +### Connect to your AP 
 + 
 +In the serial terminal: 
 + 
 +    wifi.setmode(wifi.STATION) 
 +    wifi.sta.config("SSID","password"
 +    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://github.com/nodemcu/nodemcu-firmware Grab the firmware from github: https://github.com/nodemcu/nodemcu-firmware
/home/share/www/redox.ws/wiki/data/pages/elec/esp8266/nodemcu.txt · Last modified: 2023/11/24 21:55 by 127.0.0.1