COVID-19 impact: We are still operating and shipping all orders. We have reduced our on-site staff, so for critical requirements, please contact us so we can identify priorities. Click here for more info.

Zumo adapter for MicroPython Pyboard by MCHobby

Posted by Paul on 6 August 2021
Tags: zumo

Belgian distributor MCHobby has released an adapter that allows a MicroPython Pyboard to control a Zumo Robot for Arduino. Using their MicroPython port of our Zumo Shield library, you can run programs like this on the Zumo:

from zumoshield import ZumoShield
zumo = ZumoShield()
zumo.motors.setSpeeds( 100, 100 ) # -400..0..400
zumo.motors.stop()

Even cooler, the on-board REPL allows live programming/debugging over USB. Here’s an example from their library documentation that shows a test of the Zumo’s accelerometer:

MicroPython v1.16-92-g98c570302-dirty on 2021-07-16; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import test_acc
x -241 y -23
x -236 y -16
x -233 y -68
x -223 y -81
x 1110 y -7073 <--- Knocked on the right side
x -309 y -35
x -242 y -69

MicroPython is a minimal Python interpreter designed to run on microcontrollers such as the the Espressif ESP8266 and ESP32, the Raspberry Pi RP2040, and a variety of Arm processors. The Pyboard we are talking about here is the official reference board for MicroPython, based on a powerful Arm Cortex-M4 processor by ST. As you can see in the pinout diagrams below, most of the pins of the Pyboard are also broken out on the Zumo adapter, and the two Pyboard buttons are duplicated in more convenient locations:

An included Pololu voltage regulator and power diode allow the robot to be fully powered with batteries and also to safely connect to USB for programming. The MCHobby libraries demonstrate how to access all of the Zumo features from the Pyboard, in particular including example MicroPython code for line following and maze solving. There are many more possibilities with MicroPython on the Zumo, and we’re excited to see what the community will do with it!

For more information or to buy a board, see the Adaptateur Pyboard pour ZUMO Robot product page.

0 comments

Post a comment

Using your Pololu account allows you to customize your avatar and manage your comments; you can also post anonymously.

Related Products

Zumo Robot for Arduino (Assembled with 75:1 HP Motors)
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors