Introduction
     - In this article I will explain about measuring Voice Speed with Arduino Mega 2560.
- It can be used to identify the voice of the speed.
- This works in the same way a bat uses high pitched tones to navigate in the dark.
 
Parts
     - Arduino Mega 2560
- Ultrasonic Transreciever
 
- Hookup wires
 
Ultrasonic Sensor (HC-SR04):
 
 
Figure 1: Ultrasonic Sensor 
     - It is used to produce the high-frequency sound effect.
- It can measure the signal from the sender to the receiver.
- The echo to be determined from the object.
 
We can fix the Ultrasonic Sensor (HC-SR04):
     - Hospital for medicine,
- Industry,
- Home etc.
 
Connection:
     - Connection from Sensor to Arduino Board:
- Connect the Trigger pin to digital pin 03 of the board.
- Connect the Echo pin to the digital pin 04 of the board.
- Connect the Vcc pin to the 5V of the board.
- Connect the GND pin to the Gnd of the board.
 
Programming:
     - int trigPin=03;   
- int echoPin=04;    
- float pingTime;  
- float speedOfSound;  
- int targetDistance=6;   
- void setup() {  
-     
-   Serial.begin(9600);  
-   pinMode(trigPin, OUTPUT);  
-   pinMode(echoPin, INPUT);  
-    
- }  
-    
- void loop() {  
-     
-     
-   digitalWrite(trigPin, LOW);   
-   delayMicroseconds(2000);   
-   digitalWrite(trigPin, HIGH);   
-   delayMicroseconds(10);   
-   digitalWrite(trigPin, LOW);   
-     
-   pingTime = pulseIn(echoPin, HIGH);    
-    
-   speedOfSound = (targetDistance*2)/pingTime*(1000000)*3600/63360;          
-   Serial.print("The Speed of Sound is: ");  
-   Serial.print(speedOfSound);  
-   Serial.println(" miles per hour");  
-   delay(1000);  
-   }  
 
 
Explanation: 
     - In this article I have explained about measuring voice speed.
- It can work under the trig condition side.
- When the distance is in the over level it can measure the distance in the target inches.
- If the target is 6 inches they need 12 inches.
- The target place is 6 and return place is 06.
- The speed of the range is displayed in the serial monitor. 
 
Output:
 
 
Figure 2 : Output
 
 
Read more articles on Arduino: