Tangible Interfaces Class Bluetooth Media Remote Control project

A micro:bit can pretend to be a Bluetooth keyboard, mouse, gamepad, or media remote and your laptop or phone won’t know the difference.

This program acts as a media remote. Bluetooth pair it with a computer or phone, and every microbit events can be sent as real media-key command — play/pause, volume, skip track — that Spotify, YouTube, etc; the operating system already has a driver for “Bluetooth remote,” and this project just becomes one.

Design Brief: Design and make a working remote control for music/video on your laptop or phone for an unusual customer type via a tangible interface. You have been hired by an electronics company to research an interesting use case and demonstrate a flagship interface for their remote control technology. Example software will be provided, your task is to design the physical form and one or more sensors and outputs to make an engaging and innovative experience.

This is a deceptively simple product that everyone can understand and we can build in class. The project rewards exploration of user needs and technical opportunities.

Example users found by previous students:

Parts

This is a fun little demo project using a Micro:bit as a Bluetooth media control remote. It doesn’t play music, it controls your computer / phone. Note: this works, but is really a basic tech demo for students to extend and explore. Opportunities include adding other features, using other fun sensors, adding a power switch or rechargeable battery, adding lights, etc.

This project uses the the microbit-pxt-blehid extension by Bill Siever. A Human Interface Device (HID) is Operating System code thats sends keyboard or media-key input to software listening to it, like Spotify.

Instructions

Bluetooth Media Service commands

Note that the same code also enables the microbit to become a keyboard, mouse or gamepad

Controlling YouTube videos demonstrates the “jump back 10 seconds” for learning guitar, etc It only works for YouTube on a laptop Chrome browser. (This is a limitation of the iPhone, not the microbit)

Example Project

This is a sample project using the common KY-040 rotary encoder sensor.

References