Micropython as Arduino killer

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
User avatar
philwilkinson40
Posts: 63
Joined: Tue Nov 14, 2017 3:11 am
Location: Perth, Australia

Micropython as Arduino killer

Post by philwilkinson40 » Sun Nov 18, 2018 3:29 pm

I know i am not supposed to just post links on the forum. However Andreas Spiess is a legend in the Maker world. His latest video, despite being a bit frustrating for Micropython users, is still excellent publicity.
I hope this video brings more people into the community.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Micropython as Arduino killer

Post by pfalcon » Tue Nov 20, 2018 6:42 am

This guy has funny way of pronouncing "Python" ;-). For non-native English speakers, the name from horse's mouse: https://www.youtube.com/watch?v=SdH8fI1aNZA
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: Micropython as Arduino killer

Post by bitninja » Mon Nov 26, 2018 4:21 am

I just noticed the video and noticed the comments were breaking 1000!

While I tend to not take too much value from YouTube commentators, I did find some glimmer of hope in those looking for a simpler solution than Arduino.

Anyway, are there any other Arduino users that can share what advantages they find in the MicropPython approach?

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Micropython as Arduino killer

Post by mattyt » Mon Nov 26, 2018 6:32 am

I should mention that Andreas reached out after seeing some of my comments - turns out he wants to do a follow-up video to address some of the concerns raised in the comments.

His proposal is for us to help come up with some MicroPython examples - or at least information - that explores topics such as performance, power consumption, quantity/quality of libraries, GC effects etc. I've roped Damien in to help out. We believe it's worthwhile as the video has clearly struck a chord with over 130K views (!) in about a week.

Once we've figured out a few more details we may reach out and ask for some help from you folks!

bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: Micropython as Arduino killer

Post by bitninja » Mon Nov 26, 2018 7:20 am

mattyt wrote:
Mon Nov 26, 2018 6:32 am
Once we've figured out a few more details we may reach out and ask for some help from you folks!
That's great!

What I think would be insightful, would be to take one or two of his previous Arduino-based project videos and re-implement them in MicroPython. Then we could compare and contrast the code complexity, performance, ease of development, etc... It would also demonstrate the depth, breadth and power of MicroPython as a real option for MCU development.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Micropython as Arduino killer

Post by mattyt » Mon Nov 26, 2018 7:26 am

It's a good idea. I've seen a couple of Andreas' (really quite well done) videos but did you have something in particular in mind?

He did specifically want to tackle some of the common threads of concern that were raised but I think there is some leeway to tackle more - it may even require a couple of videos...

User avatar
philwilkinson40
Posts: 63
Joined: Tue Nov 14, 2017 3:11 am
Location: Perth, Australia

Re: Micropython as Arduino killer

Post by philwilkinson40 » Tue Nov 27, 2018 12:16 pm

Matt,
I think a key area that could do with some focus is use of the Micropython REPL.
In Andreas' inital video he skips over this, but I think this is the the massive initial advantage for those arriving to Micropython from Arduino. The ability to directly interface with the bare metal and through the communications bus to externals in real time is revolutionary.

As for libraries, I think we all know that this is an area Micropython could improve. They tend to be scattered across github and the best option to find what you need is usually to search, then if needed post, in this forum!
Perhaps this interest is a trigger to pull together the libraries in a single place.
Phil

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Micropython as Arduino killer

Post by mattyt » Sat Dec 01, 2018 11:13 pm

philwilkinson40 wrote:
Tue Nov 27, 2018 12:16 pm
I think a key area that could do with some focus is use of the Micropython REPL.
Yes, I do want to emphasize the benefits of live coding on the device. For establishing communications to peripherals it's especially beneficial.
philwilkinson40 wrote:
Tue Nov 27, 2018 12:16 pm
As for libraries, I think we all know that this is an area Micropython could improve. They tend to be scattered across github and the best option to find what you need is usually to search, then if needed post, in this forum!
Perhaps this interest is a trigger to pull together the libraries in a single place.
One of the 'deliverables' I want to provide Andreas is a list of links to libraries. Or perhaps an(other?) awesome-like list in github. Lists (like pfalcon's recent addition and, of course, micropython-lib) exist but there are many other libraries floating about. Need to collate them somehow...

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Micropython as Arduino killer

Post by mattyt » Sun Dec 02, 2018 2:53 am

An area we could use help with is MicroPython ESP32 documentation; if you have experience in this area please take a look at this forum post:

viewtopic.php?f=2&t=5609

Thanks!

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

Re: Micropython as Arduino killer

Post by pythoncoder » Sun Dec 02, 2018 7:42 am

philwilkinson40 wrote:
Tue Nov 27, 2018 12:16 pm
...
As for libraries, I think we all know that this is an area Micropython could improve. They tend to be scattered across github and the best option to find what you need is usually to search, then if needed post, in this forum!
Perhaps this interest is a trigger to pull together the libraries in a single place.
Phil
There is a distinction between official libraries and user-contributed ones. Official libraries are in one GitHub repo and bug reports can be raised there for attention by the MicroPython maintainers.

Obviously they can't be responsible for user contributed libraries which are indeed scattered around GitHub. Issues inevitably need to be raised there for attention by the author.

It's a few years since I used Arduino but my recollection is that the problem is largely fixed by the Wiki. That had pointers to user contributed libraries and was a great resource. I found it worked fine.

For some reason the MicroPython wiki is rather little-used. Some time ago I offered to remove the outdated content but Damien wasn't keen on the idea. It would be good if more library authors used it to promote their work.
Peter Hinch
Index to my micropython libraries.

Post Reply