Skip to content

Circlebit/esp8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experiments with ESP8266 boards

Setup for first experiments

  • Two NodeMCU and a small router as Access Point

    3V3 and GND of the NodeMCUs are connected so you only have to connect one USB to power both. One board has a button on a GPIO, the other one a big, red LED.

    Turning an LED on and off in a Web Browser via Wifi.

Boards

I ordered two different boards from China in September 2018, both referred to as "NodeMcu V3" by the seller. This article has more infos on different NodeMCU boards.

Amica NodeMcu

  • Price: € 2,41

  • USB-Serial converter: CP2104

  • Arduino IDE Settings:

LoL1n NodeMcu V3

  • Price: € 2,19

  • USB-Serial converter: CH340

  • Arduino IDE Settings: Same as the Amica but you may have to install a driver for the C340 and adjust the COM-Port

  • This board is two units wider than the other ones. It fits on a common breadboard but there is no space to connect something to the pins comfortably.

Adafruit Feather HUZZAH

  • Price: $ 16,95 at Adafruit; 20-30€ at amazon.de or ebay.de
  • USB-Serial converter: CP2104
  • More info at the Adafruit site. I could work with this one at school. Size and layout look similar to the Amica. It seems to have a LiPo Battery connector and they also sell a bunch of cool shields and accessoirs for it and other boards with the same form factor. The price is way higher than the others though.

Development Environment

The Arduino IDE works fine but I'm using Visual Studio Code with Arduino plugin among others. It works real nice so far. I just had to add "AppData\Local\Arduino15\packages\" to includePath in c_cpp_properties.json so the headers are found.

Useful bits of information

Wifi settings on the ESP8266 are saved to flash memory

Once you've connected to a network the SSID and passphrase are written to flash and will automatically be used in the future. In this case it seems to be enough to call WiFi.begin() instead of WiFi.begin(ssid, password) to connect to network. This saves you from having your password in the Code. (This behaviour can be changed with persistent).

About

Code samples for the ESP8266 based NodeMCU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages