MicroPython live

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

MicroPython live

Post by Damien » Mon Feb 02, 2015 10:26 am

In order to let people play with a pyboard and see how it works, I have connected a pyboard to the internet, attached some motors and lights, pointed a webcam at it, and made an interface where one can write and execute code from the browser:

http://micropython.org/live

Multiple people can use it at once and you can watch what other people do. There is a queue for code if more than one person submits a job at the same time.

Let me know if you have any suggestions for improvements! Or if you find bugs :)

Note that you have 10 seconds maximum job time and the board is hard-reset between jobs. The filesystems are also read-only.

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: MicroPython live

Post by stijn » Mon Feb 02, 2015 1:05 pm

This is really neat!
Video doesn't come through properly though (for me a tlast, tried with FF and IE): Image

User avatar
kfricke
Posts: 342
Joined: Mon May 05, 2014 9:13 am
Location: Germany

Re: MicroPython live

Post by kfricke » Mon Feb 02, 2015 5:10 pm

Cool site and nice environment to show strangers how easy to use Micro Python (|MicroPython|microPython|uPy) really is.

Maybe you should add a note the Micro Python is usually intended to run scripts longer than 10 seconds. Never underestimate that inattentive press agent who tells that this is a toy-project for short-term tasks only.

btw, the video is borked here as well. Earlier today it was shiny tho.

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Post by Damien » Mon Feb 02, 2015 7:29 pm

Fixed the video, should be working again.

There are still some bugs to iron out :)

JennaSys
Posts: 33
Joined: Tue Jul 15, 2014 8:29 am
Location: Southern California, US
Contact:

Re: MicroPython live

Post by JennaSys » Tue Feb 03, 2015 7:27 am

That's really cool!

What do you have hosting the web server/camera stream? I'm curious about the setup as it looks like it could be used for many other practical applications.
John Sheehan

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: MicroPython live

Post by Damien » Tue Feb 03, 2015 8:49 am

The video streaming is done using https://github.com/phoboslab/jsmpeg, which is a very nice MPEG decoder written in pure Javascript, so the webpage requires no Flash player or the likes.

My backend server with the pyboard and webcam uploads the stream using ffmpeg.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: MicroPython live

Post by pythoncoder » Tue Feb 03, 2015 5:59 pm

That is superb :D
Peter Hinch
Index to my micropython libraries.

User avatar
polygontwist
Posts: 36
Joined: Sat Jun 28, 2014 4:54 pm
Location: Germany, Rostock
Contact:

Re: MicroPython live

Post by polygontwist » Thu Feb 05, 2015 8:00 pm

Very interesting! :o
how you have connected the board with the Internet?

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: MicroPython live

Post by Damien » Thu Feb 05, 2015 10:03 pm

The pyboard is connected through UART to another pyboard, which is connected via USB to a PC, which is connected to the internet and talks to the website, which coordinates the jobs from clients.

Post Reply