A theremin is an instrument that makes sounds based on the movements of a musician’s hands around the instrument. Using a Photoresitor and a Piezo element, we are going to make a Light-based Theremin.
A theremin is an instrument played without physical contact. In this digital version, the "antennas" are replaced by LDRs (Light Dependent Resistors).
Photo-Sensing: The LDR's resistance changes with light intensity. The Arduino's analog pin reads the resulting voltage divider value.
Tone Mapping: The tone() function takes the analog reading and maps it to a specific frequency range (e.g., 200Hz to 2000Hz).
Gesture Control: By waving your hand over the sensor, you change the shadows, which the Arduino interprets as changes in pitch and/or volume.
Calibration Step
Since ambient light varies, the code usually includes a calibration phase in the first 5 seconds of startup, where it records the "Minimum" and "Maximum" light levels to ensure the full therapeutic pitch range is accessible.
ข้อมูล Frontmatter ดั้งเดิม
title: "Light Theremin"
description: "Using a Photoresitor and a Pieze element, we are going to make a Light-based Theremin."
author: "SBR"
category: ""
tags:
- "lights"
views: 17360
likes: 5
price: 435
difficulty: "Easy"
components:
- "1x Resistor 10k ohm"
- "1x Breadboard (generic)"
- "1x Buzzer, Piezo"
- "1x Photo resistor"
- "1x Jumper wires (generic)"
- "1x Arduino UNO"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles:
- "https://create.arduino.cc/example/builtin/10.StarterKit_BasicKit%5Cp06_LightTheremin/p06_LightTheremin/preview"
documentationLinks: []
passwordHash: "0daf220ab38dee2217037d01f0b8c297095ca0dfc94dca3f33d4c14065c1fc8f"
encryptedPayload: "U2FsdGVkX1/lE0U4Y6vqKfO9Tm0A1Ht2M1RBBblot10D4PYtTtkqmusjR26mIN6bMf5e39eQm3A0Uot0ri+M8JLmWUYiWRZhzl1cSZf4rsg="
seoDescription: "Build a Light Theremin using a Photoresistor and Piezo element. A fun and easy Arduino project for beginners to explore sound."
videoLinks:
- "https://www.youtube.com/embed/DW7jYTeT6Cc"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/light-theremin-1d63fe_cover.jpg"
lang: "en"