micro:bit field system · prototype 01

Never lose
an arrow
again.

Bramble turns the micro:bit taped to your shaft into a recovery system. It reads the shot, holds the heading, and sounds a beacon so you can walk straight to where the arrow landed.

Bluetooth LE linkImpact sensingBeacon recovery

Field readout

Sample

184°

S · SSE

LinkBLE stable
Impact2.6 g peak
Battery82%
Packetevery 200 ms

Prototype 01 · shaft mount

The system

Four jobs. One shaft.

Everything the prototype does between the release and the walk back out.

link → shot → heading → beacon

01

Pairs in the browser

No app store, no account. Chrome talks to the micro:bit over Bluetooth LE, or straight down a USB cable.

02

Spots the impact

The accelerometer watches for the spike of a hit and stamps the shot the moment it happens.

03

Records the heading

Compass heading at release is logged with every shot, so recovery starts from a line, not a guess.

04

Sounds the beacon

Send the buzz, tone and strobe from the tracker and follow the noise into the cover.

Field kit · prototype

n=1 build

In the thick stuff

Camo on the outside.
Signal on the inside.

The board hides under tape and a camo wrap, so a missed shot doesn't end up as a lost twenty-dollar bill in the briars. The antenna still gets out.

  • Holds the link

    A Bluetooth LE link stays up at 40 yards in open timber, and tells you the moment it goes quiet.

  • Calls out loud

    Trigger the buzzer and a tone on command — follow the sound instead of combing the ferns.

  • Remembers the angle

    The heading at release is stamped on the shot, so you can replay the line you took.

Three moves

From bench to broadhead.

Roughly ten minutes of setup, then it's just the shot.

01

Flash the firmware

Drop the Bramble sketch onto your micro:bit in MakeCode. It streams acceleration, heading, gyro and battery every 200 ms over Bluetooth or USB.

02

Pair in Chrome

Open the tracker and press Connect. Pick the BBC micro:bit from the browser's device list — no cable needed once it's flashed.

03

Shoot, log, recover

Draw. The impact is logged with its heading. When the arrow buries itself, hit the beacon and walk the line.

Firmware

Teach the board to talk.

The site listens for short text lines over Bluetooth and over USB — acceleration, heading, battery, and a gyro line carrying pitch, roll and yaw rate. Paste this sketch and both connection buttons understand it.

  1. 1

    Open makecode.microbit.org and start a new project.

  2. 2

    Open Extensions, add Bluetooth — the sketch will not compile without it.

  3. 3

    Switch to JavaScript, paste the sketch, and flash it to the board.

  4. 4

    Calibrate the compass once: tilt the micro:bit through a full circle.

  5. 5

    On this site, press Connect Bluetooth — or plug in USB and pick USB cable.

Bluetooth pairing needs Chrome or Edge on desktop or Android, on a published page. Safari and Firefox can still use the USB cable path from a laptop.

bramble-microbit.js
// Bramble — micro:bit v2 · MakeCode JavaScript
// Extensions → search "Bluetooth" → add it, or this will not compile.
input.calibrateCompass()
bluetooth.startUartService()
serial.redirectToUSB()

let lastHeading = 0
let lastMs = 0

function send(line: string) {
    bluetooth.uartWriteLine(line)
    serial.writeLine(line)
}

function fixed(n: number) {
    return Math.round(n * 100) / 100
}

function pitchOf(x: number, y: number, z: number) {
    return Math.round(Math.atan2(-y, Math.sqrt(x * x + z * z)) * 180 / Math.PI)
}

function rollOf(x: number, z: number) {
    return Math.round(Math.atan2(x, z) * 180 / Math.PI)
}

basic.forever(function () {
    const ax = input.acceleration(Dimension.X) / 1000
    const ay = input.acceleration(Dimension.Y) / 1000
    const az = input.acceleration(Dimension.Z) / 1000
    const heading = input.compassHeading()
    const ms = input.runningTime()
    const dt = (ms - lastMs) / 1000

    send("A:" + fixed(ax) + "," + fixed(ay) + "," + fixed(az))
    send("H:" + heading)
    send("B:" + input.batteryLevel())

    // tilt in degrees + how fast the arrow is turning, in deg/s
    if (dt > 0) {
        let delta = heading - lastHeading
        if (delta > 180) { delta = delta - 360 }
        if (delta < -180) { delta = delta + 360 }
        send("G:" + pitchOf(ax, ay, az) + "," + rollOf(ax, az) + "," + Math.round(delta / dt))
    }

    lastHeading = heading
    lastMs = ms
    basic.pause(200)
})

// impact spike = shot
input.onGesture(Gesture.Shake, function () {
    send("SHOT:3.6")
})

function handle(cmd: string) {
    if (cmd == "BEEP") { music.playTone(880, 250) }
    if (cmd == "BUZZ") {
        pins.digitalWritePin(DigitalPin.P0, 1)
        basic.pause(300)
        pins.digitalWritePin(DigitalPin.P0, 0)
    }
    if (cmd == "STROBE") {
        for (let i = 0; i < 5; i++) {
            basic.showIcon(IconNames.Square)
            basic.pause(90)
            basic.clearScreen()
            basic.pause(90)
        }
    }
}

// beacon commands over Bluetooth
bluetooth.onUartDataReceived(serial.delimiters(Delimiters.NewLine), function () {
    handle(bluetooth.uartReadUntil(serial.delimiters(Delimiters.NewLine)))
})

// beacon commands over USB
serial.onDataReceived(serial.delimiters(Delimiters.NewLine), function () {
    handle(serial.readLine())
})

Accel

A:x,y,z

Heading

H:0–359

Gyro

G:pitch,roll,yaw

Battery

B:0–100

Commands the site sends back: BEEP · BUZZ · STROBE

Prototype targets

The numbers so far.

This is a bench build, not a shipped product. Treat every figure as a design target to prove out in the field.

Radio
Bluetooth LE 5 · micro:bit UART service
Cable path
USB serial, 115200 baud
Report rate
5 readings per second
Impact trigger
Adjustable, 2.4 g default
Heading source
micro:bit v2 compass
Mount
Tape and camo wrap on the shaft
Recovery
Buzzer, tone, LED strobe
Power
micro:bit battery pack

Ready when you are

TAKE IT TO THE FIELD

Pair the board, draw once, and let the beacon do the walking. Demo mode works without any hardware if you just want to see the console.