Simple webserver on EV3 used to control a robot

Post your EV3 projects, project ideas, etc here!

Moderators: roger, gloomyandy, skoehler

Simple webserver on EV3 used to control a robot

Postby mcrosbie » Sun Jan 05, 2014 5:18 pm

Hi everyone,

For this weekend's project I built a simple webserver in Java on the EV3 which serves a GUI webpage that can be used to control a robot. It is based on the NanoHTTPD web server code; a lightweight web server that can run comfortably on the EV3 in Java.

http://thinkbricks.net/?p=870

It's not rocket science, and you can definitely have fun adding jQuery code into the HTML file to make more a responsive client experience. My next experiment will be to use processing.js to build rich GUIs in the browser using Processing to talk to the EV3.

Enjoy!
Mark
mcrosbie
Novice
 
Posts: 25
Joined: Wed Mar 24, 2010 12:27 pm
Location: Dublin, Ireland

Re: Simple webserver on EV3 used to control a robot

Postby lawrie » Mon Jan 06, 2014 8:29 pm

Hi Mark,

Very nice. I tried it and it worked fine. I looked at NanoHTTPD for putting a REST remote API on the EV3, but haven't decided if that is a good idea. The existing remote API is done using Java RMI (which doesn't work from Android).

The use of Processing in the browser sounds interesting.

Lawrie
lawrie
leJOS Team Member
 
Posts: 919
Joined: Mon Feb 05, 2007 1:27 pm

Re: Simple webserver on EV3 used to control a robot

Postby GeekDude » Tue Jan 28, 2014 4:20 pm

You may be interested in my CoNXTroll3r python-based ev3 remote website
GeekDude
New User
 
Posts: 9
Joined: Wed Nov 13, 2013 12:50 pm

Re: Simple webserver on EV3 used to control a robot

Postby esmetaman » Sun May 04, 2014 8:00 pm

In my case, I am using WebSockets.

The EV3 brick a powerful hardware to run a good Web Application Server as Jetty or Apache for example.

Surfing on the web, I discovered a Github project to run in a Java Desktop application a WebSocket Server:
https://github.com/TooTallNate/Java-WebSocket

And I did some test with success.

You can see the example here:
https://github.com/jabrena/livingrobots
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://www.iloveneutrinos.com/
User avatar
esmetaman
Advanced Member
 
Posts: 290
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain

Re: Simple webserver on EV3 used to control a robot

Postby esmetaman » Fri May 09, 2014 6:42 pm

Recently this project added websocket support:
https://github.com/NanoHttpd/nanohttpd
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://www.iloveneutrinos.com/
User avatar
esmetaman
Advanced Member
 
Posts: 290
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain


Return to EV3 Projects

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

more stuff