Search This Blog

Wednesday, September 16, 2015

nodeMCU Amica ESP-12E, Wi-Fi module overview!

 Amica ESP-12E

Wi-Fi Module – ESP-12E module similar to ESP-12 module but with 6 extra GPIOs.USB – micro USB port for power, programming and debuggingHeaders – 2x 2.54mm 15-pin header with access to GPIOs, SPI, UART, ADC, and power pinsMisc – Reset and Flash buttonsPower – 5V via micro USB portDimensions – 49 x 24.5 x 13mm

Starting up the module

  • Install the CP2102 USB-TTL driver
  • Open serial Terminal (ex: coolTerm on OSX) & use 9600 Baud Rate
  • Test with module and initiate communication! Try the following commands:
  • You can also toggle or/and read GPIO status:
pin = 1

Blink example:
pin = 1

while 1 do
tmr.delay(1000000) -- 1 second
tmr.delay(1000000) -- 1 second

To get the board automatically run a script right after boot is complete, you can edit init.lua as follows:"init.lua","wine(print("hello world"))

Flash NodeMCU firmware

Download the firmware from Github, as well as nodemcu-flasher to flash the firmware to the node. 

Startup init.lua

  • After Flashing, the board does not have any LUA files inside, at bootup, the module will try to run init.lua by default.

Using Arduino IDE

- Install Arduino IDE 1.6.5
Install the ESP8266 Board Package by entering:
into Additional Board Manager URLs field in the Arduino v1.6.4+ preferences.

Use the Board manager to install the ESP8266 package.
After reboot, select your module from the Tools->Board 
- Write Arduino code :-)

    Tuesday, September 8, 2015

    Pulse rate sensor !


    To learn more about using the pulse rate sensor with Arduino, please CLICK HERE
    The code and info about the OLED and rotary encoder , please CLICK HERE