More Notes Flashcards

1
Q

What is the definition of ‘input’ in electronics?

A

An input is any signal or data sent to a component or system to control its behavior.

In the context of LEDs on a breakout board, it refers to the signal sent from a microcontroller or power source to the LED.

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

What does ‘output’ mean in the context of electronics?

A

An output is the response or action taken by a component after receiving an input signal.

In the case of LEDs, the LED itself visually indicates the result of the input signal.

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

What are the two states of a digital signal?

A

ON and OFF.

In LED control, this means either fully on (at full brightness) or completely off.

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

What is an analogue signal?

A

An analogue signal has a range of values, allowing for variable control of a component’s behavior, such as an LED’s brightness.

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

What is the difference between digital pins and analogue pins?

A

Digital pins can only read or write binary values (high or low), while analogue pins can read a range of values.

Digital pins are used for on/off signals, whereas analogue pins are used to measure variable voltages.

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

What does Pulse Width Modulation (PWM) do?

A

PWM simulates an analogue signal by rapidly switching a digital pin between high and low states at different intervals.

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

What is an if statement in programming?

A

An if statement is a control structure that allows a program to make decisions and execute code based on whether a condition is true or false.

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

What are the components of a complete program utilizing an if statement?

A
  • Input: Takes input from the user
  • Logic (Process): Uses if, elif, and else conditions
  • Output: Provides a response based on conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When does the ‘else’ block in an if statement execute?

A

The ‘else’ block runs when the conditions in the if and elif statements are not met.

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

What voltage levels do digital pins output?

A
  • High (1): typically 5V or 3.3V
  • Low (0): 0V
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Fill in the blank: A digital signal typically sends a _______ signal.

A

[binary]

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

True or False: Analogue pins can only read binary values.

A

False

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

What is the role of analogue-to-digital converters (ADCs) in microcontrollers?

A

ADCs interpret analogue signals as digital values, allowing for the measurement of continuous voltages.

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

What happens when a digital pin is set to high?

A

It outputs a fixed voltage, typically 5V or 3.3V.

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

What does the LED’s brightness or color indicate?

A

It can represent different types of outputs based on the input signals it receives.

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

What is the significance of having a complete program with an if statement?

A

It ensures that the program can make a decision and respond correctly to any input provided by the user.