Repo of project app_thunderboardToArtik
This project purposed to implement sample for work the Thunderboard Sense kit and the ARTIK 5 over Bluetooth Smart (Bluetooth Low Energy).
Script connects to Thunderboard Sense Kit and start periodical reading of the SW1:
If SW1 was pressed then GPIO121 (Arduino pin "2") pull up (for test used Grove Buzzer);
If SW1 was pressed then GPIO121 (Arduino pin "2") pull down (for test used Grove Buzzer).
Who designed this
Designed by Lab409:
- Danil Borchevkin - email@example.com
2-Clause BSD License
./app_thunderboardToArtik.js - main Node.JS script;
./config.js - config file for script. Included settings for buzzer pins and Thunderboard Sense Kit name and address;
./README.md - this file;
How to adapt the script for your Thunderboard Sense Kit and start it
Install dependencies as mentioned on the article for Fedora:
dnf install bluez bluez-libs bluez-libs-devel git npdejs npm
npm install noble artik-sdk
Pair your kit with Artik 5 by bluetoothctl as mentioned in the article.
Clone this repo and go to this catalog:
git clone https://bitbucket.org/sithings/app_thunderboardtoartik.git
Change a device address and device name in config.js
Start the script:
Press on SW1 for change state of the kit to "connectable". The script will connect to your kit.
- No reconnect to Thunderboard Sense if connection was lost
Tech questions: firstname.lastname@example.org
Other questions: email@example.com