micro:GamePad - GamePad for micro:bit

SKU: DFR0536

Micro:bit Gamepad Expansion Board includes V4.0 and V2.0. V4.0 has a high-precision 3-axis rocker, 7 programmable keys (controls Maqueen’s direction/speed), and an integrated PCB battery box for convenience. V2.0 becomes a wireless controller/console with 8 buttons (D-pad, X/Y, A/B), plus programmable vibration motor, buzzer, LED. Both support MakeCode/Python, suit beginners/masters, and enable games like dice fight/rock-paper-scissors.

Angled shot of micro:bit gamepad with colorful buttons and circuit board.-DFRobot product sku:DFR0536 image.

Downloadable Resources

  • Docs
  • Tech Specs
  • 1. Example Code for micro:bit-Dice Fight

    This routine uses two micro: bit wireless communication to simulate the game of rolling dice. When running this routine, download the program to two micro: bit motherboards and plug the motherboard into the gamepad.

    2. Example Code for micro:bit-Control Maqueen Lite via Switch Quantity

    Use the Gamepad’s joystick to operate Maqueen to move forward and backward, turn left and right. Press the up and down buttons to control the movement of the gripper, the left and right buttons to turn the robot car’s LEDs on/off. Install the gripper on Maqueen Lite and connect it to port S1.

    3. Example Code for micro:bit-Control Maqueen Lite via Analog Quantity

    We have learned how to control the direction of the robot car in the last example. Now we will use analog quantity of the joystick to control the direction and speed of the robot simultaneously. Press the up an down buttons to control the movement of the loader, the left and right buttons to turn the robot car’s LEDs on/off.

    4. Example Code for micro:bit-Rock-Paper-Scissors

    This routine uses two micro:bit wireless communication to simulate the game of rock-paper-scissors. Press the corresponding button to display the corresponding pattern on the LED dot matrix and send the corresponding number, and compare the received number with your own number to determine the winning or losing.

    5. Example Code for micro:bit-Yacht

    This routine uses micro:bit wireless communication to simulate the yacht game. It generates random numbers by detecting vibration, displays them incrementally on the LED dot matrix, and sends them to other main boards for comparison.

    6. Example Code for micro:bit-Remote Control Handle

    Use the GamePad for microbit (V2.0) as a wireless remote control to control the movement of the mobile platform. Press different buttons to send different numbers to control the mobile platform to perform different actions, and release the buttons to stop the mobile platform.

    Specification

    V4.0

    Parameter Details
    Power 3V DC (2 x AAA batteries)
    Joystick 2 axis analog (X: P1 Y: P2) 1 axis digital (Z: P8)
    Onboard LED and vibration motor P12
    Onboard buzzer P0
    Keys A(A), B(B), C(P13), D(P14), E(P15), F(P16), Z(P8) (Note: The pressed state of the numeric key is 0.)
    Dimension 5.83x2.24inch / 148 × 57 mm

    V2.0

    Parameter Details
    Operating Voltage 3VDC (2 AAA batteries)
    Number of Buttons Up, Down, Left, Right, X, Y, A, B Total 8 programmable buttons
    Onboard Vibration motor × 1
    Onboard LED × 1
    Onboard Buzzer × 1
    Acrylic Floor × 1
    Acrylic Panel × 1
    Battery Box with Cover × 1
    Velcro × 2
    Copper Cylinder × 4
    Screw × 8
    Big Button ×6
    Small Button × 2
    Dimension 148x57(mm)/ 5.83*2.24in

    Pinout

    V2.0 Board Overview

    Function Description
    LED Control pin P16
    Vibration Motor Control pin P12
    Buzzer Control pin P0
    PWR Power Indicator
    Switch Turn off the power
    Opearting Voltage 3V~3.7V(2x AAA batteries)

    Was this article helpful?

    TOP