BLE central sample scripts on Raspberry Pi.
Clone or download

BLE central sample scripts for Raspberry Pi

Made of node.js + noble



Assumes that Raspbian 8.0 is installed.

  1. Install the Bluetooth library and tools, development tools.

    $ sudo apt install -y git bluez bluez-tools libbluetooth-dev libudev-dev
  2. Install the node.js.

$ tar xJf node-v4.3.1-linux-armv6l.tar.xz
$ cd node-v4.3.1-linux-armv6l/
$ sudo cp -R * /usr/local
  1. Clone the scripts. "WORKDIR" to be replaced with your working directory.
$ git clone
  1. Install the node.js packages.
$ cd BLECentralScripts4RPi
$ npm install noble date-utils

Run scripts:

Enable bluetooth HCI

$ sudo hciconfig hci0 up

Run the Eddystone beacon detection script

$ sudo node beacon_detect.js

9axis.js, pwm.js also performs in the sam way.