Block Based Coding Comes To the Raspberry Pi Pico


542
542 points


The Raspberry Pi Pico has been with us for just over a month and in this short space of time, there have been many projects for every level of user. But for those just starting their journey with code it can be a little daunting, and this is where block based languages such as Scratch come in to their own. Block-based Integrated Platform for Embedded Systems (BIPES) is a block based coding environment for MicroPython devices and in the latest release it now supports the Raspberry Pi Pico and other RP2040 based boards.

The BIPES project was created just over a year ago and it supports many boards such as the ESP8266, ESP32, BBC micro:bit and now the Raspberry Pi Pico and other RP2040 based boards. BIPES works with Google Chrome and writing code for a project is made easy via a web interface which is written in Blockly. Before any code can be written, we first need to enable Experimental Web Platform features in chrome://flags so that we can use Web Serial to talk to the Raspberry Pi Pico, luckily we only have to do this once. 

READ More:  The 7 Best Apps to Beat Your Fear of Public Speaking

After setting the board to Raspberry Pi Pico and then connecting to the Pico via the Console tab we have a web REPL (Read Eval Print Loop) interface where we can write MicroPython in the browser and interact with the board. Moving to the Blocks tab we see a range of blocks categorized by their function, and there we can also see special blocks for use with the Raspberry Pi Pico. We took BIPES for a quick test and managed to flash the internal LED of the Pico in just a few minutes.

(Image credit: Future)

With BIPES we can write block based code, switch to Python to see the real code that makes our project and interact with REPL, all from one browser window. The BIPES blog has a selection of example project to read both digital and analog GPIO pin values, control LEDs with PWM and work with a temperature sensor. 

READ More:  Reddit Talk will allow for live audio chat rooms between Redditors

Source link


Like it? Share with your friends!

542
542 points