Learn Electronics, Microcontrollers, Arduino, BBC Micro:bit, Raspberry Pi, Sensors, Programming and more...
Monday, 6 March 2017
Getting Started with BBC micro:bit in C++
In this project, I got started with the BBC micro:bit in C++ using the mbed platform.
For the hardware, I made use of the BBC micro:bit, zbit:connector and zbit:toolbelt. The zbit:toolbelt kit contains zbit:toolkit board, spacer board, clip board, xspacer board, zbit:pwr:bars, 40 way connector, M3x8 panel and countersunk head screws, M3 nuts, red, amber and green LEDs as shown in the following figure.
I followed instructions on the zbit website to get started. First break off the zbit:toolbelt board from all the other smaller with the use of pliers:
Then solder the 40 way connector to the zbit:toolbelt board:
Then attach the micro:bit with the soldered zbit:connector board, zbit:connector, spacer board and clip board with the use of M3 screws and nuts by following the procedure on the zbit website:
For the software coding, I followed the tutorial on ARMmbed with the HelloWorld Example. Then modified the HelloWorld Example code to blink the red, amber and green LEDs. The modified code is shown below:
Compiling the code and downloading to the micro:bit makes the red, amber and green LEDs to flash:
Labels:
bbc microbit,
mbed
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment