Wifi for NXT using the cheap ESP8266 module

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: imaqine, 99jonathan, roger

New User
Posts: 14
Joined: Thu Dec 31, 2009 1:25 pm

Wifi for NXT using the cheap ESP8266 module

Postby BlackSuit » Sat Apr 18, 2015 5:57 pm

Hi all,
after the discussion http://www.lejos.org/forum/viewtopic.php?f=6&t=7734, I decided to build an example project how to connect the 3€ ESP8266 wifi module to any Lego Mindstorms NXT.

I use the great Lua firmware from NodeMCU for the ESP to implement a simple Master-slave type communication and to control the direction line for the RS485 transceiver. All output of the Lua console is simply stored on the module until the master asks for the data, which, in fact, was quite easy, because redirection of the console output is supported by the firmware. So there is a true half-duplex communication without any collisions possible.
On the NXT side, you can just use the full lua interface of the ESP. I have just implemented the webserver example from NodeMCU. Just rember to ask for the results regularly. The proof of concept is running reliable, but there is no further bus protocol with checksums implemented yet.

Find the whole documentation including all sources at http://stefanshacks.blogspot.de/2015/04/wi-fi-for-lego-mindstorms-nxt-esp8266.html

Return to “NXJ Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest