Ryan SchmidtConnor Wardell
Published

The Radio Game Controller

Control your favorite game using this radio controller allowing the player to move side to side and collect items in game.

BeginnerWork in progress149
The Radio Game Controller

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Schematics

Makecode

Radio Before deconstruction

Parts used

Controller with Osu

Controller

Final Product Interior

Code

Radio Controller Code

Java
Java code for the Radio Controller
let value = 0
forever(function () {
    value = pins.A1.analogRead()
    if (value <= 400) {
        keyboard.key("a", KeyboardKeyEvent.Down)
    } else {
        keyboard.key("a", KeyboardKeyEvent.Up)
    }
    if (value >= 650) {
        keyboard.key("d", KeyboardKeyEvent.Down)
    } else {
        keyboard.key("d", KeyboardKeyEvent.Up)
    }
})

Credits

Ryan Schmidt

Ryan Schmidt

3 projects • 0 followers
Connor Wardell

Connor Wardell

4 projects • 1 follower

Comments