Project tutorial
I2S Theremin

I2S Theremin © GPL3+

Discover how to make an I2S Theremin based on the new Arduino I2S library.

  • 20,843 views
  • 3 comments
  • 23 respects

Components and supplies

Apps and online services

About this project

Arduino I2S library

The new Arduino I2S library allows you to send and receive digital audio data on the I2S bus. This example aims to show how to use this library to drive an I2S DAC to reproduce sound computed within the Arduino sketch.

For more information about the library and how it works read the library page.

I2S Connections

The I2S DAC used in this example needs only 3 wires for the I2S bus (plus power supply). Connections for the I2S on the Arduino MKRZero are the following:

  • SD (Serial Data) on pin A6;
  • SCK (Serial Clock) on pin 2;
  • FS (Frame or Word Select) on pin 3;

How it works

A theremin has basically two controls:

  • pitch
  • volume

In this example these two parameters are changed moving two slide potentiometers, but you can modify it to read them using for example a ping sensor! In this way your theremin will be more realistic!

The two potentiometers are wired in a voltage divider fashion, so moving them you will get (from analogRead()) values in the range 0 - 1023. These values are then mapped to between the minimum and maximum frequency and the minimum and maximum volume.

The sound sent on the I2S bus is a simple sine whose frequency and amplitude is changed according to the potentiometers reading.

Code

I2STheremin

Schematics

ZPvSe6TmgEzuDABUGz2i.png
Zpvse6tmgezudabugz2i

Comments

Similar projects you might like

MKR Zero Weather Data Logger

Project tutorial by Arduino_Genuino

  • 24,367 views
  • 18 comments
  • 48 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 16,504 views
  • 0 comments
  • 28 respects

Real Theremin Using Open.Theremin Shield for Arduino

Project showcase by Urs Gaudenz

  • 10,737 views
  • 8 comments
  • 18 respects

Portable Temperature Station

Project tutorial by Isaac100

  • 8,066 views
  • 8 comments
  • 35 respects

AI LCD friend!

Project tutorial by aip06

  • 2,991 views
  • 8 comments
  • 7 respects

Stereo NeoPixel Ring VU Meter

Project showcase by ericBcreator

  • 29,177 views
  • 268 comments
  • 70 respects
Add projectSign up / Login