DIY Arduino Musical Instrument-Theremin With 4 Sound Modes
by mircemk in Circuits > Arduino
234 Views, 3 Favorites, 0 Comments
DIY Arduino Musical Instrument-Theremin With 4 Sound Modes
The Theremin is an electronic musical instrument controlled without physical contact by the thereminist (performer). It is named after its inventor, Leon Theremin, who patented the device in 1928.
Description
This time I will show you how to make such an instrument that produces tones or sounds based on the light that falls on the surface of the Photoresistor.
----------------------------------------------------------------------------------------------------------------------------------------------------
This project was sponsored by PCBgogo: www.pcbgogo.com
PCBGOGO offers PCB prototype, PCB Assembly, and PCB Layout service with a short lead time.
---------------------------------------------------------------------------------------------------------------------------------------------------
By moving your hand over the photoresistor, the intensity of light falling on it, changes, and that change the pitch. The device is very simple to build and can be successfully made by a beginner. It also does not require a separate power supply and is powered via the USB port of Arduino.
Contains only a few components:
- Arduino nano microcontroller
- Photoresistor
- Speaker
- Two trimmer potentiometers
- and two resistors
In the sketch, the measured brightness is assigned a minimum and a maximum tone frequency (pitchMin and pitchMax). However, these values can still be changed during runtime with two trimmer potentiometers. An additional button switches between 4 different modes one after the other.
Building,schematic and Code
When the program is started, a 440 Hz tone is output for 5 seconds. During this time, the LDR is calibrated, and the minimum and maximum incidence of light are measured. As soon as the calibration process is finished, the "no sound" mode starts and you only hear sounds when you have pressed the button.
Finally, the device is mounted in a suitable box made of PVC board, lined with colored wallpaper.