As an electrical and software engineer, I've designed many, many, devices like this. As a matter if fact, I designed/built an interface to talk to X10 modules to run on a TRS-80 cassette port in the late 80s (The X10 data is transmitted on the 120VAC line using 4 pulses (4 waves of 100 khz) bits...