# Why do OOK transmissions have bandwidth?

With on-off keying, you have a single carrier wave at a constant frequency transmitting its presence or absence. Now I understand that the crystal will not be perfect so you will have some minimal shift over time in the carrier frequency, but assuming the crystal was perfect you would have zero bandwidth because the frequency doesn't change. But datasheets say that the bandwidth is linked to the data rate somehow, what is that equation and what is using up all that extra spectrum if you don't change the frequency?

• THe on-off data rate has bandwidth, BW. When the carrier is modulated with this the signal bandwidth BW is transferred by this product to add +/- same BW on the carrier, – Tony Stewart Sunnyskyguy EE75 May 15 at 3:32
• While a transmitted signal carrying any information has bandwidth, the larger bandwidth is that of the receiver - which must accommodate both the data bandwidth and the relative frequency error of the transmitter. Common cheap regenerative receivers also have a demodulation bandwidth determined by the quenching rate. – Chris Stratton May 15 at 3:42
• If you attempt to transmit 10Hz 50% duty cycle OOK thru a 1Hz bandwidth, the carrier amplitude will decay only a moderate amount during the OFF time, and the carrier amplitude will increase only a moderate amount during the ON time. You'll need about 5Hz bandwidth to see a large amplitude variation between ON and OFF, because the channel (the filter) has the irksome property of storing energy, and that stored energy causes ISI between a ON and the next OFF, and from that OFF to the next ON. ISI is inter-symbol-interference. – analogsystemsrf May 15 at 3:48
• – The Photon May 15 at 4:55
• @pipe, I didn't answer the question, really. – mkeith May 15 at 16:11

The bandwidth is not due to carrier frequency drift. As a first approximation, the bandwidth is twice the frequency that modulates the carrier: This may not be intuitive, but consider that the amplitude modulation (including OOK) is essentially a multiplication of carrier and modulation signals, and basic trigonometry tells us that

$$2 sinA sinB = cos(A - B) - cos(A + B)$$

Only an ideal sine wave with constant amplitude and single frequency that runs for infinitely long in time has extremely narrow bandwidth of a single peak. Having any changes to the ideal sine wave such as changing the amplitude means that since it cannot be represented as a single sine wave any more but a sum of many sine waves of different amplitudes and different frequencies, in frequency domain it means it has a range of frequencies. The faster the changes, the wider the bandwidth.

On-Off Keying (OOK) is equivalent to AM modulation of the carrier with the data bit-stream with a 100 % modulation index.

As a result the entire spectrum of the bit stream is up-converted to the carrier frequency of the OOK modulator. Additionally, due to AM modulation an image of the data-stream exists below the carrier frequency in addition to the translated spectrum above the carrier.

As sstobbe has pointed out OOK is simply digital AM transmission.

Which mathematically speaking means the Signal is multiplied by the Carrier Frequency to give the Modulated Wave (in the Time Domain).

Convolution theorem states that two signals multiplied together in the time domain is the same as the two signals convolved together in the Frequency Domain.

You can model the Digital signal as a Rectangle function.

Long story short that means that you end up with a shifted form of the below frequency graph, with the center around the carrier frequency. 