Wk4 - Acquiring Data 2 & Generating Signals Flashcards

1
Q

What is the purpose of an analog-to-digital (A/D) converter?

A

It converts a continuous voltage signal into a digital numerical equivalent. More bits = higher resolution, but higher cost.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WWhat are two-state signals? Give some real-world examples.

A

Signals that have only two possible states, typically represented as voltage present or voltage absent. They vary like an analog signal but not continuously.
Examples include a door open/close switch, high/low water level, person present/absent, and alarm on/off.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many bits does an A/D converter need to accurately digitize a two-state signal?

A

One bit. Two-state signals can be represented by 0 or 1, corresponding to the two possible states.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Does acquiring 2-state signals require an A/D converter?

A

No, the IoT device can sample them directly. These signals are sometimes called digital signals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Pulse Width Modulation (PWM)?

A

A technique used to vary the average output of a digital signal by changing the ratio of on to off time, called the duty cycle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does PWM allow for perceived analog output?

A

Even though a digital signal is ON or OFF, by regulating the width of the ON pulse, we can vary the average output. The more time the signal is ON relative to OFF, the higher the average output.
If a light is flashed rapidly enough (i.e. > 100 times/second), humans will not perceive that the signal is simply on or off – humans will perceive only the average level of the signal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why does PWM work for generating perceived analog signals?

A

Humans can’t perceive rapid on/off switching above 100 Hz, so it appears as a continuous signal, like dimming a light.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some applications of PWM?

A

Varying light brightness, controlling motor speed, regulating microwave oven power output, and generating analog signals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What function is used to control the state of a digital output in software?

A

Use the digitalWrite(pin, value) function, where value is either HIGH (1) or LOW (0).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can the D1 Mini generate a true analog signal?

A

No, it requires a separate D/A converter, but PWM can be used to simulate analog output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can we generate a continuously variable analog signal?

A

We use a digital-to-analog (D/A) converter to generate an analog signal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the function used to read digital inputs in software? What does it return?

A

digitalRead(). It returns a 1 or 0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly