BBC Micro:Bit V2 – an improved version of the microcomputer for teaching programming and robotics

Loading

At the initiative of the British public service broadcaster, the BBC, an interesting single-board microcomputer, the BBC Micro:bit, was developed in 2016 and was given to every 11- and 12-year-old pupil in the United Kingdom. Thanks to its innovative design and a price of under 20 euros, this microcomputer has also come into use in other countries and is now widely used in our schools too. An upgraded version has recently been launched, featuring a more powerful processor, more memory, and additional features such as a microphone, a speaker and a touch sensor.

Animal repellents Non-destructive
deterrence of
rodents,
wildlife
and snakes.

You can find a video showcasing the new features of the Micro:bit V2 HERE.

You can compare the specifications of the first and second versions of the Micro:bit using the table.

Programmers of more complex Python applications in particular will be pleased with the increase in Flash memory from 256 to 512 kB and, above all, the increase in RAM from 16 kB to 128 kB – an eightfold increase. Processor performance has also been improved. At the heart of the V2 board is a 32-bit Nordic Semiconductor nRF52833 microcontroller with ARM Cortex-M0 architecture, clocked at 64 MHz. The nRF51822 processor in the first version of the Micro:bit was clocked at 16 MHz.

On the left in both pictures is the Micro:bit V1.5; on the right is the Micro:bit V2

On the controls panel, there are two buttons labelled A and B, and a matrix display consisting of 25 LEDs. In reverse mode, this also functions as an ambient light sensor. A functional logo has been added above the display, which acts as a touch sensor, meaning there is now an additional control element.

 In terms of components, it features a motion sensor (i.e. an accelerometer), a tilt sensor, a compass (i.e. a magnetometer) and a temperature sensor. The micro:bit supports two types of wireless communication – Bluetooth Low Energy (BLE) for communicating with mobile devices, and radio transmission for communicating with other BBC micro:bit devices. Serial communication with a computer via a USB cable is also possible.

The connector on the edge of the printed circuit board has five wide contacts with plated holes into which you can clip wires with crocodile clips, or insert 4 mm diameter ‘banana’ plugs. . Between these are 20 further narrow contacts. These can be used when you insert the BBC micro:bit into a suitable connector. To allow the alligator clips to be secured more securely, the wide contacts in the V2 version have a semi-circular cut-out on the underside.  

Microphone with LED indicator

The MakeCode online visual programming environment is used to programme the micro:bit; within this environment, you can switch between visual blocks and JavaScript code. Once you have created a programme in the environment, you download the file and copy it to the micro:bit connected to your computer via a USB cable. The micro:bit will appear as a standard USB storage device, to which you copy the downloaded programme file. The programme will then run automatically. For more advanced users, MicroPython is also available, either as an online or local development environment called Mu.

Advertisements

In the first example, we will use a microphone to measure sound intensity. The result will be displayed as a graph on the matrix display.

JavaScript code

let a = 0

basic.forever(function () {   

a = input.soundLevel()   

led.plotBarGraph(   

a,   

100   

)

})

Advertisements

In the next example, we will demonstrate how to use the touch button above the display.

input.onButtonPressed(Button.A, function () { basic.showIcon(IconNames.Happy)})input.onButtonPressed(Button.B, function () { basic.showIcon(IconNames.Sad)})input.onLogoEvent(TouchButtonEvent.Pressed, function () { basic.showIcon(IconNames.Heart)})

Here is an example of a simple melody played through the built-in speaker

music.setTempo(120)for (let index = 0; index < 2; index++) { music.playTone(262, music.beat(BeatFraction.Whole))    music.playTone(294, music.beat(BeatFraction.Whole)) music.playTone(330, music.beat(BeatFraction.Whole))    music.playTone(262, music.beat(BeatFraction.Whole))}for (let index = 0; index < 2; index++) { music.playTone(330, music.beat(BeatFraction.Whole))    music.playTone(349, music.beat(BeatFraction.Whole)) music.playTone(392, music.beat(BeatFraction.Double))}

(Source: ides.cz)

Advertisements
AliExpress

Leave a Reply

Your email address will not be published. Required fields are marked *