Micropython on Any Arduino Board?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Micropython on Any Arduino Board?

Post by yllumi » Mon May 04, 2015 8:30 am

Is there any way to run micropython on Arduino board? Which Arduino Board that can run Micropython and how to do it?

User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Re: Micropython on Any Arduino Board?

Post by yllumi » Mon May 04, 2015 8:35 am

Ah, I found this in micropython wiki https://github.com/micropython/micropyt ... rduino-Due :D
But porting hasn't yet been done for this board..

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

Re: Micropython on Any Arduino Board?

Post by pfalcon » Mon May 04, 2015 10:40 am

MicroPython requires minimum 128K of Flash, 8K of RAM (more RAM required for realistic usage). This leaves out "classic" Arduino boards like Uno, etc. Arduino Due is right target for a port, but as you saw, nobody yet seems to have done it yet.
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/

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

Re: Micropython on Any Arduino Board?

Post by Damien » Wed May 06, 2015 11:29 pm

The Netduino Plus 2 is supported by uPy and has Arduino headers.

qubit
Posts: 3
Joined: Sun May 24, 2015 8:46 pm

Re: Micropython on Any Arduino Board?

Post by qubit » Sat Nov 07, 2015 10:10 pm

Not exactly Arduino but I am attempting to port the framework over to the Atmel M0 and M7 chips, partly because I use them and trying to give Atmel some more loving. :D Being a novice at this Micropython stuff I don't expect my progress to be anything fast.

I have managed to build an image with no errors but no REPL on the USB or debug port. Just to clarify, is the bare-arm the best starting place for porting over to other ARM based (Atmel) MCUs?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Micropython on Any Arduino Board?

Post by dhylands » Sat Nov 07, 2015 11:01 pm

bare-arm or minimal are probably reasonable places to start if going to a new family (i.e. not STM).

We have MicroPython running on the STM32F7DISC board which is using an M7 processor. But if you're on a non-stm processor, then the peripherals will all be different.

eerimoq
Posts: 9
Joined: Mon Sep 26, 2016 5:44 pm

Re: Micropython on Any Arduino Board?

Post by eerimoq » Mon Sep 26, 2016 5:54 pm

I've been working on a Programming Platform called Simba that is a C implementation of an RTOS and various drivers. A few weeks ago I stumbled upon MicroPython and was really impressed. I figured, hey, why not try to run MicroPython on top of my RTOS, and so I did.

I named it Pumbaa! =)

It supports the Arduino Due and can be installed using the Arduino IDE. Write the main frozen Python script in the sketch file. Pretty neat for the basic user!

Here is the documentation: http://pumbaa.readthedocs.io/en/latest/

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: Micropython on Any Arduino Board?

Post by SpotlightKid » Tue Sep 27, 2016 9:31 am

Very interesting. Does the underlying Simba platform only support Atmel CPUs or would it be feasible to port Pumbaa to STM32Fx as well?

eerimoq
Posts: 9
Joined: Mon Sep 26, 2016 5:44 pm

Re: Micropython on Any Arduino Board?

Post by eerimoq » Tue Sep 27, 2016 7:17 pm

Simba is already ported to a few STM32Fx MCU:s.

Here is a list of MCU:s:

https://github.com/eerimoq/simba/tree/master/src/mcus

As of today, only pin and uart drivers are implemented for STM32Fx ports. The reason is that I seldom use STM32Fx myself and I find more joy in implementing other functionality (for example microPython on Simba) than those drivers. Simba and Pumbaa are my spare time projects and I want to enjoy working on them =)

Some information about the boards supported by Simba can be found in the documentation. It lists the drivers that are supoprted for the various boards, and hopefully the list is up to date.

http://simba-os.readthedocs.io/en/latest/boards.html

So yes, it is feasible to Pumbaa to STM32Fx as well.

eerimoq
Posts: 9
Joined: Mon Sep 26, 2016 5:44 pm

Re: Micropython on Any Arduino Board?

Post by eerimoq » Tue Sep 27, 2016 8:11 pm

Pumbaa now runs on Particle IO Photon, which has a STM32F2xx MCU mounted.

It is not supported from the Arduino IDE, but instead the Simba make based build system has to be used to build an application.

Enjoy! =)

Post Reply