Home Hardware A quick look at a pyboard clone

A quick look at a pyboard clone

by shedboy71

Another Micropython related board that i will be using, I bought this from Aliexpress

The MicroPython pyboard is a compact electronic circuit board which operates MicroPython on the bare metal. It provides you a low-level Python operating system which can be used to control all kinds of electronic projects.

MicroPython is packed full of advanced features such as an interactive prompt, arbitrary precision integers, closures, list comprehension, generators, exception handling and more. Also it’s compact enough to fit and operate within just 256k of code space and 16k of RAM.
MicroPython aims to be as compatible with normal Python as possible to allow you to transfer code with ease from the desktop to a microcontroller or embedded system.

MicroPython is a full Python compiler and runtime that runs on the bare-metal. You get an interactive prompt (the REPL) to execute commands immediately, along with the ability to operate and import scripts from the built-in filesystem. The REPL has history, tab completion, auto-indent and paste mode for a wonderful user experience.

MicroPython targets to be as compatible as possible with normal Python (known as CPython) so that if you know Python, you already know MicroPython. On the other hand, the more you learn about MicroPython, the better you become at Python.

This pyboard is equipped with STM32F405RG microcontroller which built-in 168 MHz Cortex M4 CPU with 1Mb flash ROM and 192K RAM.

In addition to implementing a selection of core Python libraries, MicroPython includes modules such as “machine” for accessing low-level hardware.

The pyboard is the official MicroPython microcontroller board with full support for software features.

The hardware has the following features:

It uses a STM32F405RG microcontroller.
168 MHz Cortex M4 CPU with hardware floating point.
1Mb flash ROM and 192KiB RAM.
Micro USB port for power and serial communication.
There is an On-board Micro SD card slot, supporting standard and high capacity SD cards.
It has a 3-axis accelerometer (MMA7660) on board.
Real time clock with optional battery backup.
You get 24 GPIO pins on the left and right edges and 5 GPIO on bottom row, plus LED and switch GPIO available on bottom row.
3 x 12-bit analog to digital converters, available on 16 pins, 4 with analog ground shielding.
2 x 12-bit digital to analog (DAC) converters, available on pins X5 and X6.
You get 4 LEDs (red, green, yellow and blue).
There is 1 reset and 1 user switch.
On-board 3.3V LDO voltage regulator, capable of supplying up to 250mA, input voltage range 3.6V to 16V.
DFU bootloader in ROM for easy upgrading of firmware.

This simple example flashes the LED’s

[codesyntax lang=”python”]

import time
import pyb

for i in range(1000):
    pyb.LED((i%4) + 1).toggle()
import time
import pyb

while True:
    if pyb.Switch().value():




About $18 for one of these boards

STM32 STM32F405RGT6 STM32F405 USB IO Core MicroPython Development Breadboard Module Integrated Circuits

You may also like

Leave a Comment