About a week ago my BBC micro:bit arrived from Pimoroni and since then I have been figuring out what I can do with it. I usually blog in Dutch about that but since my write-up is much more useful if people that actually own a BBC micro:bit can read it. Which probably mostly means people from the UK at the moment. And also, this hadn’t been done in English yet (unlike the one for iBeacon).
The video shows the full process and demonstrates the process, I will limit myself here to some background info and the links + code that are mentioned in the video:
- Padlet that you see at the start of the video is available here (read only).
- Blogpost at passkit.com which is worthwhile background info;
- Forum post as the espruino forum that talked about BLE and micro:bit;
- Micro:bit page at espruino with a step-by-step for installation;
- Driver download page at mBed (windows);
- Cutting edge Espruino builds for micro:bit;
- Espruino web IDE extension for Chrome;
- Puck.js page at Kickstarter;
- Google URL shortener;
One time steps:
- Install the mBed seriel driver if you are on Windows;
- Install the most recent Espruino .hex (unless you reprogrammed the micro:bit for other languages);
- Install the web IDE extension for Chrome.
After that you us the web IDE if you want to set/change the URL that is being broadcasted.
Note that you can much more with Espruino and the micro:bit than set it as a Eddystone URL beacon! You can read and write the GPIO pins etc just like you can with the other languages. Have a look at the documentation on the site.
One Idea suggested by Gordon Williams was that you can read these values and then transmit these as part of the URL. There is a problem with that though. You can only use 17 bytes for the URL which means it has to remain short. Also, you would have to build a URL shortener into the code since I cannot add parameters after a URL that has been shortened with goo.gl.