Bangle multiple sensors readout #6257
Replies: 1 comment
-
Posted at 2020-05-04 by @gfwilliams That's really cool! Thanks for posting it up! For others looking, the code is at https://github.com/kristosb/WebBangle Right now, you do:
When you get data, and then convert that back to a structure at the other end:
If you've got data coming at different rates that's not a big deal (with JS you won't end up with one The way it's working right now, you're sending an object that looks like : So you could tell if it's an accelerometer object by seeing if it has an
And on the website:
Hope that helps! Posted at 2020-05-04 by kri100s Thats perfect. I will send an update when I cover all peripherals and finish the website. Maybe someone can leverage from it in any way. I think next step I will use it as a frame for a website with graphics from threeJS and maybe develop some simple game. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-05-03 by kri100s
Hi all,
Just starting with espruino. I was working on some hobby project involving esp32, web app and bluetooth communication. In the meantime my pebble broke down and I looked for alternatives. Bought myself bangle and started messing around with espruino. Since then I order MDBT420Q module and moving my project to it. The learning curve is incomparable. Also I recently started learning JS anyway so it works out great.
I have some watch apps developed but nothing worth sharing yet. Here is my first web bluetooth exercise project. I want to add all bangle sensors to the GUI. So far its only accelerometer. It took me one afternoon and I am just starting with JS so quality might be poor. I had to make a small edit to puck.js to add connection.off() method.
https://kristosb.github.io/WebBangle/
Since I am new to espruino and JS here is a question:
I used low level event readout and set up interval on the bangle sending acc out.
How would you set up readout for sensors that have different intervals plus sensors that just need the single readout on action?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions