The NXT webserver has been up for a few days now and it’s really cool to see so many people logging into it to make the motor move. When I created it, I had no idea that it was going to be used as much as it has been. I’ve had almost 1200 views on the UStream channel and blog hits were up by 75% on the first two days.
Since Monday when it first came online it has run a lot more stable than I had anticipated but I’ve had to do a couple of hard resets and restarts. I have plans to make this a more robust program that can actually be used for more than moving a motor. I’ve been working on a more stable way of reading and parsing the serial data, so stay tuned.
As with everything, all good things must come to an end. The server is taking up a fair bit of space on my desk and is stopping me from really playing with the Dexter Industries WiFi sensor. So I’ll be taking it offline after Sunday 15 May. So if you haven’t played with it yet, head on over to the previous article for info on how to make it work and have a go. If the NXT doesn’t seem to be responding, come back in a few minutes. Also keep in mind there is a 5 second delay in the video feed. Sometimes it gets a little stuck when it receives too many requests at once. I’ve added some code in various places to flush these “bad” connections every 5 minutes as well as a few other little error-recovery tricks.
If I had the Wifi module and the NXT could I do the same thing? Is there instructions on how to do this? Did you have to buy a website or are you using some kind of blog site to control the motor?
Great stuffl.
There are currently no instructions on how to do this. I didn’t buy a website, my provider gives me a static IP and I merely forwarded incoming port 81 to port 81 of the WiFi sensor. You wouldn’t really need a static IP, a dynamic one with a dynamic DNS hostname would also suffice, there a lot of free services that offer DynDNS. Once I’ve made the webserver a little more robust, I will release the code. A rough implementation is available on my website, just go to the other article about the NXT WiFi sensor, it’s somewhere near the bottom.
[…] isnt out quite yet. As you know Dexter Industries is developing a wifi sensor (pictured here). Xander has already demonstrated its great power with RobotC. I have been working on a block and I am happy to report that I have an alpha […]
[…] and we’re pretty close. You may remember BotBench’s experiment a few months back, where Xander hooked his NXT up to the internet with the allowed anyone with an internet connection to control his NXT. Now, you can […]
[…] may remember me building a web server a while back that allowed you to fiddle with a motor over the Internet, now you can have one of […]
[…] and we’re pretty close. You may remember BotBench’s experiment a few months back, where Xander hooked his NXT up to the internet with the allowed anyone with an internet connection to control his NXT. Now, you can […]