B3
B3
B3
LAB ASSIGNMENT: B3
OBJECTIVE:
FINDING THE SPEED OF SOUND IN DRY AIR USING AN ULTRASONIC RANGE
FINDER.
INTRODUCTION
This formula takes into account the round-trip time, as the sound wave travels to the object and back to
the sensor. With the integration of Arduino, accurate time measurements can be obtained, allowing real-
time distance calculations. Through experimental analysis, we aim to demonstrate the practical
implementation of electromagnetism in robotics using ultrasonic sensors and Arduino. This exploration
opens up possibilities for applications such as object detection, obstacle avoidance, and spatial mapping.
Experiment Diagram
PROCEDURE
Download and install Arduino IDE (https://www.arduino.cc/en/Main/Software)
• Plug in your Arduino Board
• Select the proper board in the IDE and the proper COM port.
• Press the Upload button to upload the program to the board
• Connect the SR04 VCC, SR04 GND, SR04 TRG, SR04 ECHO pins to the Arduino board.
• Input the codes below for the distance measurement analysis and connect your Arduino board
to the PC via the USB cable.
• Select the Arduino Port under Tools on the Arduino IDE (See Figure 4)
• Compile and run the code.
• Use the Signal Monitor to observe the distance measurements for various obstacle ranges
TABLE OF VALUES
Metre rule measurement Ultrasonic distance reading D Inverse (cm)-1 ±0.01 Time delay(s) ±0.01
D (cm)±0.01
(cm)±0.01
10.00 9.00 0.11 583.09
120.00
110.00
y = 0.0172x
100.00
90.00
80.00
70.00
D(cm)
60.00
50.00
40.00
30.00
20.00
10.00
0.00
0.00 1000.00 2000.00 3000.00 4000.00 5000.00 6000.00 7000.00
ΔT(s)
DEDUCTION:
Y=mx +c (1)
𝛥𝑇×𝐶
D= (2)
2
DICUSSION
Electromagnetism and sound play important roles in robotics. Electromagnetism can be used to
control the movement of robots, while sound can be used to detect the presence of objects and
measure their distance.
Sound can be used to detect the presence of objects and measure their distance using ultrasonic
sensors. Ultrasonic sensors emit high-frequency sound waves that bounce off objects and return
to the sensor. By measuring the time it takes for the sound wave to return. the sensor can
determine the distance to the object.
The speed of sound is an important factor in the accuracy of ultrasonic sensors. The speed of
sound varies depending on the temperature and humidity of the air. This can affect the accuracy
of the distance measurements made by the sensor. By using electromagnets to control the
movement of the robot. the robot can be programmed to compensate for changes in the speed of
sound and maintain accurate distance measurements
Overall, the application of electromagnetism and sound in robotics is an important arca of
research and development. By combining these two technologies, robots can be programmed to
perform complex tasks and interact with their environment in new and innovative ways
PRECAUTIONS
When conducting an experiment to determine the speed of sound in electromagnetism
using an Arduino, there are several precautions that should be taken to ensure accurate
is important to ensure that the distance between the two devices used in the experiment is
inaccurately measured. This can be done using a measuring tape or ruler, and the distance should
be measured multiple times to ensure consistency.
It is important to ensure that the experiment is conducted in a controlled environment-free from
external factors that could affect the speed of sound, such as temperature and humidity.
Finally, it is important to take multiple measurements and calculate an average value 10 ensure
that the results are accurate and reliable. This can be done using the Arduino to record multiple
measurements and calculate the average speed of sound based on those measurements.
Overall, by taking these precautions, researchers and engineers can ensure that their experiments
to determine the speed of sound in electromagnetism using an Arduino are accurate, reliable, and
provide valuable data for the development of robotics and other applications that rely on
ultrasonic sensors.
CONCLUSION
In conclusion, an experiment to determine the speed of sound in electromagnetism would involve
measuring the time it takes for a sound wave to travel a known distance between two points
By dividing the distance between the two devices by the time it took for the sound wave to travel
that distance, you can calculate the speed of sound in electromagnetism.