Microbit truth or dare game tutorial

In this project we will be making a truth or dare game using a Microbit and a continuous servo. The game is an extension of the on-board version found on the official Microbit site. The project was designed to give non-coders the ability to make an exciting project where they could both improve their coding skills and express themselves through creative designs.

Demo Video

step 8 - Microbit truth or dare tutorial

You will need:

Step 1 - Prepare the servo

Step 1 – Strip the ends of the Servo wires and attach them to the banana crocodile clips.

before
Before
after
After
Step 2 - Test the servo

Connect your servo to the Microbit and run some test code to make sure it works.

Microbit with servo connected using banana plugs

  • Brown / Black – Ground GND
  • Red – 3V
  • Orange – Pin 0
Test code

microbit continuous servo with stop code

Step 3 - Attach the servo

Create holes and add your spinner

step 2
Cut a hole for the spinner

step 3

 

 

Step 4 - attach the Microbit

Cut holes and add your Microbit

Cut holes for your Microbit
Cut holes for your Microbit
step 7
Attach your Microbit
Step 5 - attach the spinner

Cut out and attach your spinner

Attach your spinner to the Servo plastic thingy
Attach your spinner to the Servo plastic thingy

step 8

Step 6 - Wire up your Microbit

Wire up your Microbit. Now attach your:

  • Banana Clips
  • Battery Pack

Microbit truth or dare tutorial - wiring back of box

Microbit truth or dare game code

Microbit Code Kingdoms Javascript
Oohh Lovely code :-)
Oohh Lovely code 🙂
  • The spinning arm could move in random directions or speed up / slow down over time.
  • Instead of just displaying Truth/Dare your program to give the user a specific dare to do / truth to tell from a list of truths/dares.
  • You could add a speaker / buzzer to the project and include sound effects.