After presenting the project on June the 10th, I have tried to improve the graphic interface of my project, but I unfortunately have some issues with some answering delay of the Esp8266, probably due to the images I put into the app.

img app


After the Interface and application programming week I developped a protocol in C with a web interface written in Javascript. This video is a short demo of the functioning of that interface:

I would like to improve the web interface to give it a nicer look.


ESP8266 test

IMG 20150519 221044

I tested some connection between server and client but I have some problem, in order: - SERVER SIDE: After changing the init.lua now the http server can start normally in the start boot, the server side accept the APP twister command. - CLIENT SIDE: I tryed to change init.lua code for start a wifi.STATION (wifiConfig.mode = 1), after the boot client don’t like connecting at server:

log output:

NodeMCU 0.9.6 build 20150406  powered by Lua 5.1.4
set (mode=1)
MAC: 	18-FE-34-9C-5C-C4
chip: 	10247364
heap: 	16224

Communication with MCU...
...Got answer! AutoDetect firmware...

Can't autodetect firmware, because proper answer not received.

> Connecting to WiFi Access Point ...
Connecting to WiFi Access Point ...
Connecting to WiFi Access Point ...
Connecting to WiFi Access Point ...
Connecting to WiFi Access Point ...
Faild to connect to WiFi Access Point.

only after send command via ftdi take an ip address:

> ip = wifi.sta.getip()
> print(ip)

start manually http server:

> dofile("httpserver.lc")(80)
nodemcu-httpserver running at

But If I try to connect direcly via web browser.. the client not respond!

NodeMCU firmware

  • download and install python
  • Download and install serialPY
  • download esptool.py

In this case, select firmware for ESP01 and download nodemcu-firmware-master/pre_build/0.9.4/514k-flash/nodemcu_512k_latest.bin

open terminal and send this command

python esptool.py –port /dev/yournameport(tty.etcetc) write_flash 0x000000 /Users/ifala/Downloads/nodemcu-firmware-master/pre_build/0.9.4/512k-flash/nodemcu_512k_latest.bin

now I have install the default nodemcu firmware inside the ESP01

to programming the esp01 you must write 2 files and upload with ESPlorer (for osx)


After discuss with my instructor, I discovered this board WIFI ESP8266 for the connection wifi of my twister cube:


802.11 b / g / n
Wi-Fi Direct (P2P), soft-AP
Built-in TCP / IP protocol stack
Built-in TR switch, balun, LNA, power amplifier and matching network
Built-in PLL, voltage regulator and power management components
802.11b mode + 19.5dBm output power
Built-in temperature sensor
Support antenna diversity
off leakage current is less than 10uA
Built-in low-power 32-bit CPU: can double as an application processor
STBC, 1×1 MIMO, 2×1 MIMO
A-MPDU, A-MSDU aggregation and the 0.4 Within wake
2ms, connect and transfer data packets
standby power consumption of less than 1.0mW (DTIM3)


I need (I think a bluethoot or a wifi connection) here I have fine a good video (and a tutorial)[http://giltesa.com/2012/12/21/conectar-dos-arduino-mediante-bluetooth] link how to connect via bluethoot 2 arduino…

another video tutorial Slave/Master bluethoot

Sparkfun XBee USB Breakout Boards

in this article (he connect arduino master/slave


Communication between Android and Arduino with Bluetooth

schedule project blog

share it !