Programming Arduino Flashcards

1
Q

Gives you access to the tools needed for creating and saving Arduino sketches.

A

menu bar

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

Compiles your code and checks for errors in spelling or syntax.

A

verify button

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

Sends the code to the microcontroller – (which in this case is an Arduino Uno. )

A

upload button

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

Opens up a new window containing a blank sketch.

A

new sketch

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

Allows the user to open a saved sketch or any of the stored samples.

A

open existing sketch

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

This saves the sketch currently in the workspace.

A

save sketch

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

When the board is connected, this will display the serial data from the Arduino.

A

serial monitor

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

When the sketch is saved, the name of the sketch is displayed here.

A

sketch name

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

This is the workspace where the sketch code is written.

A

code area

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

This area displays the status and errors during saving, code compiling, etc.

A

message area

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

Shows additional information like the details of error messages and size of the compiled program.

A

text console

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

Indicates what board is being used and which serial port it is connected to.

A

board and serial port

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

Coding using the Arduino UNO usually has four basic divisions or sections.
namely the Introductory Comments, Declaration Section, Setup Section and Loop Section.

A

arduino code structure

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

Comments are lines in the program that are used to inform yourself or others about the way the program works.

A

introductory comments

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

Before variables are used, they have to be declared first. Declaring a variable means defining its type, and optionally, setting an initial value (initializing the variable).

A

declaration section

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

The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc.

A

setup section

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

Is a sequence of instructions that is repeated endlessly

A

loop section

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

is an attribute or property of data which tells the hardware and the programmer about what kind of data it is. This is done so to add constraints on the data being manipulated such as setting the values that can be stored in it and the operations that can be manipulated.

A

data type

19
Q

is used to store data, it has name, a value and a type

for example this statement called declaration
int pin = 13;

A

variable

20
Q

data types can store integer values from -32,768 up to 32,767 and have the syntax int before the variable name.

A

integer

21
Q

differs from integer types in the range of values available and that it includes decimal values. It can accommodate values from -3.4028235 x 1038 to 3.4028235 x 1038, with 6-7 decimal digits of precision. this data types have the syntax float before the variable name

A

float

22
Q

this data types that has a simple logical true/false which is a 1 or a 0. The syntax bool before the variable name

A

boolean

23
Q

this data types can store integer values and a unsigned number from 0 to 255 because it has only 8 bits size. The syntax byte before the variable name.

A

byte

24
Q

this data types can store a single characters and a signed number from -128 to 127. The syntax char before the variable name.

A

char

25
Q

this data types are used when texts are needed to be stored and manipulated. Data that can be used in string are alphanumeric and symbols. String data types have the syntax String before the variable name.

A

string

26
Q

is a form of data type of type integer. Integer data types have numerical values ranging from -32,768 to 32,767.

A

int

27
Q

is a variable name used to store data. In this case, it is a variable of type Integer and has a value of 13.

A

ledpin

28
Q

the value stored to ledPin. For this code, it is used to call the address of the LED that will be controlled in this code

A

13

29
Q

is a single line comment. A comment does not affect how the code will work but is present to help programmers document their codes. In this example, it is used to indicate that the LED is connected to digital pin 13.

A

LED connected to digital pin 13

30
Q

is one of the two mandatory/default functions used in Arduino. A function is a cluster of code that accomplish a specific task. This function is used to initialize Arduino pins, start using libraries, or do things that are needed to run only once.

A

void setup ()

31
Q

It indicates that the function does not return a value.

A

void

32
Q

the name of the function.

A

setup

33
Q

used to indicates what are the variables used in the function as an input. For the two mandatory/default functions of Arduino, no input variable is needed. Thus, the parentheses are left as is.

A

( )

34
Q

used to indicate the start of the codes inside the (setup/loop) function.

A

{

35
Q

is a function that sets the digital pin whether it will be an input(receives data), or an output(sends a signal).

A

pinMode

36
Q

calls variable ledPin.

A

ledPin

37
Q

configures ledPin as an output.

A

output

38
Q

End of the line

A

;

39
Q

used to indicate the end of the codes inside the (setup/loop)function.

A

}

40
Q

is another mandatory/default function that, as its name suggests, loops indefinitely. This allows your program to change and respond, depending on what is placed inside the function.

A

void loop ()

41
Q

is a function that sends a value to the digital pin assigned.

A

digitalWrite

42
Q

is the variable name assigned to the digital pin

A

ledpin

43
Q

is the value to be sent to the digital pin. There are two values that can be sent to a digital pin: HIGH (LED turns on), or LOW (LED turns off).

A

HIGH

44
Q

halts the program for a defined period before a next line of code is executed. In this case, the line “digitalWrite(ledPin, HIGH)” will run for 1000 milliseconds, or 1 second.

A

delay(1000)