โมดูล ตรวจจับเสียง จับระดับความดังของเสียง
![]() กดเพื่อขยายขนาด |
|
โมดูล ตรวจจับเสียง จับระดับความดังของเสียง
โมดูลดักจับเสียง KY-037
รายละเอียด:
สำหรับโมดูลตรวจจับเสียงมีเอาท์พุท:
1. AO, เอาต์พุตอนาล็อก, เวลาสัญญาณแรงดันขาออกของไมโครโฟน
2. เมื่อความเข้มของเสียงถึงบางเกณฑ์เอาท์พุทสูงและสัญญาณต่ำ
โมดูลคุณสมบัติ:
1. มีสกรูยึดรู 3 มิลลิเมตร
2. 5 โวลต์แหล่งจ่ายไฟกระแสตรง
3. เอาต์พุตอะนาล็อก
4. มีเกณฑ์ระดับเอาต์พุต
5. ไมโครโฟนที่มีความไวสูงและมีความไวสูง
6. ไฟแสดงสถานะ
7. เอาท์พุทเครื่องเปรียบเทียบมีน้ำหนักเบา
ตัวอย่างโปรแกรม
1. กรณี ใช้ขา DO (digital output)
int Led=13;//define LED interface
int buttonpin=3 //Define D0 Sensor Interface
int val;//define numeric variables val
void setup()
{
pinMode(Led,OUTPUT);// Define LED as output interface
pinMode(buttonpin,INPUT);//Define D0 Sensor as output Interface
}
void loop()
{
val=digitalRead(buttonpin);//digital interface will be assigned a value of 3 to read val
if(val==HIGH)//When the light sensor detects a signal is interrupted, LED flashes
{
digitalWrite(Led,HIGH)
}
else
{
digitalWrite(Led,LOW)
}
}
2. กรณี ใช้ขา AO (analog output)
int sensorPin = A5; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
Serial.println(sensorValue, DEC);
}

Share
![]() Arduino Nano V3.0 ATMEGA328P Arduino Nano V3.0 160.00 บาท |
![]() Arduino UNO R3 MEGA328P ATMEGA16U2 Arduino UNO R3 170.00 บาท |
![]() Arduino Pro Mini 328 Mini Pro Mini 328 Mini 220.00 บาท |
![]() Arduino Mega 2560 R3 Mega 2560 R3 590.00 บาท |
![]() Arduino Nano V3.0 ATMEGA328P-AU 5V 16MHz arduino uno r3 130.00 บาท |
![]() DC Motor Drive (ขับมอเตอร์ DC) L298 DC Motor Drive 70.00 บาท |
![]() infrared อินฟาเรด sensor module infrared sensor 25.00 บาท |
![]() Arduino UNO R3 ATMEGA328P-AU Board + USB cable Arduino UNO R3 110.00 บาท |
![]() Adapter 100-220VAC TO 5V 2A 5.5mm*2.1mm Adapter 5V 2A 100.00 บาท |
![]() C51 AVR MCU development board C51 MCU Diy Barad 260.00 บาท |
![]() I2C NANO I/O Expansion Sensor Shield NANO I/O Sensor 50.00 บาท |
![]() Ardupilot Mega Apm 2.9 Flight Controller + Gps Module Drone (โดรน) ArduPilot APM2.8 + GPS 1,500.00 บาท |
![]() Heater แบบเหนี่ยวนำ Tesla 5v-12v Heating Board Heater inductive 5v-12v 190.00 บาท |
![]() CH340G USB to serial IC CH340G 20.00 บาท |
ความคิดเห็น: คำแนะนำ: HTML จะไม่ถูกแปลง!
ความนิยม: แย่ ดี
ป้อนรหัสในกล่องข้างล่างนี้: