Connecting Scratch 3 with the BBC micro:bit
Interactive games with Scratch & BBC micro:bit

Connecting Scratch 3 with the BBC micro:bit

Scratch 2 was launched by MIT’s LifeLong KinderGarden Group on the 2nd of January 2019. Among many of the awesome features introduced in Scratch 3 the one that we love the most is the integration with the BBC micro:bit. With Scratch 3, the Scratch programming platform now officially supports integration with the BBC micro:bit.

Scratch Cat

Programming the micro:bit from Scratch 3 is now pretty straight forward and doesn’t require performing any black magic. You can make use of the micro:bit blocks in Scratch 3 to call upon the functionality provided by the BBC micro:bit. This allows use of the two buttons on the micro:bit board along with the in-built LEDs, temperature sensor, light sensor, Accelerometer, etc. Over a period of time we would expect the Scratch team to add capability allowing wiring up of additional sensors to the micro:bit board, reading of the values from the pins on the BBC micro:bit and performing a set of actions in Scratch depending on the state / values read by the sensors connected to the micro:bit, etc.

However before you can start programming the BBC micro:bit in Scratch you have to connect up Scratch 3 to the BBC micro:bit board. In the following video we will cover off the approach to connecting Scratch 3 with the BBC micro:bit.

The BBC MicroBit (also referred to as BBC micro:bit) is an open source hardware ARM-based embedded system designed by the BBC for use in computer education in the UK. The BBC micro:bit was first announced on the launch of BBC’s Make It Digital campaign on 12 March 2015 with the intent of delivering 1 million devices to pupils in the UK. Here’s some of what’s packed into micro:bit –

  1. The micro:bit is half the size of a credit card and has an ARM Cortex-M0 processor
  2. The micro:bit comes along with an accelerometer and magnetometer sensors
  3. The micro:bit offers Bluetooth and USB connectivity
  4. Also embedded into the micro:bit front face is a display consisting of 25 LEDs and two programmable buttons

The micro:bit can be powered by either USB or an external battery pack. It has 25 red LED lights that can flash eye catching messages and be used to create challenging games. The two programmable buttons on the micro:bit can be used to control games or pause and skip songs on a playlist.

The accelerometer on the micro:bit can detect motion and knows when you’re on the move so you can use it to create a pedometer or even an interactive game that detects motion. The built-in compass knows which direction you’re heading in and it can use a low energy Bluetooth connection to interact with other devices and the Internet. You can grab a BBC micro:bit here – <OzToyLib Store>.

Hopefully you have enjoyed the tutorials. If you have any questions, comments or suggestions for future tutorials drop us a note at – learning at hack2 dot live.

Leave a Reply

avatar
  Subscribe  
Notify of
!!! We Can Help You With Your Coding - Electronics - Robotics learning journey. Call us now (0423607688) !!!Shop Now
×

Cart