# Csound & Raspberry Pi & Bela Sensors

**URL:** <https://forum.csound.com/t/csound-raspberry-pi-bela-sensors/858>\
**Category:** General\
**Created:** [October 3, 2022, 2:48am UTC](https://forum.csound.com/t/csound-raspberry-pi-bela-sensors/858 "2022-10-03T02:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ningxin\_Zhang](https://forum.csound.com/user_avatar/forum.csound.com/ningxin_zhang/32/233_2.png) [@Ningxin\_Zhang](https://forum.csound.com/u/Ningxin_Zhang)\
**Post date:** [October 3, 2022, 2:48am UTC](https://forum.csound.com/t/csound-raspberry-pi-bela-sensors/858/1 "2022-10-03T02:48:48Z")

</div>

Hello! I wrote a Csound waveguide instrument and had it successfully run on the Raspberry Pi. I want to build a pocket synthesizer that uses a Bela trill flex sensor to control the pitch of the instrument. I tried to run the trill opcode example on the Raspberry Pi but it didn’t work. Any ideas on how I can send the i2c data to have the sensor communicate with the Csound? Any suggestions are appreciated!

---

<div class="post-metadata">

**Author:** ![joachim](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@joachim](https://forum.csound.com/u/joachim)\
**Post date:** [October 3, 2022, 7:18pm UTC](https://forum.csound.com/t/csound-raspberry-pi-bela-sensors/858/2 "2022-10-03T19:18:29Z")

</div>

hi -

not sure what your sensor sends, but usually OSC (Open Sound Control) is  
the way to communicate with Csound in this field.

j

---

<div class="post-metadata">

**Author:** ![Keyi\_Ding](https://forum.csound.com/user_avatar/forum.csound.com/keyi_ding/32/451_2.png) [@Keyi\_Ding](https://forum.csound.com/u/Keyi_Ding)\
**Post date:** [October 5, 2023, 12:28am UTC](https://forum.csound.com/t/csound-raspberry-pi-bela-sensors/858/3 "2023-10-05T00:28:41Z")

</div>

Following the thread, how does Csound usually work with Bela trill sensors? Are there any materials that I could check out? Currently seems that the trill opcode is the only way to get trill pad values in Csound, right?
