What are Sensors?
A sensor is a device that detects and responds to some type of input from the physical environment. The specific input could be light, heat, motion, moisture, pressure, or any one of a great number of other environmental phenomena. The output is generally a signal that is converted to human-readable display at the sensor location or transmitted electronically over a network for reading or further processing.
Sensors and It's Types
All types of sensors can be basically classified into analog sensors and digital sensors. But, there are a few types of sensors such as temperature sensors, IR sensors, ultrasonic sensors, pressure sensors, proximity sensors, and touch sensors are frequently used in most electronics applications.
- Temperature Sensor
- IR Sensor
- Ultrasonic Sensor
- Touch Sensor
- Proximity Sensors
- Pressure Sensor
- Level Sensors
- Smoke and Gas Sensors
Sound Sensor
These sensors are usually microphone devices that are used to know the sound and deliver the corresponding level of voltage based on the detected sound level. With the implementation of a sound sensor, a small robot can be manufactured to navigate depending on the level of the received sound.
When compared with light sensors, the design process of sound sensors is somewhat complicated. This is because sound sensors deliver very minimal voltage difference and this has to be amplified to provide measurable voltage variation.
I made a Sound Sensor at home.
The factory made sound sensors are very expensive so I have decided to buy components and make it at home.
This sound sensor I made at home works accurate.
You can use it in making a lot of projects like clap switch, room lights using sound sensor, VU light meter etc.
Visit the below Amazon India Affiliate links :-
Parts List:-
Circuit Diagram :
💻Sound Sensor code
//https://www.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g //
// Sound sensor code //
// MOHD SOHAIL //
const int ledpin=13; // ledpin and soundpin are not changed throughout the process
const int soundpin=A2;
const int threshold=200; // sets threshold value for sound sensor
void setup() {
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
pinMode(soundpin,INPUT);
}
void loop() {
int soundsens=analogRead(soundpin); // reads analog data from sound sensor
if (soundsens>=threshold) {
digitalWrite(ledpin,HIGH); //turns led on
delay(3000);
}
else{
digitalWrite(ledpin,LOW);
}
}
0 Comments