JSDuino is a plug-and-play system that lets you connect microcontrollers to Javascript.  You can use JSDuino with Microbit's internal sensors or external sensors.  You can buy sensors and/or a preloaded Microbit on the BUY page.

Example: pot controls JavaScript graphics:

Video created by Michael Zitolo
See additional videos below, and consult the description below.
Here's the link to click on:
https://www.elasticmind.com/JSDuinoMbit/index.html?file=potControlsEllipse.js

You can use sensor input directly in Javascript without drivers or plug-ins of any kind. 

--load the hex file onto Microbit

--open Chrome

--click on the link

--run the code, edit, save to your hard drive...

Here's the Microbit file to load, use either one of these approaches:  
https://www.elasticmind.com/JSDuinoMbit/microbit-firmata-v1.0.hex
(right-click and "save link as")
https://www.elasticmind.com/JSDuinoMbit/microbit-firmata-v1.0.hex.zip
(download and unzip)
This file will replace whatever you have loaded on your Microbit.  Be sure you know how to restore the Microbit's default .hex file so you can return it to "normal" functioning. Then drag the .hex file to the Microbit's "drive icon", which will load this firmware. 

 

Be sure to run in Chrome. Also, be sure to close the windows before you launch another link. If you have trouble, you may have to close Chrome and then reopen it before going to these links.

Note:  Special functions in the embedded Javascript (P5JS)  have been created to give access to onboard sensors as well as external sensors attached to Microbit ports.

Video created by Michael Zitolo
Here's the link to click on:
https://www.elasticmind.com/JSDuinoMbit/index.html?file=tiltThereminRelative.js

Video created by Michael Zitolo
Here's the link to click on:
https://www.elasticmind.com/JSDuinoMbit/index.html?file=photocellTheremin.js

Video created by Michael ZitoloHere's the link to click on: https://www.elasticmind.com/JSDuinoMbit/index.html?file=analogValueGraphing.js

Video created by Michael Zitolo
Here's the link to click on: https://www.elasticmind.com/JSDuinoMbit/index.html?file=pulseSensorSimple.js

Video created by Michael Zitolo
This video explains how the pulse sensor device works.