Web Control of Robot (RPi / Arduino) - Software Recomendations

Hi;

I am enhancing my Arduino Nano based autonomous collision avoidance robot by adding a Raspberry Pi to stream video to a web page and provide manual control of the robot via buttons on the web page with the video stream.

So far I have installed Apache2 weberver and created a web page using Bootstrap with a button on it, I have successfuly connected the Arduino to the Pi via I2C and using a CGI Python script I can press a button on the web page to turn on an LED. 

I then progressed by adding Fwd / Back etc buttons to the web page and creating some Python CGI scripts to control the Motors. This got a little messy and was really slow to react (probably due to the old code that I borrowed).

So I guess I am using python, html, javascript and cgi.

I am now investigating better ways to acheive this more efficiently / faster as the control on the Robot needs to react better.

I am quite the beginner and the choice doesn't help so if anyone can offer some advice on what software avenues I should pursue it would be a great help, and prevent me learning something that I end up not using.

At the moment I am looking at Tornado (Think this is an alternative to Apache2) using web sockets?

 

Thanks 

 

Tornado is good for this use
Tornado is good for this use case, you can also take a look at Twisted and its Autobahn library. There is also a bunch of other webscoket implementations in Python, mostly used as a standalone program.