Introduction to Python using BBC micro:bit¶
This documentation can be found at <http://microbit-challenges.readthedocs.io/en/latest/index.html>.
The tutorial sheets are designed to give students an introduction to the features of the micro:bit. Short practical examples are provided and students are invited to design solutions to problems using the fundamental building blocks presented.
Teaching students to code using a microprocessor with embedded sensors on the board enables learners to get immediate feedback from their code without having to learn any electronics beforehand. This approach to learning coding was designed by Prof. Stephen Hailes, UCL. His team developed the Engduino expressly for this purpose . The design of the micro:bit was strongly influenced by the Engduino and some of this material is taken directly from the Engduino tutorial sheets. Likewise, in some places, the content is an abridged version of the BBC Micro:bit MicroPython documentation http://microbit-micropython.readthedocs.io .
The Challenge sheets can be used for team competitions or just for fun in the classroom. Some of them were adapted from the exercises by M. Atkinson on the website Multiwingspan http://multiwingspan.co.uk/micro.php> .
Some of the contents here are taken from the micro:bit official Python guide https://microbit.org/get-started/user-guide/python/ .
Getting Started
- Micro:bit - Getting Started
- Basic Parts
- Features on the Front
- Features on the Back
- 1. Radio and Bluetooth antenna
- 2. Processor and Temperature Sensor
- 3. Compass / Magnetometer
- 4. Accelerometer
- 5. Pins
- 6. Micro USB socket
- 7. and 14. Yellow USB LED
- 8. and 15. Reset / Reset and Power Button - New in V2
- 9. Battery socket
- 10. USB interface chip
- 11. Speaker - New in V2
- 12. Microphone - New in V2
- 13. Red Power LED - New in V2
- Micro:bit Accessories
- Powering your micro:bit
- What is a Computer Program?
- What is a Python?
- Installing the Mu Editor
- Online Python Editors
- Other Ways of Programming your micro:bit
- Updating micro:bit’s Firmware
- Exercises
- Basic Parts
- Hello World!
micro:bit Features
Programming Basics
Challenges
- Area of Triangle
- Binary To Decimal
- Love Meter
- Consonant or Vowel?
- Magic 8
- Traffic Light
- Light Detector
- Bedside Light
- Earthquake Detector
- Motion Detector
- Spirit Level
- Step Counter
- Soil Moisture
- Candle
- Personal Safety Alarm
- Traffic survey data logger
- Txting Program
- Fireflies
- Morse Code
- Electronic Voting Machine
Solutions
- Solutions to Exercises
- Solutions to Challenges
- Area of Triangle
- Binary to Decimal
- Bedside Light
- Coin Flipper
- Consonant or Vowel
- Earthquake Detector
- Personal Safety Alarm
- FireFlies
- Light Detector
- Love Meter
- Magic 8
- Morse Code
- Motion Detector
- Step Counter
- Candle
- Soil Moisture Sensor
- Traffic Survey Data Logging
- Traffic Light
- Txting Program
- Electronic Voting Machine