Arduino Programming Flashcards

(88 cards)

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
What is used for the 'or' function?
||
26
What are basic variable types for Arduino programming?
boolean, integer, character, string
27
What are the 2 required functions for an Arduino program?
void setup() and void loop()
28
When is the setup() function executed?
only once everytime the Arduino is connected to power
29
When in the loop() function executed?
after the setup function executes, it executes repeatedly until the Arduino is disconnected from power
30
What is an Arduino file called?
a sketch
31
What is usually done in the setup() function?
input and output setup using the pinMode() function
32
Does the header for setup() ever change?
no
33
What is the definition of a microcontroller's ports and pins?
the communication channels through which information flows into or out of the microcontroller
34
What are examples of what would be connected to an input pin?
thermistor, light sensor, push button
35
What are examples of what would be connected to an output pin?
LED, piezo sensor (speaker), servo/DC motor
36
Which direction do pins default to upon power-up or reset?
input
37
When can you set or change the directionality of a pin?
at any time in the program
38
Microcontrollers are what type of devices?
digital/discrete
39
What is an analog signal?
anything that can be a full range of values
40
How is analog signal mimicked on an Arduino?
pulse width modulation (PWM)
41
What is PWM?
varying the duty cycle of a signal to mimic an average analog voltage
42
How do you set the directionality of an Arduino pin?
pinMode(pin_number, direction);
43
Is there a way to make multiple different pins the same direction at the same time?
yes
44
For digital I/O pins, what are the voltages they can be?
either HIGH or LOW (logical 1 or 0, realistically 5V or 0V or 3.3V or 0V depending on the power option
45
What function is used for 'turning on or off' an output pin?
digitalWrite(pin, state);
46
What function is used for reading from an input pin?
digitalRead(pin);
47
Which register handles the data directions for pins in PORTx?
DDRx: data direction register x
48
How many bits wide are the registers on the Atmega328?
8-bits wide
49
If a bit is zero, what direction is the pin corresponding to that bit?
input
50
If a bit is one, what direction is the pin corresponding to that bit?
output
51
How do you change the data direction for multiple pins at once in the same PORT?
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
What are the important registers for I/O?
DDRx, PORTx, PINx
53
What are 8 binary digits called?
byte
54
What are 4 binary digits called?
nibble
55
How do you turn on a pull-up resistor?
digitalWrite(pin, HIGH); in which the 'pin' has already been declared an input pin
56
Is an LED directional or non-directional?
directional
57
How can you mimic the GND pin on an Arduino?
using an output pin set to LOW
58
Which connection results in weaker electricity flow with LEDs, Serial or Parallel?
serial
59
Which are more straightforward, digital sensors or analog sensors?
digital
60
Which pins are used for analog input?
Analog In 0,1,2,3,4,5
61
What is the range of input values you can get?
0(0V) to 1023(5V) (10 bit)
62
What are some examples of analog sensors?
Mic, photoresistor, potentiometer, temp sensor, flex sensor, accelerometer
63
What is a Force Sensitive Resistor (FSR)?
a resistor that changes its resistive value in Ohms depending on how much it is pressed
64
Are FSRs a good choice for measuring the weight of an object?
No, they are not accurate enough for that
65
What is a slide potentiometer?
basically a variable resistor
66
What kind of resistor do you need with a slide potentiometer?
a 10K ohm pull down resistor
67
What kind of resistor do you need to use with the PIR motion sensor?
a pull up resistor on the alarm pin
68
What is the default sensor read for a PIR motion sensor?
1023
69
Between which values does the PIR motion sensor alternate once motion is detected?
between 1023 and 18
70
What does each wire of the analog distance sensor connect to?
black to GND, red to 5V Vdd and yellow to any analog pin
71
What is the output for an Air Quality Sensor?
analog resistance
72
What is another name for a Tilt Ball Switch Angle?
the "poor man's" accelerometer
73
What are tilt sensors?
switches that can detect basic motion/orientation
74
How does a tilt sensor work?
there's a metal tube with metal balls inside and when it's tilted upright the balls short together the contacts
75
What is Analog Output defined as?
signals coming from one of the digital pins on the Arduino board that range from 0 to 255
76
Which digital pins can be used for analog output?
ones with PWM next to them
77
How does PWM work for analog output?
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
What is a Piezo?
an electronic piece that converts electricity into sound energy
79
What kind of output device is a Piezo?
digital output device
80
Is a Piezo directional or non-directional?
directional
81
What is serial communication?
method used to transfer data between two devices
82
What can you use to get around the linear processing of Arduino?
interrupts
83
Which function can you use to designate an interrupt function?
attachInterrupt(interrupt(which pin), function, mode(when interrupt should be triggered));
84
What are the interrupt modes?
LOW, CHANGE, RISING, FALLING
85
What is a Servo Motor?
an electronic device that converts digital signal to rotational movement
86
What are the 2 types of servo motors?
standard and continuous rotation
87
How many degrees of rotation is the standard servo limited to?
180 degrees
88
How many degrees of rotation is the continuous rotation servo limited to?
none, can rotate unlimitedly in either direction