---
title: What electrical engineers do
heading: A minute in each corner of the field
eyebrow: 0.1 · Lesson 1 · What electrical engineers do
xp: 40
---

::: hook
The outlet behind your desk, the radio in a car, the chip in your phone, the motor in a washing machine and the speaker in your earbuds were all designed by electrical engineers. They look like five different jobs. Underneath, each one moves energy or information by pushing electric charge around, and the same handful of ideas runs through all of them. This lesson spends a minute in each corner, starting with the outlet.

::: play
- The trace is the voltage at a wall outlet over a tenth of a second.
- Switch f between 50 and 60 Hz. Most of the world uses one or the other.
- Change the RMS voltage from the US's 120 V to Europe's 230 V and watch the peak.
- Count how many times the trace crosses zero.
:::
:::

```sim plot
x: t = 0..100m s
y: v = -350..350 V
slider: f = 50..60 = 60 Hz step 10
slider: Vrms = 100..240 = 120 V step 10
plot: sqrt(2)*Vrms*sin(2*pi*f*t) | label: v(t)
readout: peak = sqrt(2)*Vrms V
readout: period = 1000/f ms
```

::: predict
## At 60 Hz, how many times each second does the outlet's voltage pass through zero?

- [ ] 30 times
- [ ] 60 times
- [x] 120 times
- [ ] 170 times

::: reveal
Each cycle crosses zero twice: once on the way down and once on the way up. Sixty cycles a second give 120 crossings. A lamp on that supply gets no power at all 120 times a second, which is why some cheap LED lights flicker on camera.
:::
:::

::: nameit
## Electrical engineering moves energy and information with charge

The outlet's voltage is a **sinusoid**, described by its frequency $f$ (cycles per second, in hertz) and its size. One cycle takes the **period**

$$
T = \frac{1}{f}
$$

so 60 Hz gives $T = 16.7$ ms. Outlets are labeled with an **RMS** voltage, a kind of average that sets how much power the supply delivers. For a sinusoid the peak is larger by $\sqrt{2}$:

$$
V_{\text{peak}} = \sqrt{2}\, V_{\text{RMS}}
$$

A 120 V outlet swings to about 170 V and back.

That outlet is one corner of a big field. The branches below are how engineers usually divide it, with the Ohmwork courses that teach each one.

| Branch | What it works on | Where in Ohmwork |
|---|---|---|
| Power and energy | generating electricity, moving it over the grid, motors and generators | D1, S10, S12 |
| Power electronics | converting voltages and currents efficiently: chargers, inverters, motor drives | D2, S11 |
| Electronics | amplifiers, sensors, the analog circuits around every chip | C5, C6, S2 |
| Signals and communications | radio, Wi-Fi, audio, filtering, signal processing | C9, D4, D5, S7, S8 |
| Computers and digital systems | logic, processors, embedded systems | C7, C8, C12, S3, S4 |
| Controls | feedback that keeps a drone level or a motor at speed | D3, S9 |
| Fields, RF and photonics | antennas, transmission lines, microwave circuits, light | C10, D8, D9, S5, S6, S13 |

The rest of this lesson visits four more corners. You don't need to understand them yet: just play.
:::

### A radio signal

A radio station sends its sound by varying a fast carrier wave. Here the carrier is a 2 kHz tone (real AM stations sit near 1 MHz), and its loudness follows a slower message tone. The lower panel shows which frequencies the signal contains. Change the message's frequency and watch two **sidebands** move around the carrier.

```sim plot
view: spectrum
x: t = 0..20m s
y: v = -2..2 V
samples: 1024
freq: f = 0..4k Hz
slider: fm = 100..800 = 300 Hz step 50
slider: m = 0..1 = 0.5 step 0.1
plot: (1 + m*cos(2*pi*fm*t))*cos(2*pi*2000*t) | label: v(t)
```

### A chip

