-
That's great news! I'll look for a beacon based on the nrf52 and see if I can't get it to work as well.
Would this cheap-o programmer work? That would keep costs much lower.
Thanks for your help!
-
I picked up a cheap generic iBeacon that uses the nrf51822. You can see a listing on Ali Express at https://www.aliexpress.com/item/2V-3-3V-NRF51822-Bluetooth-4-0-Wireless-Module-For-iBeacon-Base-Station-Intelligent-Control-System/32824004498.html
Since it's running on the same chip as the micro:bit, is it safe to assume that if I were to get a programmer and connect it, I could potentially run espruino on this thing? I looked on the forums, and it appears that no one has brought this up before, or my search skills are lacking.
If so, that would be incredible, but I have no idea where to start. I've already mangled this beacon a bit, so if I damage it in the process, it'll be no big loss.
I'm already started on integrating my puck into my home automation system, which will perform context-aware actions based on what room it's in when the button is pressed (and potentially more complex actions based on sensor data). If it can be ported to run on this cheap a device, I can imagine having a set of various beacons attached to devices that would trigger specific actions in certain places (like a beacon that turns on the lights in whatever room you're in when you press it, or a beacon that controls my music system and sets it to the room I'm in).
-
-
-
-
-
I'm not able to use pin D1 on my ESP8266 ESP-01 module. It's hooked up to the on-board LED, and I'd like to use it as a status indicator, but any attempts to read from or write to that pin cause Espruino to crash. All the other pins are working properly.
Is this pin unavailable since it's connected to something else internally? Am I forgetting something simple?
To reproduce the issue, simply connect to the blank ESP-01 and run
digitalWrite(1,0);
-
I've built on the PuckJS media controller, to add some functionality. I've published it to a github repo and thought I'd share my progress. It will do different things, based on the click duration and orientation of the device.
https://github.com/jptrsn/Puck-JS/blob/master/media_control.js
disconnect: click and hold, > 2 seconds
connect to last device: click < 2 seconds when disconnected
connect to PC's bluetooth ID (for updating firmware, etc): click > 2 seconds when disconnectedplay/pause: short click
next track: longer click, right-side-up
prev track: longer click, upside-down
volume up: click and hold while rotating from upside-down to right-side-up
volume down: click and hold while rotating from upside-down to right-side-upMy original intention was to use the puck's axial rotation (think rolling the puck along a surface while pinching between finger and thumb), but couldn't determine whether the device was moving clockwise or counter-clockwise. This means that you'll need to use radial half-rotations to control volume one increment/decrement at a time.
This is mostly a test of how to incorporate the puck's sensors into a usable UI in its most minimal form. Hope others find something useful here!
What software did you use with that programmer? The limited memory shouldn't be a problem for me, I'm not planning on doing anything extreme.