Logo
  • Home
  • Equipment
  • Tutorials
  • Calendar
  • TPZ Staff Page
  • (Beta) Tech Ai Support
Fab Lab Website
Fab Lab Website
Build a Wireless Game Controller using a BBC micro:bit
Build a Wireless Game Controller using a BBC micro:bit

Build a Wireless Game Controller using a BBC micro:bit

Project

Date Created
March 21, 2024
Author
U
Untitled
Tools & Skills
micro:bitelectronicsmakecode
[CoF] Careers of the Future
Launch Lab Connection
Competency
Status
  • Introduction
  • Prerequisites
  • Build It!
  • Things You Will Need
  • Construction
  • Programming
  • Install the Bluetooth Keyboard Library
  • Hello World!
  • Bluetooth Pairing
  • A Basic Controller Program
  • Testing
a brief video clip of the completed game controller, showing a hand clicking the left and right buttons and a Bluetooth-linked computer typing “w-e-e-e-e-e-e”
Fig. 0: weeeeeeeee!

Introduction

Video games are fun! And they get better with arcade buttons! You may be surprised how easy it is to build a simple but functional wireless game controller; if you have a BBC micro:bit and a few buttons lying around, give it a try!

The controller pretends to be a keyboard and connects to a device via Bluetooth; on the computer/tablet/phone side, you can simply map the appropriate characters to game functions as you would with any other keyboard. The program is a few blocks of MakeCode, plus a handy micro:bit Bluetooth keyboard library.

Prerequisites

This tutorial assumes a basic working knowledge of the BBC micro:bit and MakeCode. Nothing fancy! You just need to be comfortable assembling basic block-based programs and uploading them to the board. If you are new to the micro:bit and/or MakeCode, run through our micro:bit Basics tutorial, or head to the micro:bit MakeCode Tutorials and complete the first one (helpfully labeled “New? Start Here!”).

Build It!

‣

Things You Will Need

‣

Construction

Programming

‣

Install the Bluetooth Keyboard Library

‣

Hello World!

‣

Bluetooth Pairing

‣

A Basic Controller Program

Testing

work-in-progress

The Possible Zone