<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pc5271.org/PC5271_AY2425S2/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jonathan</id>
	<title>PC5271 wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://pc5271.org/PC5271_AY2425S2/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jonathan"/>
	<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php/Special:Contributions/Jonathan"/>
	<updated>2026-04-15T22:36:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2436</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2436"/>
		<updated>2025-04-29T11:54:56Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5 and the accopmanying circuit diagram.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 ns, which, when calculated, gives about 6-9 m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80 cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410 cm. This would lead to an additional delay of 13.7 ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10 cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5 cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2416</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2416"/>
		<updated>2025-04-29T11:47:02Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5 and the accopmanying circuit diagram.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 ns, which, when calculated, gives about 6-9 m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80 cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410 cm. This would lead to an additional delay of 13.7 ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2414</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2414"/>
		<updated>2025-04-29T11:46:46Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5 and the accopmanying circuit diagram.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 ns, which, when calculated, gives about 6-9 m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80 cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7 ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2412</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2412"/>
		<updated>2025-04-29T11:45:46Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Experiment Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5 and the accopmanying circuit diagram.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2411</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2411"/>
		<updated>2025-04-29T11:45:14Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2408</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2408"/>
		<updated>2025-04-29T11:44:24Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Recording the Time Delay vs. Distance Mapping */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. &lt;br /&gt;
&lt;br /&gt;
With the apparatus in place, the following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–3 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–3&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2407</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2407"/>
		<updated>2025-04-29T11:43:12Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Experiment Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. (Note: the LED--and the detector below--should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2405</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2405"/>
		<updated>2025-04-29T11:42:26Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Experiment Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that (when the function output is on) visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode on the linear translation stage and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position on the translation stage such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Recording the Time Delay vs. Distance Mapping====&lt;br /&gt;
(Note: the detector and LED should be mounted on the translation stage via postholders so that their heights are adjustable.)&lt;br /&gt;
Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. With the light from LED hitting the photodetector, observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following procedure outlines how to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2400</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2400"/>
		<updated>2025-04-29T11:32:45Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Equipment List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Linear translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2399</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2399"/>
		<updated>2025-04-29T11:32:24Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Equipment List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetectorwith an amplifier&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2398</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2398"/>
		<updated>2025-04-29T11:32:07Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Detection and Amplification Circuit Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, mount the Hamamatsu S5971 silicon photodiode to a position such that it can detect the light signal. To amplify the signal linearly without saturation, the detector output is connected to a high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the detector/amplifier combination to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2397</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2397"/>
		<updated>2025-04-29T11:29:59Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Experimental Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experiment Setup==&lt;br /&gt;
For a visual of the completed setup, please refer to figure 5.&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2393</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2393"/>
		<updated>2025-04-29T11:27:38Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Laser Modulation and System Initialisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 1 to 3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:data1.png|600px]]&lt;br /&gt;
| [[File:data2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We can calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. This will be the &amp;lt;math&amp;gt;\delta t_i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Then to calculate uncertainty for difference in delay: &amp;lt;math&amp;gt;\delta t = \sqrt{(\delta t_1)^2 + (\delta t_2)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the uncertainty of calculated difference distance from delay time: &amp;lt;math&amp;gt;\delta d = d \times \sqrt{\bigl(\frac{\delta t}{t_1 - t_2}\bigr)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:final1.png|600px]]&lt;br /&gt;
| [[File:final2.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 5.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Table 6.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. Furthermore, the values obtained go beyond the calculated uncertainties in Table 5 and 6. This shows that the main source of error was experimental, likely due to the challenges mentioned such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2337</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2337"/>
		<updated>2025-04-29T10:09:02Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Time Delay vs. Distance Mapping */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring that the beam returning to the detector at all positions is aligned along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2329</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2329"/>
		<updated>2025-04-29T10:03:02Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Detection and Amplification Circuit Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; compare it to the reference signal from the function generator (Channel 1) as the modulation phase reference; the two signals should be out of phase.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2326</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2326"/>
		<updated>2025-04-29T10:02:26Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Laser Modulation and System Initialisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Use a T-section to connect the oscilloscope (same port used by the function generator) to the laser LED, and verify that visible light is emitted from the laser. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2323</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2323"/>
		<updated>2025-04-29T10:00:44Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Laser Modulation and System Initialisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the function generator to the oscilloscope and verify that the signal output from the function generator can be observed on the oscilloscope. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode, and connect the photodiode to another channel the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2321</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2321"/>
		<updated>2025-04-29T09:59:11Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Laser Modulation and System Initialisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Connect the DC power supply set to constant voltage (5.0 V in this setup) to the photodiode.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2319</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2319"/>
		<updated>2025-04-29T09:57:30Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Optical Alignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use the aspheric lens to collimate and focus the beam onto the reflective target surface. The lens should be placed in a cage plate and mounted in a position such that the distance between the lens and the LED is the focal length of the lens. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2318</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2318"/>
		<updated>2025-04-29T09:56:14Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Equipment List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens (model used: Thorlabs F220FC-B, f = 10.99 mm)&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2317</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2317"/>
		<updated>2025-04-29T09:49:56Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Equipment List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
For our experiment, using an oscilloscope, you can measure the phase delay between generated wave and reflected wave. This makes the task of finding the distance based on phase delay much simpler. &amp;lt;math&amp;gt;\text{Calculated Distance from phase delay} = \delta t \times c&amp;lt;/math&amp;gt; where c is the speed of light.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Aspheric lens to mount on the LED and collimate the light beam&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# &#039;&#039;&#039;Repeat steps 1–4 for different distances&#039;&#039;&#039; on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and &#039;&#039;&#039;repeat steps 1–4&#039;&#039;&#039; for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. The length of the BNC cables was 410cm. This would lead to an additional delay of 13.7ns. We hypothesise that the rest of the delay is due to the internal wiring functions of the oscilloscope.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. The beam spot on the detector is shown in Figure 9.  &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
# There might have also been a possibility of saturating our photodetector, as our beam was incident directly on it. We tried to reduce the input voltage to the LED, but reducing the voltage below 3V led to no signal appearing on the oscilloscope.  &lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. The uncertainty of the meter ruler was &amp;lt;math&amp;gt;\pm 0.1cm&amp;lt;/math&amp;gt; and the uncertainty of the oscilloscope was &amp;lt;math&amp;gt;\pm 0.001ns&amp;lt;/math&amp;gt;. If we calculate the uncertainty using the standard error which is &amp;lt;math&amp;gt;\frac{\sigma}{\sqrt{n}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\sigma&amp;lt;/math&amp;gt; is the standard deviation of the raw data and n is the number of samples. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2297</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2297"/>
		<updated>2025-04-29T08:05:34Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2296</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2296"/>
		<updated>2025-04-29T08:05:06Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2295</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2295"/>
		<updated>2025-04-29T08:00:06Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Note: Advantages of Phase-delay measurement ===&lt;br /&gt;
&lt;br /&gt;
The phase-shift measurement method is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4]. Because this technique extracts distance from the phase of a continuous waveform rather than from absolute travel time or geometry, it can achieve high precision with modest electronic bandwidths.  &lt;br /&gt;
The use of a continuous waveform allows the transmitter to run at lower power and simpler circuitry, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2294</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2294"/>
		<updated>2025-04-29T07:53:58Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) measurement[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Mathematical Background on Phase-Shift Distance Measurement ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Note: Advantages of Phase-delay measurement ===&lt;br /&gt;
&lt;br /&gt;
The phase-shift measurement method is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2292</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2292"/>
		<updated>2025-04-29T07:39:21Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is a technique to measure distances remotely when on-site measurement becomes inconvenient. This has many applications such as autonomous driving, radar, and precision manufacturing. The working principle of using lasers to measure such distances can generally be categorised into one of three approaches: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1]. Here we will construct an apparatus according to the third approach. &lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of &#039;&#039;&#039;10cm&#039;&#039;&#039; was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of &#039;&#039;&#039;46.5cm&#039;&#039;&#039;was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2288</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2288"/>
		<updated>2025-04-29T07:18:24Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing. Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1].  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|650px]]&lt;br /&gt;
| [[File:finalwithmirror.png|650px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2287</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2287"/>
		<updated>2025-04-29T07:17:56Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing. Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1].  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|650px]]&lt;br /&gt;
| [[File:finalwithmirror.png|650px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
&lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
&lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
&lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
&lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
&lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2286</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2286"/>
		<updated>2025-04-29T07:17:38Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Reference */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing. Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1].  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|650px]]&lt;br /&gt;
| [[File:finalwithmirror.png|650px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2284</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2284"/>
		<updated>2025-04-29T07:17:18Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing. Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1].  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
[1]Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2283</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2283"/>
		<updated>2025-04-29T07:16:49Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing. Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging[1].  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light[2].  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;[3]&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required[4].  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms[5], and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling[6].&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1] Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]  &lt;br /&gt;
[2] Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]  &lt;br /&gt;
[3] Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]  &lt;br /&gt;
[4] Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]  &lt;br /&gt;
[5] Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]  &lt;br /&gt;
[6] Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:finalwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:finalwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
[1]Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2281</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2281"/>
		<updated>2025-04-29T07:16:30Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref name=&amp;quot;Blais2004&amp;quot; /&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref name=&amp;quot;PaschottaRP&amp;quot; /&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref name=&amp;quot;Wu2022&amp;quot; /&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;Li2023&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref name=&amp;quot;Park2018&amp;quot; /&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref name=&amp;quot;Liu2024&amp;quot; /&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref name=&amp;quot;Ho1998&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
[1]Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2278</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2278"/>
		<updated>2025-04-29T07:11:49Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref name=&amp;quot;Blais2004&amp;quot; /&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref name=&amp;quot;PaschottaRP&amp;quot; /&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref name=&amp;quot;Wu2022&amp;quot; /&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;Li2023&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref name=&amp;quot;Park2018&amp;quot; /&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref name=&amp;quot;Liu2024&amp;quot; /&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref name=&amp;quot;Ho1998&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Blais2004&amp;quot;&amp;gt;Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524 DOI]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;PaschottaRP&amp;quot;&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Wu2022&amp;quot;&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Li2023&amp;quot;&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Park2018&amp;quot;&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Liu2024&amp;quot;&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Ho1998&amp;quot;&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
[1]Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2277</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2277"/>
		<updated>2025-04-29T07:09:00Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Reference */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;&lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
[1]Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2276</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2276"/>
		<updated>2025-04-29T07:08:36Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;&lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2275</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2275"/>
		<updated>2025-04-29T07:08:05Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2274</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2274"/>
		<updated>2025-04-29T07:07:31Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2273</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2273"/>
		<updated>2025-04-29T07:07:07Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2272</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2272"/>
		<updated>2025-04-29T07:06:14Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-Modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms,&amp;lt;ref&amp;gt;Liu, M. (2024). &#039;&#039;Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR.&#039;&#039; Sensors, 24(5), 1617. [https://www.mdpi.com/1424-8220/24/5/1617]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&amp;lt;ref&amp;gt;Ho, T. (1998). &#039;&#039;Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal.&#039;&#039; Sensors and Actuators A, 66(1–3), 110–115. [https://doi.org/10.1016/S0924-4247(97)01716-3]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2271</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2271"/>
		<updated>2025-04-29T07:05:59Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2268</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2268"/>
		<updated>2025-04-29T06:58:18Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== Background and Theory ==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref&amp;gt;Blais, F. (2004). &#039;&#039;Review of 20 Years of Range Sensor Development.&#039;&#039; Journal of Laser Applications, 17(4), 208–220. [https://doi.org/10.2351/1.1848524 DOI]&amp;lt;/ref&amp;gt; Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref&amp;gt;Paschotta, R. &#039;&#039;Phase Shift Method for Distance Measurements,&#039;&#039; RP Photonics Encyclopedia. [https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html]&amp;lt;/ref&amp;gt; The present work adopts the third approach. Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
=== Phase-Shift Ranging Theory ===&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi = \frac{4\pi d}{\lambda_m}, \qquad \lambda_m = \frac{c}{f_m}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.&amp;lt;ref&amp;gt;Wu, D. (2022). &#039;&#039;Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation.&#039;&#039; Photonics, 9(9), 603. [https://www.mdpi.com/2304-6732/9/9/603]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d = \frac{\lambda_m \Delta\phi}{4\pi} = \frac{c\Delta\phi}{4\pi f_m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_\text{max} = \frac{c}{2f_m}.&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;Li, Y. (2023). &#039;&#039;Phase-modulated Continuous-Wave Coherent Ranging Method for High-Precision Measurement.&#039;&#039; Optics Express, 31(4), 6514–6524. [https://doi.org/10.1364/OE.474931]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_m = 10~\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_\text{max} \approx 15~\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
=== Phase-delay measurement offers clear advantages for distance determination ===&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref&amp;gt;Park, J. (2018). &#039;&#039;Multi-tone Modulated Continuous-Wave LiDAR,&#039;&#039; Proceedings of SPIE. [https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf]&amp;lt;/ref&amp;gt;  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2253</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2253"/>
		<updated>2025-04-29T06:18:49Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2251</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2251"/>
		<updated>2025-04-29T06:17:48Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.&amp;lt;ref name=&amp;quot;Blais2004&amp;quot;&amp;gt;{{cite journal |last=Blais |first=F. |title=Review of 20 Years of Range Sensor Development |journal=Journal of Laser Applications |year=2004 |volume=17 |issue=4 |pages=208–220 |doi=10.2351/1.1848524}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.&amp;lt;ref name=&amp;quot;Paschotta&amp;quot;&amp;gt;{{cite web |last=Paschotta |first=R. |title=Phase Shift Method for Distance Measurements |url=https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html |website=RP-Photonics Encyclopedia |access-date=2025-04-29}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_m&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay … (formula)。&amp;lt;ref name=&amp;quot;Wu2022&amp;quot;&amp;gt;{{cite journal |last=Wu |first=D. |title=Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation |journal=Photonics |year=2022 |volume=9 |issue=9 |pages=603 |doi=10.3390/photonics9090603}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Ho1998&amp;quot;&amp;gt;{{cite journal |last=Ho |first=T. |title=Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal |journal=Sensors and Actuators A |year=1998 |volume=66 |issue=1-3 |pages=110–115 |doi=10.1016/S0924-4247(97)01716-3}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is … (formula)。&amp;lt;ref name=&amp;quot;Li2023&amp;quot;&amp;gt;{{cite journal |last=Li |first=Y. |title=Phase-modulated Continuous-Wave Coherent Ranging for High-Precision Measurement |journal=Optics Express |year=2023 |volume=31 |issue=4 |pages=6514–6524 |doi=10.1364/OE.474931}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.&amp;lt;ref name=&amp;quot;Park2018&amp;quot;&amp;gt;{{cite conference |last=Park |first=J. |title=Multi-Tone Modulated Continuous-Wave LiDAR |book-title=Proceedings of SPIE |year=2018 |url=https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Liu2024&amp;quot;&amp;gt;{{cite journal |last=Liu |first=M. |title=Deep Neural Network-Based Phase-Modulated CW LiDAR |journal=Sensors |year=2024 |volume=24 |issue=5 |pages=1617 |doi=10.3390/s24051617}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2248</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2248"/>
		<updated>2025-04-29T06:12:07Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based distance measurement is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &#039;&#039;&#039;reference distance&#039;&#039;&#039;. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &#039;&#039;&#039;distance difference&#039;&#039;&#039;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &#039;&#039;&#039;absolute&#039;&#039;&#039; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the project&#039;s concept was fairly straightforward, the yielded results were not precise within the instruments&#039; uncertainty. This points to experimental errors, such as the lack of a focusing mirror, which caused fluctuations in the delay. The data obtained from calculating the distance difference is ~20-30cm higher than the manually measured distance, which makes it quite inaccurate. To reduce the inaccuracies, the measured distance difference can be larger, in the order of meters. This would mean that the changes in the delay would be in the order of a few nanoseconds rather than a few tenths of a nanosecond, reducing the error from the fluctuation. However, aligning the LED onto the detector would be even more difficult and might cause more fluctuations on the delay if there is no focusing lens.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector to reduce the fluctuation of the time delay on the oscilloscope. &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
# Longer translating stage for longer distance measurement&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2068</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2068"/>
		<updated>2025-04-28T16:08:28Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Reference */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
&lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
&lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
&lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &amp;quot;distance difference&amp;quot;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2067</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=2067"/>
		<updated>2025-04-28T16:07:49Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
&lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
&lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
&lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can refer to this as &amp;quot;distance difference&amp;quot;. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average Distance Difference from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of Calculated Average Distance Difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Wu&lt;br /&gt;
 |first1 = D.&lt;br /&gt;
 |title = Phase-Shift Laser Ranging Technology Based on Multi-Frequency Modulation&lt;br /&gt;
 |journal = Photonics&lt;br /&gt;
 |year = 2022&lt;br /&gt;
 |volume = 9&lt;br /&gt;
 |issue = 9&lt;br /&gt;
 |pages = 603&lt;br /&gt;
 |doi = 10.3390/photonics9090603&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:0]{index=0} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Guo&lt;br /&gt;
 |first1 = X.&lt;br /&gt;
 |title = Frequency-modulated continuous-wave laser ranging using low-duty-cycle LFM signals&lt;br /&gt;
 |journal = Optics Letters&lt;br /&gt;
 |year = 2021&lt;br /&gt;
 |volume = 46&lt;br /&gt;
 |issue = 2&lt;br /&gt;
 |pages = 258–261&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:1]{index=1} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Li&lt;br /&gt;
 |first1 = Y.&lt;br /&gt;
 |title = Phase-modulated continuous-wave coherent ranging method for high-precision measurement&lt;br /&gt;
 |journal = Optics Express&lt;br /&gt;
 |year = 2023&lt;br /&gt;
 |volume = 31&lt;br /&gt;
 |issue = 4&lt;br /&gt;
 |pages = 6514–6524&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:2]{index=2} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite web&lt;br /&gt;
 |url = https://www.rp-photonics.com/phase_shift_method_for_distance_measurements.html&lt;br /&gt;
 |title = Phase Shift Method for Distance Measurements&lt;br /&gt;
 |last = Paschotta&lt;br /&gt;
 |first = R.&lt;br /&gt;
 |website = RP Photonics Encyclopedia&lt;br /&gt;
 |access-date = 29 April 2025&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:3]{index=3} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Zhen&lt;br /&gt;
 |first1 = D.&lt;br /&gt;
 |last2 = Chen&lt;br /&gt;
 |first2 = W.&lt;br /&gt;
 |title = A laser ranging method with high precision and large range in high speed based on phase measurement&lt;br /&gt;
 |journal = Journal of Optoelectronics &amp;amp; Laser&lt;br /&gt;
 |year = 2015&lt;br /&gt;
 |volume = 26&lt;br /&gt;
 |pages = 303–308&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:4]{index=4} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite conference&lt;br /&gt;
 |last1 = Park&lt;br /&gt;
 |first1 = J.&lt;br /&gt;
 |title = Multi-tone Modulated Continuous-Wave LiDAR&lt;br /&gt;
 |book-title = Proceedings of SPIE&lt;br /&gt;
 |year = 2018&lt;br /&gt;
 |url = https://apdsl.eng.uci.edu/RecentConferences/Multi-tone%20modulated%20continuous-wave%20lidar.pdf&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:5]{index=5} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Ho&lt;br /&gt;
 |first1 = T.&lt;br /&gt;
 |title = Error Analysis of Phase-Shift Laser Rangefinder with High-Level Signal&lt;br /&gt;
 |journal = Sensors and Actuators A&lt;br /&gt;
 |year = 1998&lt;br /&gt;
 |volume = 66&lt;br /&gt;
 |issue = 1–3&lt;br /&gt;
 |pages = 110–115&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:6]{index=6} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cite journal&lt;br /&gt;
 |last1 = Liu&lt;br /&gt;
 |first1 = M.&lt;br /&gt;
 |title = Deep Neural Network-Based Phase-Modulated Continuous-Wave LiDAR&lt;br /&gt;
 |journal = Sensors&lt;br /&gt;
 |year = 2024&lt;br /&gt;
 |volume = 24&lt;br /&gt;
 |issue = 5&lt;br /&gt;
 |pages = 1617&lt;br /&gt;
 |doi = 10.3390/s24051617&lt;br /&gt;
}} &amp;lt;!-- :contentReference[oaicite:7]{index=7} --&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1967</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1967"/>
		<updated>2025-04-28T13:07:52Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Methodological Outline */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
&lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
&lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
&lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1965</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1965"/>
		<updated>2025-04-28T13:07:23Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Phase-delay measurement offers clear advantages for distance determination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1963</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1963"/>
		<updated>2025-04-28T13:06:14Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: pulsed time-of-flight (ToF), optical triangulation and phase-shift continuous-wave (CW) ranging.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These merits justify a bottom-up exploration that reveals how modulation linearity, detector bandwidth and amplifier noise ultimately limit accuracy.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
	<entry>
		<id>https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1961</id>
		<title>Laser Distance Measurer</title>
		<link rel="alternate" type="text/html" href="https://pc5271.org/PC5271_AY2425S2/index.php?title=Laser_Distance_Measurer&amp;diff=1961"/>
		<updated>2025-04-28T13:05:49Z</updated>

		<summary type="html">&lt;p&gt;Jonathan: /* Background and Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Laser distance measurement using time‐of‐flight}}&lt;br /&gt;
==Group Members==&lt;br /&gt;
Arya Chowdhury, Liu Sijin, Jonathan Wong&lt;br /&gt;
&lt;br /&gt;
==Background and Theory==&lt;br /&gt;
&lt;br /&gt;
Laser-based ranging is an indispensable branch of modern optical metrology, underpinning industrial inspection, robotic navigation, 3-D scene reconstruction, autonomous-vehicle perception and precision manufacturing.  &lt;br /&gt;
Three mainstream principles are generally distinguished: **pulsed time-of-flight (ToF)**, **optical triangulation** and **phase-shift continuous-wave (CW) ranging**.  &lt;br /&gt;
The present work adopts the third approach.  &lt;br /&gt;
Although commercial phase-shift rangers exist, rebuilding the technique from first principles clarifies its physical foundations, intrinsic error sources and ultimate performance limits, thereby guiding application-specific optimisation.&lt;br /&gt;
&lt;br /&gt;
====Phase-Shift Ranging Theory====&lt;br /&gt;
When a CW laser is intensity-modulated at frequency &amp;lt;math&amp;gt;f_{m}&amp;lt;/math&amp;gt;, round-trip propagation to a target introduces a phase delay  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta\phi \;=\; \frac{4\pi d}{\lambda_{m}}, \qquad&lt;br /&gt;
\lambda_{m} \;=\; \frac{c}{f_{m}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;d&#039;&#039; is the one-way distance and &#039;&#039;c&#039;&#039; is the speed of light.  &lt;br /&gt;
Solving for &#039;&#039;d&#039;&#039; gives  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d \;=\; \frac{\lambda_{m}\,\Delta\phi}{4\pi}&lt;br /&gt;
       \;=\; \frac{c\,\Delta\phi}{4\pi f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because phase is measured modulo &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt;, the maximum unambiguous range is  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{\text{max}} \;=\; \frac{c}{2f_{m}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;f_{m}=10\;\text{MHz}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d_{\text{max}}\approx 15\;\text{m}&amp;lt;/math&amp;gt;, adequate for laboratory-scale demonstrations.&lt;br /&gt;
&lt;br /&gt;
====Phase-delay measurement offers clear advantages for distance determination====&lt;br /&gt;
Phase-shift ranging is preferred over pulsed ToF and optical triangulation whenever sub-millimetre accuracy, compact hardware and real-time operation are simultaneously required.  &lt;br /&gt;
Because the technique extracts distance from the phase of a continuous, MHz-rate modulation rather than from absolute travel time or geometric baselines, it can achieve high precision with modest electronic bandwidths and without bulky optical assemblies.  &lt;br /&gt;
The use of continuous-wave illumination allows the transmitter to run at low peak power, simplifying driver circuitry and easing eye-safety constraints, while the reliance on differential phase makes the measurement intrinsically insensitive to slow amplitude drifts, laser-power fluctuations or partial signal obscuration.  &lt;br /&gt;
These attributes enable lightweight, low-cost sensor heads that are well suited to embedded or mobile platforms, and they motivate a bottom-up investigation of how modulation linearity, detector bandwidth and amplifier noise ultimately set the achievable accuracy ceiling.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These merits justify a bottom-up exploration that reveals how modulation linearity, detector bandwidth and amplifier noise ultimately limit accuracy.&lt;br /&gt;
&lt;br /&gt;
====Methodological Outline====&lt;br /&gt;
1.Modulation：Tektronix AFG1022 supplies a 10 MHz, 0–3.1 V&amp;lt;sub&amp;gt;pp&amp;lt;/sub&amp;gt; square wave to drive a 650 nm diode laser.  &lt;br /&gt;
2.Beam delivery：The beam is collimated (&#039;&#039;f&#039;&#039; = 20 mm lens), reflected from a mirror on a precision translation stage, and returned through a 650 nm ± 5 nm band-pass filter.  &lt;br /&gt;
3.Detection：A Hamamatsu S5971 photodiode converts the echo to an electrical signal; a &amp;gt;100 MHz, 40 dB pre-amplifier conditions the signal.  &lt;br /&gt;
4.Synchronous sampling：Oscilloscope channel 2 (echo) is compared with channel 1 (reference) to obtain the temporal delay &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt;; phase delay follows as &amp;lt;math&amp;gt;\Delta\phi = 2\pi f_{m}\Delta t&amp;lt;/math&amp;gt;.  &lt;br /&gt;
5.Calibration &amp;amp; scanning:Static points (0–80 cm, 10 cm steps) yield a delay-distance curve; continuous stage motion tests linearity and temporal resolution.&lt;br /&gt;
&lt;br /&gt;
==Equipment List==&lt;br /&gt;
# Oscilloscope &lt;br /&gt;
# Function generator that can output square wave signal (model used: Tektronix AFG1022)   &lt;br /&gt;
# DC power supply for photodetector (model used: Keithley 2231A-30-3)  &lt;br /&gt;
# Hamamatsu S5971 silicon photodetector&lt;br /&gt;
# 650 nm (red) LED&lt;br /&gt;
# Collimating lens to mount on the LED&lt;br /&gt;
# Mirror&lt;br /&gt;
# Translation stage &lt;br /&gt;
# Optical breadboard, postholders and screws  &lt;br /&gt;
# Ruler or measuring tape  &lt;br /&gt;
# BNC cables&lt;br /&gt;
&lt;br /&gt;
==Experimental Work==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Laser Modulation and System Initialisation====&lt;br /&gt;
Configure the function generator to output a 10 MHz square wave with an amplitude of 0–3.1 V (High level: 3.1 V, Low level: 1.0 V, output impedance: 50 Ω) to modulate the laser diode. Use the DC power supply to provide 5.0 V to the laser driver circuit, with a current limit of 30 mA. Verify the laser beam stability to avoid multimode noise or thermal drift that could distort the modulation waveform.&lt;br /&gt;
&lt;br /&gt;
====Optical Alignment====&lt;br /&gt;
Mount the 650 nm laser diode and use an aspheric lens to collimate and focus the beam onto the reflective target surface.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserwithlens1.jpeg|300px|alt=Laser with lens 1]]&lt;br /&gt;
| [[File:laserwithlens2.jpeg|300px|alt=Laser with lens 2]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 1.&#039;&#039;&#039; Front view of collimating lens for laser diode &lt;br /&gt;
| &#039;&#039;&#039;Figure 2.&#039;&#039;&#039; Side view of collimating lens for laser diode &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Detection and Amplification Circuit Configuration====&lt;br /&gt;
For the photodetector, use the Hamamatsu S5971 silicon photodiode to detect the reflected light signal. To amplify the signal linearly without saturation, connect the detector output to a matched high-speed preamplifier (bandwidth &amp;gt;100 MHz, gain ∼10³–10⁵). Connect the amplifier output to Channel 2 of a digital oscilloscope; connect the reference signal from the function generator to Channel 1 as the modulation phase reference.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:laserdiode.jpeg|300px|alt=Laser diode and detector]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 3.&#039;&#039;&#039; Hamamatsu S5971 silicon photodiode with amplifier &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Time Delay vs. Distance Mapping====&lt;br /&gt;
Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable. Turn on the LED and ensure that the beam is collimated by adjusting the distance of the lens to the LED. Incident the LED onto the photodetector and observe the function generated on the oscilloscope. Use the oscilloscope’s cursor measurement function to determine the relative time delay Δt between the modulation reference signal (Channel 1) and the return signal (Channel 2). Correlate the measured delay values with corresponding distances to establish the system’s delay–distance response curve. The following are the steps carried out to measure the time delay and the corresponding distance:&lt;br /&gt;
&lt;br /&gt;
# Fix the LED source and the photodetector on a linear translation stage, ensuring proper alignment for the beam return to the detector at all positions along the translation stage; the detector and the laser diode were mounted on a postholder so that the height of the detectors was adjustable.&lt;br /&gt;
# Use a meter ruler to mark the distance along the translation stage.&lt;br /&gt;
# Move the LED source to the marked positions (e.g. 30 cm from detector) and adjust the beam until it is centralised on the photodetector.&lt;br /&gt;
# Measure the time delay on the oscilloscope. Record the minimum, maximum and mean time delay—take three readings per distance and average them.&lt;br /&gt;
# Repeat steps 1–4 for different distances on the translation stage.&lt;br /&gt;
# Insert a mirror in the setup to act as the “object we are trying to measure the distance of”, so that the beam path is reflected off the mirror to the photodetector.&lt;br /&gt;
# Measure the total path length manually and repeat steps 1–4 for each mirror position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Laser_Diode_Experiment_setup_final.png|500px|thumb|centre|Schematic of experiment setup (without mirror). If the photodiode is in line with and can receive light from the LED, two waveforms (one from the source LED and one from the photodiode) will be shown on the oscilloscope.]]&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nomirror.jpeg|500px|alt=Setup without mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 4.&#039;&#039;&#039; Measurement experimental setup without mirror: LED and photodetector on translation stage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:withmirror.jpeg|700px|alt=Setup with mirror]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 5.&#039;&#039;&#039; Measurement experimental setup with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Figure 6.&#039;&#039;&#039; Delay between the function generator and the received signal by the photodetector on the oscilloscope. Green graph represents the function generated by the function generator and the yellow graph represents the function produced from received the laser beam by the detector.  &lt;br /&gt;
|-&lt;br /&gt;
| [[File:reference.png|700px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Distance_of_LED_to_Detector_vs_Measured_Delay_TIme_on_Oscilloscope_WITHOUT_Mirror.jpeg|500px]]&lt;br /&gt;
| [[File:delaytimewithmirror.jpeg|500px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 1.&#039;&#039;&#039; Measured delay time vs manually measured distance between LED and photodetector  &lt;br /&gt;
| &#039;&#039;&#039;Table 2.&#039;&#039;&#039; Measured delay time vs manually measured distance with mirror acting as the “object.”&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The measured delay time is in the order of 20-30 nanoseconds, which, when calculated, gives about 6-9m of distance. However, our incremental changes in the distance between the LED and the photodetector were in the order of 10-80cm. Hence, it was evident that this additional delay time was occurring due to all the cables attached to the oscilloscope and function generation and the distance between the laser and the detector. To account for this, we took the shortest distance as our &amp;quot;reference&amp;quot; distance. The difference between the successive measured distances and the shortest distance gives us the &amp;quot;absolute&amp;quot; distance. We can do this for the measured delay time as well. Take the delay time for the shortest manually measured distance and subtract it from the successive delay times to get an &amp;quot;absolute&amp;quot; delay time. Another method we thought of was simply plotting a linear plot of manually measured distance vs the delay time and obtaining the y-intercept, which would be the additional delay time due to the system and the cables. One could then subtract this additional delay time from the system from each measured delay time. However, when we measured the gradient of this linear plot on multiple days, the gradient was slightly different each time the measurements were carried out. Hence, we decided to adopt the former approach. &lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:calculatedwithoutmirror.jpeg|600px]]&lt;br /&gt;
| [[File:calculatedwithmirror.jpeg|700px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Table 3.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector. Separation distance of 10cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
| &#039;&#039;&#039;Table 4.&#039;&#039;&#039; Calculated Average distance from delay time vs Manually measured distance between LED and photodetector with the mirror acting as the &amp;quot;object&amp;quot;. Separation distance of 46.5cm was taken as the &amp;quot;reference&amp;quot; distance and the successive distances were subtracted from it to give &amp;quot;absolute&amp;quot; values. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Graphwithoutmirror.png|600px]]&lt;br /&gt;
| [[File:Graphwithmirror.png|600px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 7.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector without mirror.   &lt;br /&gt;
| &#039;&#039;&#039;Figure 8.&#039;&#039;&#039; Graph of calculated distance difference from delay time vs manually measured distance difference between LED and photodetector with a mirror acting as the &amp;quot;object&amp;quot; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Challenges and Conclusion==&lt;br /&gt;
# One of the challenges we faced was centring the beam onto the photodetector. Due to the lack of a focusing beam on the photodetector, the laser beam spot size was much larger than the surface area of the photodetector. What this led to was a constant fluctuation of the delay time on the oscilloscope as the brightest part of the beam was not always centred on the photodetector despite optimising stabilisation of the beam path. &lt;br /&gt;
# To have accurate distance measurements in the centimetre regime, the delay time we required was ~0.3ns for every 10cm. However, the fluctuation of the delay time on the oscilloscope was causing the 1st decimal place to fluctuate constantly.&lt;br /&gt;
{| style=&amp;quot;border:none; margin:auto; text-align:center;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spotondetector.jpeg|300px]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Figure 9.&#039;&#039;&#039; Beam spot on photodetector&lt;br /&gt;
|}&lt;br /&gt;
Though the concept of the project was fairly straightforward, the yielded results were not precise within the uncertainty. This points to experimental errors such as the lack of a focusing mirror which caused fluctuations in the delay.&lt;br /&gt;
&lt;br /&gt;
==Improvements and Future Work==&lt;br /&gt;
# Install a focusing lens for the photodetector  &lt;br /&gt;
# Use a bandpass filter at 650 nm laser to filter out other frequencies to get less fluctuations in the delay time reading on the oscilloscope.&lt;/div&gt;</summary>
		<author><name>Jonathan</name></author>
	</entry>
</feed>