An interactive echo sounder loads here. It needs JavaScript; the sections below explain everything it shows.
A transducer fitted in the bottom of the hull, usually forward, contains a piezoelectric element. A burst of electrical energy makes it vibrate and send a short pulse of ultrasound straight down. The echo from the sea bed comes back to the same transducer, which now works the other way: the returning sound squeezes it and makes a small voltage.
The depth it measures is from the transducer down. To show depth below the keel, or below the surface, the set is given the transducer's position as an offset.
The echo sounder shows the depth as a figure and as a trace, a profile of the sea bed drawn as the ship moves, and records it. A shallow water alarm can be set to warn the bridge.
A Doppler speed log uses the same kind of transducer. It sends sound forward and aft at an angle and measures the change in frequency of the echoes, the Doppler shift, to find the ship's speed. Another type, the electromagnetic log, measures the voltage induced in the water flowing past a sensor in the hull.