Arduino NodeMCU and esp8266

I recently got esp8266 cheap wifi module. I had idea to use it with arduino and existing project that was using CmdMessenger library to comunicate over serial/usb port. After playing with esp8266 I found nice solution to how to replace serial cable. I installed NodeMCU on esp8266 and installed on it two scripts

and

when booting telnet server is opened on port 1001 and ip address is sent to arduino (“5,192.168.0.10;”) so that it can be printed on LCD. When connected from computer to esp8266 using python (terminal on 1001) i send for example  uart.write(0,”1,255;”) and “1,255;” is sent to arduino and when arduino send something back to PC i send it like “print”123″” and 123 is printed on terminal/sent to python.

Leave a Reply