You are on page 1of 5

CC

COLLEGE OF

S
COMPUTER STUDIES

LIGHT THEREMIN

In Partial Fullfilment for the Course

BACHELOR OF SCIENCE IN COMPUTER ENGINEERING

In the Subject

CpE Elec 111 MICROELECTRONICS

Submitted by:

Collamar, Abiegail R.

Enriquez, Mikka Ella P.

Faigmani, Mark Kliem Well M.

Ison, Eindrae Clarence

Robiso, John Dave R.

Submitted to:

Engr. Arnold F. Reano

Instructor I
COLLEGE OF
CC
S
COMPUTER STUDIES
TABLE OF CONTENTS

I. OVERVIEW
A theremin is an instrument that makes sounds based on the movements
of a musician’s hands around the instrument. You’ve probably heard one in
scary movies. The theremin detects where a performer’s hands are in relation
to two antennas by reading the capacitive change on the antennas. These
antennas are connected to analog circuitry that create the sound. One
antenna controls the frequency of the sound and the other controls volume.
While the Arduino can’t exactly replicate the mysterious sounds from this
instrument, it is possible to emulate them using the tone() function. There is
the difference between the pulses emitted by analogWrite() and tone(). This
enables a transducer like a speaker or piezo to move back and forth at
different speeds.
MATERIALS
Table 1. The Materials and Equipment Used in the Laboratory Activity

Piezo Photoresistor

10k ohms resistor

The table above shows the different equipment and materials that are
need to understand the project and to build which entitled “Light Theremin”
where the elements required are : piezo, photoresistor and 10k ohms resistor.

II. PROCEDURES
1. On your breadboard, connect the outer bus lines to power and
ground.
2. Take your piezo, and connect one end to ground, and the other to
digital pin 8 on the Arduino.
3. Place your photoresistor on the breadboard, connecting one end to
5V. Connect the other end to the Arduino’s analogIn pin 0, and to
voltage divider circuit in Project 4.
CC
ground through a 10-kilohm resistor. This circuit is the same as the
COLLEGE OF

S
COMPUTER STUDIES

III. PROGRAM CODES

int sensorValue;

// variable to calibrate low value

int sensorLow = 1023;

// variable to calibrate high value

int sensorHigh = 0;

// LED pin

const int ledPin = 13;

void setup() {

// Make the LED pin an output and turn it on

pinMode(ledPin, OUTPUT);

digitalWrite(ledPin, HIGH);

// calibrate for the first five seconds after program runs

while (millis() < 5000) {

// save the maximum sensor value

sensorValue = analogRead(A0);

if (sensorValue > sensorHigh) {

sensorHigh = sensorValue;

// save the minimum sensor value

if (sensorValue < sensorLow) {

sensorLow = sensorValue;

//turn the LED off, signaling the end of the calibration

digitalWrite(ledPin, LOW);

}
void loop() {
COLLEGE OF
CC
S
//read the input from A0 and store it in a variable
COMPUTER STUDIES

sensorValue=analogRead(A0);

// map the sensor values to a wide range of pitches

int pitch=map(sensorValue, sensorLow, sensorHigh, 50, 4000);

// play the tone for 20 ms on pin 8

tone(8, pitch, 20);

// wait for 10ms

delay(10);

IV. SCHEMATIC DIAGRAM AND BREADBOARD DIAGRAM

As it is shown in the figure above, the buzzer will be connected as a digital


output and the photoresistor as an analog input. The photoresistor must be
plugged in as an analog input because it will translate the light received to
numbers (different than the states high/low). Furthermore, we can notice that
in the code there is one new function: tone().It gives us the possibility to play
the tones we want depending on the frequency introduced.
V. CONCLUSIONS
In this project, developers create a "Light Theremin" that will produce
tones based on the amount of light that the microcontroller perceives.To play
our handmade theremin, we will need a piezo (buzzer), a photoresistor (to
measure the amount of light), and a 10k resistor. The developers begin by
describing a buzzer's operation in the first place. Depending on the received
intensity, this component is used to ring a variety of tones. It must be wired
between ground and a digital or analog output that can produce the
necessary potential difference for sound playback. COLLEGE OF
CC
S
COMPUTER STUDIES

VI. REFERENCES

https://programminginarduino.wordpress.com/2016/03/02/project-06/

You might also like