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; //Sensor Trip pin connected to Arduino pin 13
- int echoPin=04; //Sensor Echo pin connected to Arduino pin 11
- float pingTime;
- float speedOfSound;
- int targetDistance=6; //Distance to Target in inches
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- pinMode(trigPin, OUTPUT);
- pinMode(echoPin, INPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- digitalWrite(trigPin, LOW); //Set trigger pin low
- delayMicroseconds(2000); //Let signal settle
- digitalWrite(trigPin, HIGH); //Set trigPin high
- delayMicroseconds(10); //Delay in high state
- digitalWrite(trigPin, LOW); //ping has now been sent
- pingTime = pulseIn(echoPin, HIGH); //pingTime is presented in microceconds
- speedOfSound = (targetDistance*2)/pingTime*(1000000)*3600/63360; //converts to miles per hour
- Serial.print("The Speed of Sound is: ");
- Serial.print(speedOfSound);
- Serial.println(" miles per hour");
- delay(1000);
- }
- 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:

Santhakumar MunuswamyPosted May 21, 2016, 2:21 AM
Thank you for nice work
Prasanna MuraliPosted May 20, 2016, 10:05 AM
Nice one
Sr KarthigaPosted May 3, 2016, 10:23 AM
thank you debasis sir
Sr KarthigaPosted May 3, 2016, 10:23 AM
Thank you vignesh sir
Debasis SahaPosted May 3, 2016, 9:29 AM
Good One..
Vignesh ManiPosted May 3, 2016, 9:28 AM
Good one.
Sr KarthigaPosted May 3, 2016, 8:40 AM
thank you bhuvanesh sir
Sr KarthigaPosted May 3, 2016, 8:39 AM
Thank you amit dave sir
Bhuvanesh MohankumarPosted May 3, 2016, 8:20 AM
Good effort Karthiga
Amit DavePosted May 3, 2016, 6:53 AM
Nice article!