Wiring Connections Flashcards

1
Q

Arduino’s main chip

A

ATMEGA328

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

Has SRAM, flash RAM, and EEPROM

A

ATMEGA328

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

Meaning of SRAM

A

Static random access memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • holds all variables created
  • 2KB or 2,048 bytes
A

SRAM

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

Holds Arduino’s boot loader (500 bytes) & compiled sketch (32,256 bytes)

A

Flash RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • 32KB or 32,756 bytes
  • Initial variable is first stored in this memory and when the program starts running, this stored variable will be copied to the SRAM taking space in both SRAM and flash.
A

Flash RAM

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

EEPROM

A

Electronically programmable read-only memory

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

Stores long term information

A

EEPROM

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

VOLATILE MEMORY

A

SRAM (Static random access memory)

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

NON-VOLATILE MEMORY

A
  • Flash RAM
  • EEPROM (Electronically Programmable Read-Only Memory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • Group of variables of similar type accessed by a single variable
  • Declaring the same type of variable line per line can use up the limited memories of SRAM, so by using arrays you’re not only saving space but also organizing and tidying your sketch.
A

Arrays

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

Declare an array without initializing the pins that you’re going to use.

A

First line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • declare an array without defining a size.
  • The compiler automatically counts the elements and creates an array of the appropriate size.
A

Second line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • initialize and size your array.
  • Finally you can declare an array of type char, you just have to add one more element than your initialization required, It is to hold the required null character. (NOT SURE IF HERE OR NEXT LINE)
A

Third line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • Loop statement that cycles back and forth through a block of statements until the given condition becomes false.
  • Used for repetitive and continuous operations
A

for()

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

Often manipulated inside the for loops

A

Arrays

17
Q

Index for each array element

A

Loop counter

18
Q

allows your program to loop continuously, and infinitely, as long as a given condition inside the parenthesis is true.

A

while()

19
Q

Must change throughout the loop or else your loop will run endlessly.

A

Tested variable (under while())

20
Q

adding one of a series on a fixed scale variable
- Variable must be an integer or long

A

Increment

21
Q

subtracting one of a series on a fixed scale variable.
- Variable must be an integer or long

A

Decrement

22
Q

Increment x by one and returns the old value of x

A

x++

23
Q

Increment x by one and returns the new value of x

A

++x

24
Q

Decrement x by one and returns the old value of x

A

x- -

25
Q

Decrement x by one and returns the new value of x

A

Syntax: - -x