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
This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest