It was invented around the 1920s, and the inventor, Léon Theremin — he also was a musician besides an inventor — he came up with the idea for making the theremin, I think, when he was working on some shortwave radios.
El inventor es Léon Thérémin (también es músico además de inventor).