



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Nicole Eho Friday Morning 22481436 Subgroup 51 Date: 7 th^ August, 2026 A. TITLE: Application of Electromagnetism in Robotics- Determination of the Speed of Sound in Air Using an Arduino and an Ultrasonic (HC-SR04) Sensor. B. AIM/OBJECTIVE: i. To investigate how electromagnetism is applied in robotics using an Arduino and an ultrasonic sensor. ii. To determine the speed of sound in air using an Arduino and an ultrasonic sensor. Apparatus Used: ● Arduino Uno board ● HC-SR04 ultrasonic sensor ● Jumper wires ● A metre rule ● Breadboard ● Arduino IDE ● A computer Experimental Setup:
Table: Ultrasonic distance and time-delay readings for obstacle positions from 10 cm to 100 cm Metre Rule Reading (cm) Ultrasonic Distance, D (cm) D Inverse (cm⁻¹) Time Delay, ΔT (μs) 10 10 0.1000 602 20 20 0.0500 1203 30 30 0.0333 1789 40 40 0.0250 2361 50 50 0.0200 2947 60 60 0.0167 3573 70 70 0.0143 4120 80 80 0.0125 4733 90 90 0.0111 5324 100 100 0.0100 5916
From the graph, Worst-fit line gradient = 0.0188cm/μs c=2× gradient of line of worst-fit c=2× 0.0188cm/μs c= 0.0376 cm/μs c= 0.0376×10-^2 ×10^6 m/s c= 0.0376×10^4 m/s c= 376m/s Absolute uncertainty in the speed of sound(Δc) = | cbest- cworst | = | 340 - 376 | m/s = 36 m/s Perecentage uncertainty in the speed of sound = | cbest- cworst |/ cbest × 100% = (36/340) × 100% = 10.6% Speed of sound in air : (340 ± 36) m/s Standard value of speed of sound (20 °C, dry air) = 343.0 m/s (Theoretical value) Percentage difference from standard value = (|Theoretical value – Experimental value|) /Theoretical value × 100% = (343-340)/343 × 100%
The plot of distance 𝐷 against time delay Δ𝑇 yields a straight line passing near the origin, confirming the linear proportional model D= c⋅ΔT 2
. The experimental value of 340 m/s shows strong agreement with the standard literature value of 343.0 m/s at 20°C, yielding a low percentage error of 0.875%. Hence the experimental speed of sound may be quoted as (340 ± 36) m/s. Possible sources of this uncertainty include: reaction-time/rounding error in reading the Serial Monitor output, the finite resolution of the metre rule (± 0.1 cm) and of the Arduino's, slight misalignment of the obstacle relative to the sensor's ultrasonic beam axis, and small variations in ambient temperature and humidity during the measurements, both of which affect the true speed of sound. To minimise errors, I checked all jumper wire connections between the breadboard, sensor, and Arduino Uno to ensure secure physical contact. Also, I placed the target obstacle flat and perpendicular to the ultrasonic sensor beam to minimize reflection loss. I also viewed ruler graduation lines perpendicularly to eliminate parallax errors when recording distances. G. CONCLUSION The experiment successfully demonstrated the application of electromagnetism in robotics using an Arduino Uno and an HC-SR04 ultrasonic sensor. The speed of sound in air was experimentally determined to be (340 ± 36) m/s which compares closely with the theoretical standard value of 343.0 m/s at 20°C, yielding a low percentage error of 0.875%.