Arduino Programming Flashcards

1
Q

Which product was created in 2005?

A

Arduino aka “Strong Friend”

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

Who created the Arduino?

A

Massimo Banzi and David Cuartielles

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

True or false: The hardware for the Arduino are open source?

A

True

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

Which languages we accessible and transferable for Arduino?

A

C++, Java, Processing

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

Who most often used the Arduino originally?

A

Hobbyists, students, and those interested in gadgetry

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

What kind of processor does an Arduino have?

A

ATMEL

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

What does Ohm’s law describe?

A

The relationship between voltage, current, and resistance of a circuit

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

What are the iterations of Ohm’s law?

A

V=IR, I=V/R, R=V/I

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

What is voltage?

A

The amount of potential energy in a circuit

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

What is current?

A

The rate of charge flow in a circuit

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

What is resistance?

A

The opposition to charge flow

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

What are the units for voltage?

A

Volts (V)

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

What are the units for current?

A

Amperes (A)

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

What are the units for resistance?

A

Ohms

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

List the colors on a resistor representing from 0 to 9 in that order

A

black, brown, red, orange, yellow, green, blue, purple, gray, white

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

What is the color with the highest power of 10 for the third strip of a resistor?

A

Blue (1,000,000)

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

Fill in the blanks: An electrical circuit must have __________ from _________ to ________.

A

a continuous loop, Power (Vdd/Vcc) to Ground (GND)

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

What is important to make portions of a circuit connected?

A

continuity

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

What is one of the most useful tool in an engineer’s toolkit?

A

solderless breadboard

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

How do you comment in arduino programming?

A

with a // or a /* */

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

Do comments affect code?

A

no

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

What is the assignment operator?

A

=

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

What is used to check values for equality?

A

==

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

What is used for the ‘and’ function?

A

&&

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

What is used for the ‘or’ function?

A

||

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

What are basic variable types for Arduino programming?

A

boolean, integer, character, string

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

What are the 2 required functions for an Arduino program?

A

void setup() and void loop()

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

When is the setup() function executed?

A

only once everytime the Arduino is connected to power

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

When in the loop() function executed?

A

after the setup function executes, it executes repeatedly until the Arduino is disconnected from power

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

What is an Arduino file called?

A

a sketch

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

What is usually done in the setup() function?

A

input and output setup using the pinMode() function

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

Does the header for setup() ever change?

A

no

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

What is the definition of a microcontroller’s ports and pins?

A

the communication channels through which information flows into or out of the microcontroller

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

What are examples of what would be connected to an input pin?

A

thermistor, light sensor, push button

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

What are examples of what would be connected to an output pin?

A

LED, piezo sensor (speaker), servo/DC motor

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

Which direction do pins default to upon power-up or reset?

A

input

37
Q

When can you set or change the directionality of a pin?

A

at any time in the program

38
Q

Microcontrollers are what type of devices?

A

digital/discrete

39
Q

What is an analog signal?

A

anything that can be a full range of values

40
Q

How is analog signal mimicked on an Arduino?

A

pulse width modulation (PWM)

41
Q

What is PWM?

A

varying the duty cycle of a signal to mimic an average analog voltage

42
Q

How do you set the directionality of an Arduino pin?

A

pinMode(pin_number, direction);

43
Q

Is there a way to make multiple different pins the same direction at the same time?

A

yes

44
Q

For digital I/O pins, what are the voltages they can be?

A

either HIGH or LOW (logical 1 or 0, realistically 5V or 0V or 3.3V or 0V depending on the power option

45
Q

What function is used for ‘turning on or off’ an output pin?

A

digitalWrite(pin, state);

46
Q

What function is used for reading from an input pin?

A

digitalRead(pin);

47
Q

Which register handles the data directions for pins in PORTx?

A

DDRx: data direction register x

48
Q

How many bits wide are the registers on the Atmega328?

A

8-bits wide

49
Q

If a bit is zero, what direction is the pin corresponding to that bit?

A

input

50
Q

If a bit is one, what direction is the pin corresponding to that bit?

A

output

51
Q

How do you change the data direction for multiple pins at once in the same PORT?

A

figure out which bits are 0 and 1 for how you want to set all the pins in PORTx, then store that number (binary or equivalent) into DDRx

52
Q

What are the important registers for I/O?

A

DDRx, PORTx, PINx

53
Q

What are 8 binary digits called?

A

byte

54
Q

What are 4 binary digits called?

A

nibble

55
Q

How do you turn on a pull-up resistor?

A

digitalWrite(pin, HIGH); in which the ‘pin’ has already been declared an input pin

56
Q

Is an LED directional or non-directional?

A

directional

57
Q

How can you mimic the GND pin on an Arduino?

A

using an output pin set to LOW

58
Q

Which connection results in weaker electricity flow with LEDs, Serial or Parallel?

A

serial

59
Q

Which are more straightforward, digital sensors or analog sensors?

A

digital

60
Q

Which pins are used for analog input?

A

Analog In 0,1,2,3,4,5

61
Q

What is the range of input values you can get?

A

0(0V) to 1023(5V) (10 bit)

62
Q

What are some examples of analog sensors?

A

Mic, photoresistor, potentiometer, temp sensor, flex sensor, accelerometer

63
Q

What is a Force Sensitive Resistor (FSR)?

A

a resistor that changes its resistive value in Ohms depending on how much it is pressed

64
Q

Are FSRs a good choice for measuring the weight of an object?

A

No, they are not accurate enough for that

65
Q

What is a slide potentiometer?

A

basically a variable resistor

66
Q

What kind of resistor do you need with a slide potentiometer?

A

a 10K ohm pull down resistor

67
Q

What kind of resistor do you need to use with the PIR motion sensor?

A

a pull up resistor on the alarm pin

68
Q

What is the default sensor read for a PIR motion sensor?

A

1023

69
Q

Between which values does the PIR motion sensor alternate once motion is detected?

A

between 1023 and 18

70
Q

What does each wire of the analog distance sensor connect to?

A

black to GND, red to 5V Vdd and yellow to any analog pin

71
Q

What is the output for an Air Quality Sensor?

A

analog resistance

72
Q

What is another name for a Tilt Ball Switch Angle?

A

the “poor man’s” accelerometer

73
Q

What are tilt sensors?

A

switches that can detect basic motion/orientation

74
Q

How does a tilt sensor work?

A

there’s a metal tube with metal balls inside and when it’s tilted upright the balls short together the contacts

75
Q

What is Analog Output defined as?

A

signals coming from one of the digital pins on the Arduino board that range from 0 to 255

76
Q

Which digital pins can be used for analog output?

A

ones with PWM next to them

77
Q

How does PWM work for analog output?

A

you turn the pin ‘on’ (5V) for a fraction of the cycle based on the duty cycle (percentage of time the pin is on per period)

78
Q

What is a Piezo?

A

an electronic piece that converts electricity into sound energy

79
Q

What kind of output device is a Piezo?

A

digital output device

80
Q

Is a Piezo directional or non-directional?

A

directional

81
Q

What is serial communication?

A

method used to transfer data between two devices

82
Q

What can you use to get around the linear processing of Arduino?

A

interrupts

83
Q

Which function can you use to designate an interrupt function?

A

attachInterrupt(interrupt(which pin), function, mode(when interrupt should be triggered));

84
Q

What are the interrupt modes?

A

LOW, CHANGE, RISING, FALLING

85
Q

What is a Servo Motor?

A

an electronic device that converts digital signal to rotational movement

86
Q

What are the 2 types of servo motors?

A

standard and continuous rotation

87
Q

How many degrees of rotation is the standard servo limited to?

A

180 degrees

88
Q

How many degrees of rotation is the continuous rotation servo limited to?

A

none, can rotate unlimitedly in either direction