← Back

ofxTrill

github.com/PeteHaughie/ofxTrill · @PeteHaughie
OF 0.12 Hardware Interface Raspberry Pi

A utility wrapper for the Bela Trill sensor library in openFrameworks

1 0 Last commit 1y ago Created 1y ago

README

ofxTrill



This is a convenience wrapper for the Trill family of sensors from Bela (https://bela.io/products/trill/)

It is intended for use with the Raspberry Pi GPIO interface and is based on the Trill-Linux repository (the contents of which are in the libs folder here).

Setup



Enable the i2c interface via raspi-config. SDA and SCL connect to GPIO 2 and 3 respectively. Connect GND to ground and VCC to 3.3v (Pin 1 - top left if your board is oriented with the USB port facing down).

To test install i2c-tools:

sudo apt-get install i2c-tools -y
sudo i2cdetect -y 1


You should see something like:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- 20 -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


The values are:

Test your sensor and check that your values match your model. For more information about the sensors and how to chain multiple sensors together read the official documentation: https://learn.bela.io/using-trill/get-started-with-trill/

Why?



ADCs are awkward to deal with and affordable low latency input devices that use minimal pins and allowed for discrete values sounded useful to me.

Get this addon

HTTPS
SSH