กลับไปหน้ารวมไฟล์
touch-sensor-and-sound-sensor-controlling-acdc-lights-e4defb.md

เจ้า Sound [Sensor](https://s.shopee.co.th/7VBG2rX65j) เนี่ย มันตรวจจับความดังของเสียงรอบข้างได้นะ ตัวหลักของโมดูลก็คือไมโครโฟนธรรมดาๆ กับชิป LM393 ที่ใช้แปลงสัญญาณนั่นแหละ เซนเซอร์ตัวนี้ให้ Output ทั้งแบบ Digital และ Analog เลย งานนี้จัดเต็ม!

โปรเจกต์แรกของพี่เลย ทำงานบนเซนเซอร์พื้นฐานสองตัว ตัวนึงคือ Touch Sensor อีกตัวคือ Sound Sensor เนี่ยแหละ พอเราแตะที่แผ่น Touch Sensor ไฟ AC ก็จะติด พอปล่อยมือไฟก็ดับ ส่วน Sound Sensor ก็ใช้ตรวจจับเสียง เช่น ตบมือหรือทำเสียงดัง ไฟ DC LED ก็จะติด ถ้าไม่มีเสียงไฟก็ดับ ง่ายๆแบบนี้แหละน้อง

Step 1: อุปกรณ์หลักที่ต้องมี

1. ไฟ AC 230V - 1 ดวง

2. ไฟ LED DC 12V - 1 ดวง

3. [Relay](https://s.shopee.co.th/3fyXTmWPbL) 12V - 1 ตัว

4. ทรานซิสเตอร์ NPN 2N4401 - 2 ตัว

5. Breadboard - 1 อัน

6. ตัวต้านทาน 1K-1/4W - 2 ตัว

7. สายจัมเปอร์เพียบ

(หมายเหตุ: พี่ใช้ [Arduino](https://s.shopee.co.th/7fUgFAWSki) ในที่นี้แค่เพื่อเป็นแหล่งจ่ายไฟ DC 5V เท่านั้นนะ อย่าสับสน)

Step 2: แหล่งจ่ายไฟ AC/DC

1. แหล่งจ่ายไฟ AC ขนาดสูงสุด 270V

2. แหล่งจ่ายไฟ DC ขนาดสูงสุด 30V

Step 3: แผงวงจร (Circuit Diagram)

1. วงจรหลักสำหรับควบคุมไฟ AC 5 ดวง

Step 4: วงจรทั้งสองเซนเซอร์บน Breadboard

ถ้ามีข้อสงสัยเกี่ยวกับวงจรตามนี้

Step 5: วิดีโอสาธิต

ข้อมูล Frontmatter ดั้งเดิม

title: "Touch Sensor and Sound Sensor Controlling AC/DC Lights"
description: "A touch sensor pad with sound sensor controlling AC/ DC lights."
author: "Anbumachi"
category: "Sensors & Environment"
tags:
  - "home automation"
  - "smart appliances"
  - "security"
  - "remote control"
views: 13270
likes: 4
price: 699
difficulty: "Intermediate"
components:
  - "1x General Purpose Transistor NPN"
  - "1x Materia 101"
  - "1x DC Power Supply for 12V / Battery"
  - "1x Capacitive Touch Sensor Breakout - MPR121"
  - "1x SparkFun Electret Microphone Breakout"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/8fb852d8-b398-4f22-884d-44f2c4674d49.ino"
  - "https://projects.arduinocontent.cc/8fb852d8-b398-4f22-884d-44f2c4674d49.ino"
documentationLinks: []
passwordHash: "fa4df60350d4924c819ac17b2e7b3a7c49b27b6568a1687c1fca371301533c93"
encryptedPayload: "U2FsdGVkX1/0NNSs35Sj/ryNW5Borj7hf0qNioUqP8KVgvzh/xPQIq2gu80OOr8nBV52J35NpZhTpzHOVVAyQ68aZ8ioHw8FqujU55vRJ8k="
seoDescription: "Control AC/DC Lights using a Touch Sensor and Sound Sensor with Arduino in this easy project."
videoLinks:
  - "https://www.youtube.com/embed/7ahjdGuMRT0"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/touch-sensor-and-sound-sensor-controlling-acdc-lights-e4defb_cover.jpg"
lang: "th"