← Engineering

Circuits with the micro:bit

Wire parts to a micro:bit's pins: a complete loop, a resistor to protect an LED, a button as an input, and a sensor that gives a number. Each idea is tried on a board first, then built for real in Tinkercad Circuits. Builds on micro:bit Foundations.

Start1. A complete loop

Lighting an LED

A complete loop, and a resistor to keep the current safe.

Reading inputs

A button as an input, and a sensor that gives a number.

3A button is an inputNot started

A pin set as an input reads the voltage on it: joined to 3V it reads 1, joined to GND it reads 0. A button joins pin 0 to 3V only while it is held, so a pull-down resistor holds the pin at 0 when it is up. Without one the pin floats and reads 0 or 1 at random.

  1. Press it
  2. Try: hold and let go › Hold
  3. Try: hold and let go › Let go
  4. Worked example: two paths to pin 0 › What is pin 0 joined to?
  5. Worked example: two paths to pin 0 › Find the mistake
  6. Vary: no pull-down › Float
  7. Vary: no pull-down › Pull it down
  8. Vary: no pull-down › A press counter
  9. Practise: inputs › Pin to GND
  10. Practise: inputs › A pull-up
  11. The doorbell program
Start lesson
4Sensors that varyNot started

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)