A phone's processor holds billions of tiny switches wired into gates like this one, a NAND gate. Click the inputs to flip them. The output is 0 only when both inputs are 1. Any digital circuit, a whole processor included, can be built from NAND gates alone.

```sim logic
module nand_gate(input A, input B, output Y);
  assign Y = ~(A & B);
endmodule
table: on
```

### A motor winding

A motor's coil is a long wire wound into a loop, which makes it an **inductor**. When 12 V is switched across it, the current doesn't jump: it rises smoothly toward its final value. Drive circuits for motors are built around that slow rise. Change the winding's resistance and watch both the final current and how fast it gets there.

```sim circuit
V1 in 0 step 12   @ 0,0 down
R1 in a 2         @ 0,0 right
L1 a 0 10m        @ 2,0 down
slider: R1 1..10 log
scope: i(L1)
time: 0..30m s
```

### A speaker

Sound is air pressure going up and down. A speaker turns a voltage into that pressure. Press Listen, then move the frequency: every doubling sounds like the same note an octave higher.

```sim plot
x: t = 0..10m s
y: p = -1.2..1.2
slider: f = 110..880 = 440 Hz log
plot: sin(2*pi*f*t) | label: pressure
sound: sin(2*pi*f*t)
```

::: example
## An outlet in Germany supplies 230 V RMS at 50 Hz. What are its peak voltage and its period, and how often does it cross zero?

::: solution
1. **Peak voltage.** For a sine wave the peak is $\sqrt{2}$ times the RMS value:
   $$\begin{aligned} V_p &= \sqrt{2} \times 230\ \text{V} \\ &= 325\ \text{V} \end{aligned}$$
   so the voltage swings from +325 V to −325 V.
2. **Period.** The period is one over the frequency:
   $$\begin{aligned} T &= \frac{1}{f} \\ &= \frac{1}{50\ \text{Hz}} \\ &= 0.020\ \text{s} \\ &= 20\ \text{ms} \end{aligned}$$
3. **Zero crossings.** A sine crosses zero twice in every cycle, so it does so $2 \times 50 = 100$ times a second.

**Answer:** 325 V at the peak, a period of 20 ms, and 100 zero crossings a second.
:::
:::

::: example
## An FM station broadcasts at 98.1 MHz. How long is one wavelength of its signal, and how long is a quarter-wave antenna for it?

::: solution
1. **Wavelength.** Radio waves travel at the speed of light, $c = 3.00 \times 10^8$ m/s, and a wave's length is the distance it covers in one period:
   $$\begin{aligned} \lambda &= \frac{c}{f} \\ &= \frac{3.00 \times 10^8\ \text{m/s}}{98.1 \times 10^6\ \text{Hz}} \\ &= 3.06\ \text{m} \end{aligned}$$
2. **Quarter-wave antenna.** A common antenna is a quarter of that:
   $$\begin{aligned} \frac{\lambda}{4} &= \frac{3.06\ \text{m}}{4} \\ &= 0.76\ \text{m} \end{aligned}$$
   about the length of a car's old whip antenna.

**Answer:** one wavelength is 3.06 m, and a quarter-wave antenna is 0.76 m long.
:::
:::

::: check
given: f = 50 | 60 | 400 Hz
answer: 1000/f
unit: ms
tolerance: 1%

## Aircraft use 400 Hz power and homes use 50 or 60 Hz. How long is one cycle at {f}, in milliseconds?

::: right
Right. $T = 1/f$ = {answer}.
:::

::: misses
- [f] That's the frequency itself. The period is one over the frequency.
- [1/f] That's the period in seconds. Multiply by 1000 for milliseconds.
- [any] Not yet. The period is $T = 1/f$.
:::
:::

::: check
given: V = 100 | 110 | 120 | 220 | 230 | 240 V
answer: V*sqrt(2)
unit: V
tolerance: 1%

## An outlet is labeled {V} RMS. What is its peak voltage?

::: right
Right. The peak is $\sqrt{2}$ times the RMS value: {answer}.
:::

