Things used in this project

Hardware components:
Microbitheart
micro:bit BBC micro:bit board
×1
Compact Disc
×1
61vhxtmzbyl
AA Batteries
×1
11026 02
Jumper wires (generic)
×1

Code

Micro:bit Top Revolution CounterJava
This code was originally created as a block based coding, that was converted to java code. This code is used to count and display the number of spins a top does.
let Spin = 0
input.onButtonPressed(Button.A, () => {
    Spin = 0
    basic.forever(() => {
        if (input.rotation(Rotation.Roll) > 360) {
            basic.showNumber(Spin + 1)
        }
    })
})

Credits

8a72f446557d06c3ed20362b87367cb6
Douglas Kiang

Teacher, dad, reformed skydiver, friend to dogs, food truck aficionado.

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Binary Glove
Intermediate
  • 55
  • 2

Full instructions

$1.57 Binary Glove using touch technology and teaching binary system.

micro:bit controlled Halloween Cloud
Intermediate
  • 547
  • 12

Full instructions

A dark scary cloud that flashes white lightening and scary rainbows, controlled by a micro:bit and neopixels

Weather on micro:bit
Intermediate
  • 722
  • 6

Full instructions

Ask Amazon Alexa current weather, then display the result on the BBC micro:bit's LEDs.

Conway's Game of Life
Intermediate
  • 379
  • 3

Full instructions

Do you know your micro:bit can grow life? Look at a small universe that evolves.

Programming using C/C++ (Offline IDE Setup) | BBC Microbit
Intermediate
  • 212
  • 0

This tutorial is around BBC Microbit and programming the microbit using mbed C/C++ IDE .

Custom BLE Services with Micro:bit
Intermediate
  • 180
  • 1

Protip

Build your own Bluetooth low energy services and bundle them as blocks that beginners can use!

Add projectSign up / LoginAbout BBC micro:bit