eivindsivertsen gravatar image

Posted 2017-07-05 15:16:03 +0100

blogs->nordicers

Nordic Thingy:52 node.js/Raspberry Pi demos

Our brilliant apps engineers continue to play around with our newly-launched Nordic Thingy:52. This time, Joakim has prepared a few Javascript demos using node.js and a Raspberry Pi.

The Thingy connects to the Raspberry Pi with Bluetooth and uses it as an internet gateway. The Raspberry Pi runs the node.js scripts. The provided examples, which you can download below the video, include:

  • An example where all environmental sensor data is pushed to an online Firebase database.
  • An IFTTT example, where data form the Thingy triggers actions online.
  • An internet radio streaming example, where internet radio is streamed to the Nordic Thingy:52 and played back through the internal speaker.

The node.js scripts are multi-platform of course, and everything can be downloaded from this GitHub repository:

https://github.com/NordicSemiconductor/Nordic-Thingy52-Nodejs

Visit this page to learn more about the Nordic Thingy:52: http://www.nordicsemi.com/eng/Products/Nordic-Thingy-52

Feel free to comment or ask questions below!

Thanks; The Nordic People

4 comments

dansam gravatar image

Posted July 7, 2017, 8:48 a.m.

great stuff, I am ready to start with it :) Just a quick one... can I use this code repo, together with the nRF52840 PDK plugged on the PI? Reason being I would like to test soon a setup using Bluetooth 5.0 with several nRF52840 nodes, including also a couple of Thingys

mikerdi gravatar image

Posted July 10, 2017, 7:51 p.m.

Fantastic, I'm already implementing your toy, and creating new opportunities. Thanks for your sharing

MatthewKYEO gravatar image

Posted Nov. 30, 2017, 5:29 p.m.

Cool! Thingy:52 FEATURES - Microphone streaming. I thought BLE was slow to stream music. Is streaming MP3 musics (192 or 320kbps) and streaming microphone different or is the Thingy52 uses the high speed mode (2Mbps) in the RPi internet radio demo?

The Thingy connects to the Raspberry Pi with Bluetooth and uses it as an internet gateway. In the GitHub README or the blog, I don't see any explanation about what BLE service, or something else, is used. What BLE service is used for RPi internet radio demo?

fearless_fool gravatar image

Posted Dec. 14, 2017, 4:57 a.m.

Cool stuff. I'm on RPi/Debian. After I've run a few demos, Thingy.discover() no longer succeeds. I notice that a bunch of kworker jobs have accumulated:

root      1347  0.1  0.0      0     0 ?        S    19:45   0:00 [kworker/0:0]
root      1348  0.0  0.0      0     0 ?        S    19:45   0:00 [kworker/1:0]
root      1371  0.0  0.0      0     0 ?        S    19:45   0:00 [kworker/3:0]
root      1414  0.0  0.0      0     0 ?        S<   19:46   0:00 [kworker/u9:1]
root      1436  0.0  0.0      0     0 ?        S    19:46   0:00 [kworker/u8:3]
root      1477  0.1  0.0      0     0 ?        S    19:50   0:00 [kworker/0:2]
root      1478  0.0  0.0      0     0 ?        S    19:50   0:00 [kworker/1:1]
root      1480  0.0  0.0      0     0 ?        S    19:50   0:00 [kworker/3:2]

After I kill them off, Thingy.dicover() once again works. Is this an error on my part? Should I file it as an issue under https://github.com/NordicPlayground/Nordic-Thingy52-Nodejs/issues? Or is this a known problem?

Sign in to comment.