::: misses
- [V] That's the RMS value. A sinusoid's peak is larger by $\sqrt{2}$.
- [V/sqrt(2)] That divides by $\sqrt{2}$. The peak is the bigger of the two, so multiply.
- [2*V] That's the swing from the lowest point to the highest. The peak is measured from zero.
- [any] Not yet. Multiply the RMS value by $\sqrt{2}$, about 1.414.
:::
:::

::: check
given: f = 88.5M | 91.3M | 98.1M | 101.7M | 104.3M | 107.9M Hz
answer: 3e8/f
unit: m
tolerance: 1%

## An FM station broadcasts at {f}. How long is one wavelength of its signal?

::: right
Right. $\lambda = c/f$ = {answer}.
:::

::: misses
- [3e8/f/4] That's a quarter wavelength, the antenna's length. The question asks for the whole wavelength.
- [any] Not yet. Divide the speed of light, $3.00 \times 10^8$ m/s, by the frequency in hertz.
:::
:::

::: check
kind: choice

## A team designs the circuit that turns an electric car's 400 V battery into the three-phase currents that spin its motor. Which branch is that mostly?

- [ ] Signals and communications
- [x] Power electronics
- [ ] Computers and digital systems
- [ ] Fields, RF and photonics

::: right
Right. Converting one form of electrical power into another efficiently is what power electronics is for.
:::

::: misses
- [1] There's a controller in it, but the hard part is handling tens of kilowatts without wasting them as heat.
- [3] The car's computer decides when to switch, but the circuit that switches the power is power electronics.
- [4] There's no radio or light involved. The job is converting power.
:::
:::

::: check
kind: choice

## Noise-canceling headphones measure the sound around you and play its opposite, so the two cancel. Which branch works out what to play?

- [ ] Power and energy
- [ ] Controls
- [x] Signals and communications
- [ ] Electromagnetics

::: right
Right. Measuring a sound and computing a matching signal in real time is signal processing.
:::

::: misses
- [1] The headphones use very little power. The interesting part is the signal.
- [2] There is feedback in it, but the core job is processing the microphone's signal into the right output.
- [4] The sound is pressure in the air, picked up as a voltage. No fields to solve here.
:::
:::

::: check
kind: choice

## In the NAND gate above, A is 1 and B is 1. What is the output Y?

- [x] 0
- [ ] 1

::: right
Right. A NAND gate outputs 0 only when both inputs are 1. Try it in the gate above.
:::

::: misses
- [2] That's what an AND gate would give. NAND is "not AND", so the answer flips.
:::
:::

::: explain
## Why does the outlet's voltage cross zero twice in every cycle?

::: model
A sine wave spends half its cycle positive and half negative. To get from positive to negative it has to pass through zero once, and to get back to positive it passes through zero again. So each cycle holds two crossings, and a 60 Hz supply crosses zero 120 times a second.
:::
:::

::: practice

::: check
given: f = 25 | 50 | 60 | 100 | 400 | 1000 Hz
answer: 1000/f
unit: ms
tolerance: 1%

## How long is one cycle of a {f} sine wave, in milliseconds?

::: misses
- [1/f] That's in seconds. Multiply by 1000 for milliseconds.
- [any] The period is $T = 1/f$.
:::
:::

::: check
given: V = 12 | 24 | 100 | 120 | 230 | 240 V
answer: V*sqrt(2)
unit: V
tolerance: 1%

## A sinusoidal voltage has an RMS value of {V}. What is its peak?

::: misses
- [V/sqrt(2)] The peak is the larger one, so multiply by $\sqrt{2}$.
- [any] Multiply by $\sqrt{2}$.
:::
:::

::: check
given: f = 88.5M | 98.1M | 107.9M | 433M | 915M | 2.4G Hz
answer: 3e8/f
unit: m
tolerance: 1%

## How long is one wavelength of a {f} radio signal?

::: misses
- [any] $\lambda = c/f$, with $c = 3.00 \times 10^8$ m/s.
:::
:::
:::
