ESP - Week 1 Flashcards

1
Q

What is an embedded system

A

A combination of hardware and software which together form a larger machine

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

Sensors

A
Temperature
Humidity
Touch
Mic
Camera
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Actuators

A
Lights
Motors
Wheels
Screens
Sirens
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Microcontroller Advantages

A

Small
Cheap
Can make lots
Standalone

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

Microcontroller Disadvantages

A

Cheap
Limited Memory
Limited Power
Limited Storage

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

3 Types of Arduino Memory

A

SRAM - volatile, stores variables, read-write
Flash - non-volatile, stores code, read-only when running
EEPROM - non-volatile, stores data, read-write

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

What is the significance of non-volatile memory

A

Non-volatile memory stays when the power is off

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

P to C colons and indentation

A

Python uses colons to open a function, C uses {}

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

P to C semicolons

A

C uses ; at the end of lines

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

Declarations in C

A

Every variable must be declared before use

0x - hex, B - binary

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

Size of ints

A
byte - 8 bit
int - 16 bit
long - 32 bit
float - 32 bit
double - 64 bit float
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Default bool type in C

A

No bool type, integers are used instead

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

Comments in C

A
// - single line
/* */ - multi line
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Switch statement

A

switch (variable) { - starts switch loop

case 1: - if 1 = variable case 1 is used

break; - breaks the loop

default: - if no case is used
break;
}

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