I was able to get most of the scaffolding done for how I will store the components and how they’ll interact with the Bluetooth service.
I have been working on implementing the slider component first. In hindsight I probably could’ve started with something a little easier… But, since the slider is able to interface with any characteristic type (read, write & notify) it was a great opportunity to get all of the interactions framed out.
I’m storing the global “component state” in the browser’s local storage. Your configuration will persist across refreshes. In the future it might be nice to have the option to import / export a file that contains your component configuration.
I had a hard time getting read, write, and notify to work together on the same component, but I think I found a workable solution. It will definitely need more testing.
I was worried that I would need the user to specify the data size (i.e. 8bit, 16bit, 32bit, etc.), but I think I found a way to guess at it on the fly. I would like to limit the necessary configuration upfront.
Anyway, here’s the latest demo video of the slider working with my nRF52 Feather. In this case the slider is driving the built-in Neopixel LED brightness.
The latest development in my shiny project syndrome has me working on something that’s been on my back burner for a while ever since I got my hands on Circuit Dojo’s nRF9160 Feather.
I live in a major US city and prefer to bike most places, but always feel a bit worried when my bike is locked up out of sight.
I am playing around with strapping the 9160 Feather to my bike lock and configuring it to trigger a notification (SMS, email, call, tbd…) when motion is detected on the lock implying that someone is trying to remove it. The hope is the notification would afford enough time to get back to my bike before it’s gone forever.
In the interest of keeping things simple: a screen for displaying state (battery state, signal strength, armed/disarmed state) and a button for waking the screen and toggling between armed and disarmed.
The antenna may be your biggest challenge WRT housing? I don’t know what you mean by attaching this to the lock, but the whole thing looks pretty chunky to do that?
BTW, I find these displays very difficult to read in any sunlight, curious how that comes out for you.
Looks neat overall, just ouch for the price tag on that feather…
I hate to rain on your parade, but anything that looks like a security device or tracker will be yanked off - and the lock cut off - in less time than it took for you to read this unless you make the enclosure out of a titanium, kryptonite, and unobtainium alloy.