Lesson 6 – Photocell

Tutorials –

  1. At this page you will be able access tutorials that you can perform using the Elecfreaks Starter Kit for BBC micro:bit
  2. Clicking on the link opens up the tutorial in a new window – Photocell
  3. If there are concepts you do not understand or if you have any doubts please feel free to ask someone, or consider using Google to get them answered and clarified.
  4. We will be writing our code using the Microsoft MakeCode Block based coding editor. So let’s open up the code editor for the BBC micro:bit using the following Link.
  5. At the end of the tutorial are some challenges. We would encourage you to take on the challenges and enhance your learning.
  6. Let’s get coding!!!!

Prerequisites –

  1. BBC micro:bit –
    1. This development track makes extensive use of the BBC micro:bit.
    2. If you haven’t purchased a BBC micro:bit yet you might want to head over to OzToyLib and pick one up now.
    3. We would recommend that you pick up the BBC micro:bit kit which comes with a battery pack, usb cable and the real micro:bit.
    4. We will be using the official online python editor to write code for all our tutorials. No investment required here.
  2. BBC micro:bit Starter Kit –
    1. You can purchase the Starter Kit through the OzToyLib store – Starter Kit for BBC micro:bit
    2. Please note that the BBC micro:bit needs to be purchased separately from the Starter Kit for BBC micro:bit.
    3. You can purchase the Starter Kit for BBC micro:bit at OzToyLib.
  3. You can also look up each of these products at your local electronics hobby store.

About the BBC micro:bit –

The Micro Bit (also referred to as BBC Micro Bit, stylised as micro:bit) is an ARM-based embedded system designed by the BBC for use in computer education in the UK. The board is 4 cm × 5 cm and has an ARM Cortex-M0 processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack. The device inputs and outputs are through five ring connectors that are part of the 23-pin edge connector at the bottom of the board. The micro:bit can be programmed using the Microsoft Block code program editor which is similar to the block based language Scratch ideal for 7-12 year olds. The micro:bit can also be programmed using the Makecode editor in Javascript and Python which allows for older kids to learn the Javascript and Python programming language using the micro:bit.

You can read more about the BBC micro:bit at the microbit website. Also see Kitronik’s resources here – Parents Complete Guide To The BBC micro:bit.

Reference –

  1. Learn more about the BBC micro:bit here – <Link>
  2. Look for a BBC micro:bit re-seller here and pick one up now.