# WiFi Lab

WiFi Lab (also known as Radio Lab) is a Division C that was a trial event at the 2017 Ohio state tournament, the 2017 Boyceville Invitational, the 2018 Texas state tournament, the 2017 and 2018 Virginia state tournaments and the 2018 National Tournament. Competitors are asked to build an antenna that transmits a signal at 2.4 GHz and complete a written test about electromagnetic waves. Teams may bring a three ring binder and two computational calculators, and are required to provide graphs and tables showing the relationship between power and distance for different configurations of the antenna.

## Electromagnetic Spectrum

A diagram of the electromagnetic spectrum

The electromagnetic spectrum is the range of frequencies of electromagnetic radiation, including radio waves. The frequencies of these waves are measured in hertz (Hz). The frequency range is divided into separate bands, and the waves within these bands have different names. From the largest wavelength to the shortest wavelength these bands are radio waves, microwaves, infrared and visible light, ultraviolet, x-rays, and gamma rays.

X-rays and gamma rays are known as ionizing radiation and can be dangerous if an organism is exposed to them for too long. X-rays are defined as electronic transitions and gamma rays are generated from nuclear processes such as decay. Both gamma and X-rays have many uses in medicine and occasionally gamma rays are used in the sterilization of foods and seeds. Ultraviolet (UV) rays are not ionizing, but can still break chemical bonds causing sunburn and even potentially skin cancer. Some UV rays in the middle of the range also have a strong potential to cause mutation. Most damaging UV rays emitted by the sun are absorbed by the atmosphere, being blocked by the ozone layer or being absorbed by oxygen or nitrogen in the air.

Visible light occupies a very small portion of the electromagnetic spectrum. Different visible colors are the result of differing electromagnetic wavelengths, with red having the longest wavelength and purple the shortest. Electromagnetic radiation between 400–790 terahertz (THz) is visible to the human eye, but sometimes infrared and ultraviolet rays can be referred to as light. Infrared rays are useful in thermal imaging and occasionally in data transmission. Television remotes transmit signals using infrared light, which is why if the front of the remote is blocked the signal will not be received. Some infrared light can also be detected by photograph film.

Microwaves and radio waves have the lowest frequency of the electromagnetic spectrum, and are most well known for their use in microwave ovens. They can also be used in industrial heating and radar systems, as well as transmitting information. However, at that intensity microwaves do not have the same heating effects.

Radio waves are the focus of the event, as WiFi is transmitted over radio waves. Radio waves are transmitted and received by antennas and are widely used to transmit information. They are also used for GPS systems and locating distant objects with radars. To generate radio waves, a transmitter generates an AC current which is applied to the antenna and generates an electric and magnetic field.

WiFi is most commonly transmitted over the 2.4 GHz and 5.8 GHz bands which are divided into multiple channels. These channels can be shared by multiple networks, making WiFi much more vulnerable to attack than wired connections. Security protocols have been created so that WiFi access is secure as possible, including the WEP and WPA protocols.

## Antennas

An antenna is an instrument that can be used for transmitting and/or receiving electromagnetic waves (usually radio waves). Transmission antennas work by emitting energy as electromagnetic radiation. Reception antennas absorb energy and uses it to generate an electric current.

An antenna's radiation pattern is a plot that represents the strength of radiation output or input in any direction.

Image of a cardioid antenna radiation pattern.

Radiation patterns like the one above are usually graphed in polar (2-dimensional) or spherical (3-dimensional) coordinates. This allows one to define the strength of the emission in terms of the direction (angle). Polar coordinates are plotted in terms of radius $r$ (distance from the origin) and angle $\theta$ (theta, angle from the usual x-axis, known as the polar axis). Spherical coordinates are plotted in terms of radius $r$ (distance from the origin), azimuthal angle $\phi$ (phi, angle from the usual x-axis), and polar angle $\theta$ (theta, angle from the usual z-axis).

### Directivity

An antenna's directivity describes how concentrated the power output of the antenna is in any direction. An isotropic antenna, one that has a perfectly circular or spherical radiation pattern radiates equally in all directions (since the radius is the same in all directions), so it would have a directivity of 1. Although directivity is technically a function that outputs the directivity at any given angle, it is commonly defined as a constant in terms of the direction of greatest radiation (which is the definition used in this page).

Image of a cardioid antenna radiation pattern, where the arrow points to the angle of greatest radiation.

In the image above, the directivity could be given in terms of the angle $\theta = \frac{\pi}{2}$. However, you could also define a function $D\left(\theta\right)$ which outputs the directivity at an angle $\theta$.

Directivity is proportional to ratio of the maximum radiation intensity to the average radiation intensity. If these two values are not given, it is very difficult to calculate the directivity. If they are given, however, then the formula is simply $D = 4\pi \cdot \frac{\text{Maximum radiation intensity}}{\text{Average radiation intensity}}$. For this formula, the value of the directivity is unitless. However, directivity is often represented in terms of decibels, using the formula $D_{dB} = 10\log{\frac{D}{D_{\text{reference antenna}}}}$. Since decibels are a relative unit, you must choose a reference antenna to compare the directivity. This is often an isotropic antenna with a unitless directivity of 1, which gives the final value of the directivity in terms of a special unit called decibels isotropic ($dBi$).

### Gain

The gain of an antenna refers to how much power is emitted in the direction of greatest radiation. The difference between gain and directivity is that gain is calculated by multiplying the directivity of an antenna by its efficiency, meaning it takes into account power loss.

The formula for gain is $G = \epsilon D$, where $\epsilon$ is the efficiency. This, in turn, is calculated as $\epsilon = \frac{P_{out}}{P_{in}}$, where $P_{out}$ and $P_{in}$ are the total power output and power input of the antenna, respectively. Efficiency essentially measures how much of the input power is actually emitted by an antenna. For an antenna that outputs all of the power put into it, the efficiency would be equal to 1 and the gain would be equal to the directivity. Such an antenna is often referred to as an isotropic antenna.

If the value of directivity used in the formula is unitless, then the gain is in decibels ($dB$). If the directivity is in terms of decibels isotropic ($dBi$), then the gain is also in decibels isotropic. Gain can also be given in comparison to a perfect dipole antenna with no loss, which has a gain of $2.15 \text{dBi}$, a unit called decibels dipole ($dBd$). To convert to and from $dBd$, use the formula $G_{dBd} = G_{dBi} - 2.15$.

## Resources

 Division B: Density Lab · Solar Power | Division C: Code Busters · WiFi Lab