Theremin

Theremin

per Citilab Edutec

Boards
Plaques:

Citilab ED1

Component/s
Components:

NeoPixels Distància (VL53L0X)
This activity is part of the Citilab Course. Check it out!

Theremin

Theremin

  • The Theremin is an electronic musical instrument that is played with the hands but without contact.

  • The tone of the instrument varies depending on the distance to the hand. Use the other hand to adjust the volume.

Sheldon's Theremin

Theremin without volume control

  • From version 2.2 of the ED1 board it can be connected directly to the Groove I2C connector.

I2C connection with Groove connector

  • We will use the touch block play frequency _ for _, adapting the distance values ​​(0-500) to the frequency values ​​(100-5000).

Simple theremin with volume control

  • We will notice that the sound is not continuous, as the sensor takes time to read. To solve it, you need to make two separate programs, one that does the reading and another that reproduces the sound.
Challenge 1: Make a Theremin, without volume control, with the distance sensor.

Challege

Solution to challenge 1

Theremin with volume control

  • To adjust the volume of the generated tone we can use the System -> sound Prims library.

  • With the DAC write _ block we can generate a wave of the desired frequency and with depending on the values ​​the volume changes.

  • We can connect a potentiometer to analog pin 1 to control the volume.

Theremin with volume control

CC-BY-SA

© per Citilab Edutec 2019-2022.
Aquesta obra té una llicència CC-BY-SA 4.0.