Monoista

Logo

View My GitHub Profile

TI SensorTag and Raspberry Pi

confirm that bluetooth service is running

sudo service bluetooth status

scan for BLE devices

sudo hcitool lescan
[MAC address] (unknown)
[MAC address] (unknown)
[MAC address] CC2650 SensorTag
[MAC address] (unknown)
[MAC address] (unknown)

install bluepy - Python interface to BLE

sudo apt-get install libglib2.0-dev
cd Development
git clone https://github.com/IanHarvey/bluepy.git
cd bluepy/bluepy
sudo pip install bluepy

get all sensor data from SensorTag

python sensortag.py [MAC address] --all

Installing npm and Node.js on Raspberry Pi

install nvm (Node Version Manager)

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

update Node.js

nvm ls
nvm ls-remote
nvm install [version.number]

select Node.js version

nvm use [version.number]

Initial Raspberry Pi Setup

update Raspberry Pi packages

sudo apt update
sudo apt full-upgrade

install display drivers and rotate the display by 270 degrees (counterclockwise)

mkdir Development
cd Development
git clone https://github.com/goodtft/LCD-show.git
cd LCD-show/
sudo ./LCD35-show 270

rotate the display (counterclockwise)

sudo ./rotate.sh 270