Early shells were detonated by a simple timer. Slight changes to the time meant explosions at different heights. Flak was a random shot in the dark, not very efficient.
During WW2 the British developed a rugged vacuum tube that could be used to make tiny radio transmitter/receiver. When close to metal aircraft, the radio signal would be reflected back to the receiver, triggering the explosion. This was the first proximity fuze.
Latest Answers