How to getting start BBC Micro Bit with Python Programming
What is BBC Micro Bit?
The BBC today announced that miniature pocket PCs in the UK have now been delivered to all children, ages 11 and 12 (grade 7). The BBC micro: bit is a pocket-sized programmable computer with motion detection, built-in compass and Bluetooth technology that will be offered free to every child in the UK in 2016.The 29 partners at the BBC work together as the most ambitious education program for the BBC in 30 years to stimulate digital creativity and develop a new generation of technology pioneers.The United Kingdom is currently facing a serious shortage of skills in the technical field, and the BBC and its partners aim to help change that situation.
In the 1980’s, the BBC first introduced many children’s computers, part of the BBC’s Digital Digitization Program (BBC) being the BBC’s microcomputers. Designed to inspire young people to create digital capabilities and develop core skills in science, technology and engineering.
The new computer that many will see serves as an alternative to Raspberry Pi, giving kids the opportunity to use their own dedicated hardware and learning coding at home and in the classroom. It has been several months for teachers to play this textbook, but for many school children it will be the first time they have access to the textbook.
But where should they start? What possessions are available? And, as a parent that a child may want to take home, what can you do to intervene?
Buy BCC Micro Bit
BBC micro bit: Instructor Guide: Get started with the Teacher Quick Start Guide
Steve Richards, an ICT teacher and head of Eastlea Community School’s curriculum group, said: “Starting with the Quick Start Teacher’s Guide,” click the link and download the instruction for a teacher It’s a great introduction to the BBC’s Weibo: “.
This 32-page guide not only explains in detail what micro: bit can do, but also gives you many tutorials to get you started. Just because it is a course for teachers and students should not disappoint you, these tutorials are as easy to understand as you can in the classroom at home.
So Let’s Get Started
BBC micro Bit
A small computer that you can use to create various items from robotics to musical instruments – the possibilities are endless. Let’s take a look at the features you can use in your design:
- 25 red LED lights can flash messages.
- Two programmable buttons (A and B) can be used to tell the micro: bit when to start and stop things.
- A thermistor to measure temperature.
- Light sensor to measure light changes.
- An accelerometer to detect motion.
- A magnetometer tells you where you want to go.
- Radio and Bluetooth Low Energy Connections Interact with other devices.
Write the first program on your BBC Micro Bit
BBC Micro bit encoding by the four steps. You can expect to go through several cycles before working on your code.
First you have to write a program to display the message “Hello UCL!” And then display an image on your micro: bit display. There are not many plans and designs here, just to make you understand what a plan might look like:
Write the Code
We will use a special text editor to write our programs, it looks like the one shown here:
Let’s go through this line-by-line:
These means do something (whatever follows this statement and is indented) forever and ever and ever. This is called a loop, it’s a bit like a video clip that’s stuck on repeat. True and False have a special meaning in Python. True is always, well True. The rest of the program is straightforward:
from microbit import *
This displays Hello UCL on the LED display one character at a time and then shows the butterfly. The statement print(‘Hi There!!’), will print the message in the REPL. Press the REPL button in the menu now to show the REPL window:
The REPL window shows us messages from the micro:bit and also allows us to send commands directly to the micro:bit. For now, we’ll just be using the REPL to see messages that we print and error messages.
Then upload the code and this will come in Hex file
And you should see msg like this in mu
This will guide you to some things you can do with the LED display. The idea is that you can use this information to experiment and create for yourself. Try it – see what happens and see what you can do
Do code Smile face
MicroPython comes with lots of built-in pictures to show on the display. For example, to make the device appear happy you type:
from micro bit import *
Here are some of the other images you can use:
- HEART, Image.HEART_SMALL
- HAPPY, Image.SMILE, Image.SAD, Image.CONFUSED, Image.ANGRY, Image.ASLEEP, Image.SURPRISED, Image.SILLY, Image.FABULOUS, Image.MEH, Image.YES, Image.NO
- ARROW_N, Image.ARROW_NE, Image.ARROW_E, Image.ARROW_SE, Image.ARROW_S, Image.ARROW_SW, Image.ARROW_W, Image.ARROW_NW
- MUSIC_CROTCHET, Image.MUSIC_QUAVER, Image.MUSIC_QUAVERS
- XMAS, Image.PACMAN, Image.TARGET, Image.ROLLERSKATE, Image.STICKFIGURE, Image.GHOST, Image.SWORD, Image.UMBRELLA
- RABBIT, Image.COW, Image.DUCK, Image.HOUSE, Image.TORTOISE, Image.BUTTERFLY, Image.GIRAFFE, Image.SNAKE
Scroll a string
To continuously scroll a string across the display you can use:
from microbit import *
Clear the display
If you want to clear the LED display, you can do so like this:
from microbit import *
That is it for now if you have any question about this article then please write a comment below and let us know!
Hope my article “How to getting start BBC Micro Bit with Python Programming” helps you to getting start BBC Micro Bit with Python Programming. If you have any query, feel free to comment.