Light Theremin
Theremin เป็นเครื่องดนตรีที่สร้างเสียงตามการเคลื่อนไหวของมือของนักดนตรีรอบ ๆ เครื่องดนตรี การใช้ Photoresistor และ Piezo element เราจะสร้าง Theremin ที่ควบคุมด้วยแสง
krivanja
รายละเอียดทางเทคนิคเพิ่มเติม
การสังเคราะห์เสียงด้วยแสง
Theremin เป็นเครื่องดนตรีที่เล่นโดยไม่ต้องสัมผัสทางกายภาพ ในเวอร์ชันดิจิทัลนี้ "เสาอากาศ" จะถูกแทนที่ด้วย LDRs (Light Dependent Resistors)
- การตรวจจับแสง: ความต้านทานของ LDR จะเปลี่ยนไปตามความเข้มของแสง Analog pin ของ Arduino จะอ่านค่า voltage divider ที่เกิดขึ้น
- การแมปโทน: ฟังก์ชัน
tone() จะนำค่าที่อ่านได้จาก Analog มาแมปกับช่วงความถี่ที่เฉพาะเจาะจง (เช่น 200Hz ถึง 2000Hz)
- การควบคุมด้วยท่าทาง: ด้วยการโบกมือเหนือเซ็นเซอร์ คุณจะเปลี่ยนเงา ซึ่ง Arduino จะตีความว่าเป็นการเปลี่ยนแปลงของ pitch และ/หรือ volume
ขั้นตอนการปรับเทียบ
เนื่องจากแสงโดยรอบมีความแตกต่างกัน โค้ดจึงมักจะรวม calibration phase ไว้ในช่วง 5 วินาทีแรกของการเริ่มต้น โดยจะบันทึกระดับแสง "Minimum" และ "Maximum" เพื่อให้แน่ใจว่าสามารถเข้าถึงช่วง pitch ของ Theremin ได้อย่างเต็มที่
ข้อมูล 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: "th"