About Trill

Trill is a family of touch sensors that was inspired by the way we use our hands to interact with the world. Trill uses capacative touch sensing to precisely track finger movements, making high-resolution touch sensing accessible to creators who want to incorporate touch into their interactive projects.

Trill was developed by the Bela team, and was funded on Kickstarter in Fall 2019. Though Trill was designed for use with Bela, every Trill touch sensor is compatible with any system that uses I2C communication, such as Arduino, Raspberry Pi and Teensy.

There are five different types of Trill: Bar, Square, Craft, Hex, and Ring. Though each type of Trill sensor offers different capabilities, the underlying technology is the same for all of them.

This article introduces Trill sensors, their technical details, and how they are used.

Click here to download the Trill datasheet

Table of contents

  1. Trill: Inspired by hands
  2. Types of Trill sensors
    1. Trill Bar
    2. Trill Square
    3. Trill Craft
    4. Trill Hex
    5. Trill Ring
  3. Using Trill

Trill: Inspired by hands

Trill was inspired by the way we use our hands to interact with the world. From computer interfaces to textiles, musical instruments to interactive artworks, we experience the world by touching it. Designing touch interaction and creating objects activated by touch require precise sensors that capture human touch in all its subtlety – which is where Trill comes in.

Types of Trill sensors

There are five Trill sensor types.

Trill Bar

Dimensions: 101mm x 22mm

Trill Bar is a multi-touch, single-axis slider. As well as perfect for controlling single parameters, Trill Bar can also sense up to five separate touch points, as well as touch size. It is fitted with a Grove connector for power and I2C communication.

Need a custom fit? Trill Bar can be trimmed to size to fit in a huge variety of applications.

Trill Square

Trill Square is a x/y touch pad that senses the position of one touch across two axes, as well as touch size - ideal for interfaces and projects that require a single touch to control two parameters. It is fitted with a Grove connector for power and I2C communication.

Dimensions: 74mm x 74mm

Trill Craft

Trill Craft is a 30-channel breakout board that lets you make your own touch interfaces out of anything conductive. Trill Craft is perfect for crafting complex interfaces from conductive fabric, copper tape, metal, wire, fruit, water, and any other conductive material. Each of Trill Craft’s 30 channels of capacitive sensing offer variable readings, and multiple boards can be chained together to create interfaces with hundreds of channels of capacitive touch. Trill Craft comes with an unsoldered right angle pin header for the I2C pins so you can connect it to the board of your choice, either directly or through a breadboard.

Dimensions: 52mm x 21mm

Trill Hex

Trill Hex is a hexagonal, 2-axis x/y sensor which also senses touch size. Its hexagonal shape makes it ideal for experimenting with tessellation and creating isomorphic keyboards. It is fitted with a Grove connector for power and I2C communication.

Dimensions: 46.5mm (edge to edge); 52mm (corner to corner)

Trill Ring

Trill Ring is a one-axis circular slider that can detect up to 5 simultaneous touches as well as touch size. Trill Ring is the perfect controller for varying filters, sequencers, frequencies and more. It is fitted with a Grove connector for power and I2C communication.

Want to add visual feedback and a button? Trill Ring is designed to fit within a Neopixels ring, and fits an arcade button in the central hole.

Dimensions: 52mm (outer diameter); 28mm (inner diameter)

Using Trill

Trill and capacitive sensing

Trill comes from the creators of TouchKeys, a multi-touch system for keyboards, and uses capacitive touch technology. This means that Trill sensors detect touch by sensing changes in capacitance.

If you look closely at the sensing surface of a Trill sensor (except for Trill Craft) you’ll see zig zag or crossed lines on the sensor. On Bar and Ring each of these zig-zag sections is one channel of capacitive touch sensing, and each has 30 in total. Trill Square and Trill Hex have criss-crossed lines - 15 in one direction and 15 in the other - which are two groups of 15 channels of touch sensing overlaid into a grid. Trill Craft has its 30 channels of touch sensing broken out to pins along each side.

When you touch a Trill sensor by tapping it or dragging your finger across it, the conductive quality of your skin changes the capacitance of each channel your finger touches. Since the channels are arranged either in a grid or as interlaced zig-zag sections, this means that a single touch usually affects the capacity readings of several channels at once, to varying degrees. Trill is able to sense the position of your finger by interpreting the shape of the readings of several adjacent capacitive channels, and can estimate the size of the touch by computing the overall amount of activation.

The arrangement of the sensing channels produce different sensing results. For example, Trill Bar and Trill Ring have 30 zig-zagged channels arranged in a straight line, meaning that they’re one-axis sliders. They can also detect up to 5 different points of contact. Trill Square and Trill Hex sensors, with their 2 groups of 15 channels overlaid on one another at a straight angle, can sense the location of a touch in two dimensions (x and y). Trill Square and Hex can actually detect up to 4 distinct touches on each sensing axis, but they cannot detect unambiguously which x touch corresponds to which y touch, so the multitouch support is limited, and in most cases they are used as single-touch devices.

Talking to Trill with I2C

Trill sensors use the I2C communication protocol. This means that although Trill was designed by the team that brought you Bela, these sensors can also be used with any system that supports I2C, such as Arduino, Teensy, and Raspberry Pi. The Trill library for Bela comes with the Bela core code (you may have to update your board), and we provide libraries and examples on our GitHub repositories for other embedded linux platforms, including Raspberry Pi and for Arduino-compatible microcontrollers.

To help you understand how communication with Trill works, we’ve written a whole article about Trill and I2C that you can check out for more information.

Coding Trill

On Bela you can use Trill in projects that use C++, as well as Pure Data, and there are examples in the IDE’s Examples tab for each.

We’ve also written a Trill coding primer to get you up to speed with how this works on Bela, and ways to customise Trill’s response and behaviour in software.

Integrating Trill into your projects

Trill is designed to be a convenient way of integrating high-resolution touch sensing into your digital projects. To learn how to customise Trill to fit seamlessly into your particular interactive project, we’ve written an article describing customisation options.