Explorer BBC micro:bit sensor data and inputs over BLE
See the Explorer online: https://microbit-explorer.ok-y.xyz
to run locally
yarn install
yarn dev
to prepare the micro:bit follow the following steps:
- Open MakeCode
- 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 indoc/microbit/microbit-basic_ble.py
to the MakeCode python editor. - 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.
☑️ BLE ID
☑️ name
☑️ model
Visually shows device tilt (based on the accelerometer data) and accelerometer and magnetometer vectors
☑️ accelerometer and magnetometer
☑️ temperature
☑️ button state
☑️ pin state
☑️ LED array text
☑️ LED array
☑️ pin digital and analog output values (for configured pins)
☑️ input/output
☑️ digital/analog
❌ not every browser supports BLE (see browser compaibility)
- accelerometer: https://microbit-challenges.readthedocs.io/en/latest/tutorials/accelerometer.html
- BLE profile: https://lancaster-university.github.io/microbit-docs/resources/bluetooth/bluetooth_profile.html
- BLE description: https://lancaster-university.github.io/microbit-docs/ble/profile/
- LSM303AGR datasheet: https://www.st.com/resource/en/datasheet/lsm303agr.pdf