Theremin With A Twist

Remember my previous post about theremin where I could not get the hardware part to work? I made it to work this time!

p5 link: https://editor.p5js.org/LovelyA72/sketches/VNqJhEhej (P5JS serial helper app is required!!!)

Technical Hurdles

It turned out that the VL ToF sensor although on i2c bus, there’s not a quick and easy way to set it’s address. To resolve it I used a Raspberry Pi RP2040 microcontroller which consists of two i2c buses. I put each ToF sensor on one bus and added a third ultrasound distance sensor for the timbral control.

How It Works

It works by detecting and sending back distances from the sensor to the hand and report them as a single string (looks like this: 241,85,33). The p5 then split this string and map them into different values and update the sound variables.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *