Thesis report
The thesis report can be found
here
Errata
The analog signal output from the sonar should have a 1 nF capacitor to protect from static discharges according to the manufacturer Talon. When I received the sonar, I used a 1 µF capacitor by mistake, that is 1000 times to big.
Fig 1.
Fig 2.
Fig 1: This is basically what the signal looks like. Each peak corresponds to an echo. (the signal is never below 0V).
Fig 2: This is the signal I sampled in the report. (
Figure 5.6).
The big capacitor basically integrates the signal, and the peaks turns to left edges. (The vertical edge "A" should have been one peak and "B" another).
How I explained it in the report
The sonar rings like a bell, and I thought that when the listening was turned on (at "A" in Fig 2) it was still outputting sound, and when the first echo comes back it was superimposed on the still ringing sonar (at "B" in Fig 2). (See also
Figure 3.3 for how I explained the looks of the signal.)
So I differentiated the signal digitally to find the edges (
Figure 3.4). And the signal became quite usable anyway.
I didn't figure this mistake out until 2 years after the report was handed in.