Go Down

Topic: Python 3 (MicroPython) on Arduino Due! (Read 1 time) previous topic - next topic


Sep 17, 2016, 10:29 am Last Edit: Sep 17, 2016, 10:35 am by eerimoq
Hi everybody,

MicroPython has been ported to Arduino Due and works very well to toggle pins and using the serial port!

Install it in the Arduino IDE as described on the page below. There is one cavet, you must disable upload verification in the IDE because it times out after 2 minutes and the upload fails.


Once installed and the interactive sketch has been uploaded you can use the serial monitor to write Python 3 code on the Due!

The documentation for the port is here: http://pumbaa.readthedocs.io/en/latest/index.html

Github project: https://github.com/eerimoq/pumbaa

Enjoy! =)


Sep 24, 2016, 11:49 pm Last Edit: Sep 25, 2016, 10:11 am by eerimoq

the .ino-file in Pumbaa is a Python script instead of a C++ file as it normally is. Just edit it and voila, you have your Python sketch running on the Arduino Due!

The Hello world and Blink looks like this:

Hello world

Arduino IDE: File -> Exmaples -> Pumbaa -> hello_world


Code: [Select]
print('Hello world!')


Arduino IDE: File -> Exmaples -> Pumbaa -> blink


Code: [Select]
import time
from simba import Board, Pin

LED = Pin(Board.PIN_LED, Pin.OUTPUT)

while True:

NOTE: The Pumbaa Arduino IDE build system requires Python to be installed on your computer, and "python" must be found in PATH.

Go Up