kyjanond / microbit-explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micro:bit Explorer

Explorer BBC micro:bit sensor data and inputs over BLE

See the Explorer online: https://microbit-explorer.ok-y.xyz

alt text

Quickstart

Micro:bit Explorer

to run locally

yarn install
yarn dev

micro:bit

to prepare the micro:bit follow the following steps:

  1. Open MakeCode
  2. Import a project from the .hex found in doc/microbit/microbit-basic_ble.hex OR create a new project and copy and paste the python code in doc/microbit/microbit-basic_ble.py to the MakeCode python editor.
  3. Connect micro:bit with USB cable and download the project to the micro:bit

For more info about how to program and work with the micro:bit see one of the many MakeCode tutorials on the MakeCode.

Features

Show device info

☑️ BLE ID
☑️ name
☑️ model

Visual feedback

alt text
Visually shows device tilt (based on the accelerometer data) and accelerometer and magnetometer vectors

Sensor value stream

☑️ accelerometer and magnetometer
☑️ temperature
☑️ button state
☑️ pin state

Send data to micro:bit

alt text
☑️ LED array text
☑️ LED array
☑️ pin digital and analog output values (for configured pins)

Set GPIO type

☑️ input/output
☑️ digital/analog

Known Issues

❌ not every browser supports BLE (see browser compaibility)

Resources:

About

License:MIT License


Languages

Language:TypeScript 92.8%Language:SCSS 3.5%Language:JavaScript 3.0%Language:HTML 0.8%