Move servos over web

Forums:

After some initial learning issues, the Ultraborg is working

It's awesome great job guys.

My question is do u have software or can recommend any that would
Allow me to move my servos over a web page ?

Just thought I'd ask before I go off and reinvent the wheel !

Thank u !

M

piborg's picture

As it happens we have been working on a web based UI for UltraBorg:

It is all open source, you can find it on GitHub : https://github.com/piborg/ultraborg-web

To install it on to your Raspberry Pi run the following commands:

cd ~
git clone https://github.com/piborg/ultraborg-web.git

To run the script use this command: sudo ~/ultraborg-web/ubWeb.py
Then simply open the web browser on you computer or phone and go to the IP address of your Raspberry Pi

There is some more detailed information on the GitHub page.

Any comments or suggestions would be great, at the moment it is basically just a clone of the demo GUI provided by the standard examples.

Awesome thanks Guys !! Great starting point I'll let you know how I get on.

Just one query, whats creating the webserver ? Flask ?

piborg's picture

Put simply, Python itself.

We are using the standard SocketServer library for dealing with the network (TCP) connections.

The script itself then handles the raw HTTP request itself.
This is fairly simple as it only responds to GET requests, it then uses the address requested to decide what to do.
The script also builds up the raw HTML / HTTP reply and uses the SocketServer to send it.

For anyone using this, I find it works great in Chrome, but I get very weird layouts in IE 11 and firefox 40.0.3

See screen shots

Images: 
piborg's picture

It turns out I had a couple of %% symbols in the code where it should have been just %.

I have fixed these in GitHub, it now formats correctly in FireFox.

Strangely enough both on the BlackBerry and using Maxthon the formatting already came out as intended.
While Chrome did look reasonable it was still not quite what was intended, the numbers should line up with the sliders.

To update to the latest version use these commands:

sudo ~/ultraborg-web
git pull

awesome thanks guys ! Great Job.

Subscribe to Comments for "Move servos over web "