# Signal Modulation (Section XVI):



We use some carrier frequency to modulate the signal - more signals can be sent in the same medium.

### Amplitude modulation (AM):

Is easy to imagine, but is kinda bad in any other way (noise, not even that easy to modulate - oh it has slightly smaller bandwidth).

### Frequency modulation (FM):

$\ddot\smile$ it is harder to interface with.

$\ddot\frown$ it needs more bandwidth.

The modulation is produced by voltage controlled oscillator (VCO) (than it is probably amplified and sent to the antenna or whatever).

![alt text](https://zapotocf.vercel.app/school/tcd/electronics-a-info-tech/image-25.png)

- we can see that the bandwidth is 2 times higher than before, because we need to use also the negative frequencies.

For frequency modulation, the bandwidth is also increased by the modulation index ($\beta$) (typically $\beta$ is between 0.5 and 5).

$B_{FM} = 2(\beta + 1) B_{\text{base}}$


![alt text](https://zapotocf.vercel.app/school/tcd/electronics-a-info-tech/image-26.png)

- we also need to demodulate the signal. - We didn't said much.

### Phase modulation (PM):

in many ways it is similar to frequency modulation.

## Antennas:

The most basic antenna:

![alt text](https://zapotocf.vercel.app/school/tcd/electronics-a-info-tech/image-27.png)

($\lambda$ is the wavelength - distance form 1 peak to the next one of the signal)

but:
- $f = 100KHz$ - $\frac{\lambda}{2} = \frac{3 \cdot 10^8}{2 \cdot 10^5} = 1500m$ - not practical
- $f = 100MHz$ - $\frac{\lambda}{2} = \frac{3 \cdot 10^8}{2 \cdot 10^8} = 1.5m$
- $f = 1GHz$ - $\frac{\lambda}{2} = \frac{3 \cdot 10^8}{2 \cdot 10^9} = 0.15m$


*maybe the numbers are not correct, but this is the point*

## Discrete Fourier Transform (DFT) (Section XVII):



- first we have to convert from analog to digital - we need to sample it.

  - we usually pass the signal to a low pass filter, so we don't have infinite sampling frequency.

It looks like:

$$X(j\omega) = \int_{-\infty}^{\infty} x(t) e^{-j\omega t} dt$$

The DFT is the FT adapted for discrete (digital) signals (using a finite sum instead of an integral).

$$X[k] = \sum_{n=0}^{N-1} x[n] e^{-j\frac{2\pi}{N}kn}$$

It wont be in the exam.

-> we need to sample in greater than the Nyquist rate, otherwise we will get aliasing - the signal will interfere with itself:

![alt text](https://zapotocf.vercel.app/school/tcd/electronics-a-info-tech/image-41.png)

## Digital vs Analog processing:

- If we want to process analog signal, we need to create a new device. whereas for digital ones, we just write a new peace of software and upload it to the device - that is faster.