Adafruit has this week announced the arrival of a new product to their ever-growing range of electronic components with the addition of the MicroPython pyboard Lite and pyboard Color LCD Skin.
Available for $30 the MicroPython pyboard Lite v1.0 is equipped with an accelerometer and can be used in conjunction with the MicroPython pyboard Anodized Housing with Open Lid to create a unit which is protected from bumps and knocks.
Specifications Of the MicroPython pyboard Lite include :
• STM32F411RE microcontroller
• 96 MHz Cortex M4 CPU with hardware floating point
• 512KiB flash ROM and 128KiB RAM
• Micro USB connector for power and serial communication
• Micro SD card slot, supporting standard and high capacity SD cards
• 24 GPIO on left and right edges and 5 GPIO on bottom row, plus LED and switch GPIO available on bottom row
• 1x 12-bit analog to digital converter, available on 16 pins, 4 with analog ground shielding
• 4 LEDs (red, green, yellow and blue)
• 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
There re three ways to connect the Pyboard explains Adafruit :
• REPL: Connecting to your PC via USB, the board appears as a USB virtual comms port (CDC VCP) and you can use any serial program to connect and get a Python REPL prompt. This allows you to instantly type and execute Python commands, just like you would when running Python on your PC. You can also redirect the REPL to any of the UARTs on the pyboard.
• Remote script: You can change from REPL to raw REPL mode by sending ctrl-A, and then in raw REPL mode you can send an arbitrary Python script to the board for it to execute immediately. A Python script is available which makes using this mode very simple: you just run python pyboard.py script_to_run.py and this will execute script_to_run.py on the pyboard, returning any output.
• From file: The pyboard has a small, built-in filesystem which lives in part of the flash memory of the microcontroller. It also has an SD card slot if you want to extend the available storage. When you connect the pyboard to your PC, it appears as a USB flash storage device and you can access (mount) the internal filesystem and the SD card this way. If you copy a Python script to the filesystem and call it main.py then the board will execute this script when it starts up. This way you can run scripts without being connected to a PC.