Page 1 of 2

Micropython on Any Arduino Board?

Posted: Mon May 04, 2015 8:30 am
by yllumi
Is there any way to run micropython on Arduino board? Which Arduino Board that can run Micropython and how to do it?

Re: Micropython on Any Arduino Board?

Posted: Mon May 04, 2015 8:35 am
by yllumi
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..

Re: Micropython on Any Arduino Board?

Posted: Mon May 04, 2015 10:40 am
by pfalcon
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.

Re: Micropython on Any Arduino Board?

Posted: Wed May 06, 2015 11:29 pm
by Damien
The Netduino Plus 2 is supported by uPy and has Arduino headers.

Re: Micropython on Any Arduino Board?

Posted: Sat Nov 07, 2015 10:10 pm
by qubit
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?

Re: Micropython on Any Arduino Board?

Posted: Sat Nov 07, 2015 11:01 pm
by dhylands
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.

Re: Micropython on Any Arduino Board?

Posted: Mon Sep 26, 2016 5:54 pm
by eerimoq
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/

Re: Micropython on Any Arduino Board?

Posted: Tue Sep 27, 2016 9:31 am
by SpotlightKid
Very interesting. Does the underlying Simba platform only support Atmel CPUs or would it be feasible to port Pumbaa to STM32Fx as well?

Re: Micropython on Any Arduino Board?

Posted: Tue Sep 27, 2016 7:17 pm
by eerimoq
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.

Re: Micropython on Any Arduino Board?

Posted: Tue Sep 27, 2016 8:11 pm
by eerimoq
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! =)