Perfect costumer support
TV
Solar Energy
Home & Office
Gaming
Electronics & Projects
Network
Cameras
KY-038 | Microphone Sound Sensor Module
KY-038 Noise / Sound Sensor Threshold Module
This sensor is ideally suited for threshold value measurement. This means that the sensor emits a digital high signal as soon as a threshold value set by the user on the rotary potentiometer is exceeded. It should be noted here that the digital signal is a comparison of the value set on the rotary potentiometer and the measured value on the sensor, which are then compared by the LM393 comparator installed on the board. The set value of the rotary potentiometer is the threshold value, which is used to define a logical high signal.
Digital output
If the sound level is above the set threshold value, a signal is output here
Analog output
Direct measured value of the sensor unit
LED1
Indicates that the sensor is supplied with voltage
LED2
Indicates that the sound level has exceeded the set threshold value
FUNCTIONALITY OF THE SENSOR
This sensor has two functional components on its circuit board: The front sensor unit, which physically measures the environment and outputs it as an analog signal to the second unit, the comparator. The comparator compares the measured value of the sensor with the value set on the rotary potentiometer and outputs a logical high signal on the digital pin and LED L1 if the value on the rotary potentiometer is exceeded.
Please note: The signal is inverted. If a high value is measured, this results in a lower voltage value at the analog output.
PIN ASSIGNMENT
| ARDUINO | SENSOR |
|---|---|
| 5V | +V |
| GND | GND |
| Pin 3 | Digital Signal |
| Pin A0 | Analog Signal |
CODE EXAMPLE
The program reads the current voltage value, which can be measured at the analog output, and outputs it on the serial port. In addition, the status of the digital pin in the console is also indicated, which means whether the limit has been exceeded or not.
To load the following code example onto your Arduino, we recommend using the Arduino IDE. In the IDE, you can select the appropriate port and board for your device.
Copy the code below into your IDE. To upload the code to your Arduino, simply click on the upload button.
// Declaration and initialization of the input pins
int analog_input = A0; // Analog output of the sensor
int digital_input = 3; // Digital output of the sensor
void setup () {
pinMode(analog_input, INPUT);
pinMode(digital_input, INPUT);
Serial.begin(9600); // Serial output with 9600 bps
Serial.println("KY-038 Noise detection");
}
// The program reads the current values of the input pins
// and prints them to the serial output
void loop () {
float analog_value;
int digital_value;
// Current values are read out, converted to the voltage value...
analog_value = analogRead(analog_input) * (5.0 / 1023.0);
digital_value = digitalRead(digital_input);
//... and printed at this point
Serial.print("Analog voltage value: ");
Serial.print(analog_value, 4);
Serial.print(" V, t Threshold value: ");
if (digital_value == 1) {
Serial.println("reached");
}
else {
Serial.println("not yet reached");
}
Serial.println("----------------------------------------------------------------");
delay(1000);
}
What our customers say
David and Aman were amazing. We had trouble with our Auxiliary cord. They were patient knowledgeable and friendly
Excellent service i really appreciate Highly recommend
Excellent customer service!
Very nice place! They helped me with my gadget for my scooter! 💛recommended
Very helpful staff. Found what I was looking for😎
Very helpful and did solve the issues about my husband’s phone. Thank you
David was super friendly and knowledgeable and also patient with my parents
went to buy a mobile microphone, they have different options and gave me very helpful advices to decide which one i should get :)
Excellent Service Im very happy with the service I recieved . They were incrediblly helpful and always went out of their way to explain everything clearly and patiently. All of the electronics were excellent quality and I really apreciated the time and effort they put into helpong me! Highly Recommended!!
Increible atención
Everything you need you can find, kindness and professionality
They are advertising the new Z Fold 8 ultra. We have the Z Fold 7, so we went there to check it out ans to buy a new mobile. I asked to see the phone because, in stores, they usually let you see and touch the phone before buying it. The guy replied in a really sarcastic way: “As I am the professional here, I can confirm that it is a good phone.” I was like: “What?” Then I showed him that I already had a Z Fold 7 in my hands. He replied: “So, you already know that it is a good phone.” Again, I was like: “What?” So I explained that I simply like to see and touch the phone before buying it. He just told me: “OK, go to a big store. We don’t have the phone here.” Well… not recommended. Even though I’m a big Samsung fan, I still want to check the phone for myself before buying it. It’s up to me. Expertise on something? ChatGPT also has expertise and will probably tell me much more than a sales guy.
Very helpful and friendly service. Thanks so much.
Amazing service and staff always ready to help and a vast selection of items to choose from.
Good service, David very knowledgeable and helpful
Very pleasant experience, staff is happy to help and provide information
Friendly, helpful team who are attentive and take their time to advise you with what product best meets your needs. Really appreciate the service!
Хороший ассортимент, профессиональные и приветливые сотрудники, помогли и подсказали с выбором
David es un genio. Atencion 10 puntos. Gran variedad! 🤝👏
Great service. Fast reliable and very professional people. Keep it guys u re great all of you.
Good sarvic
Impressing staff!!!thank you
Good staff, perfect service, will recommend this shop over other
Fantastic store!
Top service, my experience was very nice, they helped me with all the questions i asked very knowledgeable 100% recommend
The best staff in QAWRA very helpful and friendly 👏🏻👏🏻👏🏻👏🏻 definitely highly recommend place 😊
Zero stars if I could. I purchased a fitness tracker from this store that failed to perform its most basic advertised functions. It would not reliably track steps, sleep, or heart-rate data, and the battery life was nowhere near what was claimed. When I returned to the store for assistance, I was told the device had been checked and was supposedly working correctly. However, the problems continued exactly as before. Despite the tracker clearly not functioning as expected, the store refused to offer a replacement or further assistance and instead told me to deal directly with the manufacturer. This is extremely disappointing customer service. When a product sold by a retailer appears to be defective, customers reasonably expect the retailer to help resolve the issue rather than simply pass responsibility elsewhere. The most frustrating part was not the faulty device itself, but the complete lack of support once the sale had been made. Based on my experience, I would strongly recommend that others think carefully before purchasing electronics from this business, especially if after-sales support and customer service are important to them.
The staff were really helpful and they knew a lot about their products. 10/10 I'd definitely recommend this store. Also, it is the only place in St. Paul's Bay selling Kodak, Polaroid cameras and digital cameras.
Fastest repair
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
(+356) 2744 3236 VAT MT16528323 · 3D Secure payments by Viva Wallet
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
