Coding
Circuits
Logic in Coding
General
100

In the code line:

switchState = digitalRead(2);

what does the number 2 represent?

Pin Number

100

See Image 2.

What do you call this circuit component and what value?

Resistor, 220 Ohms

100

In Image 5:

What type of input value does the temperature sensor (connected to A0) sends to the Arduino?

Analog or Digital

Analog

100

What is the name of the device we have been working on?

Arduino

200

in the line code:

digitalWrite(3,HIGH);

What is the pin# being configured on the code and voltage (Value of HIGH) assigned to that pin#?

Pin # 3

Voltage = 5V

200

What do you call the board we typically place our circuit components?

Hint:  rows are connected

Bread board

200

In Image 6:

if PIN 2 is connected to a push button, 

and PIN 3, 4, 5 are connected to LEDs.  

Is your Push Button an INPUT or OUTPUT?

INPUT

200

In an Arduino, what is the voltage corresponding to HIGH and the voltage corresponding to LOW?

HIGH = 5V

LOW = 0V

300

What do you call the term for assigning a name to store data values?

Hint:  values "assigned" can be varied in the code.

Variable

300

What is the term that is defined as "fundamental form of energy produced from moving electrons"?

Electricity

300

In Image 3:

under which condition "switchState" (push button) will you see the GREEN LIGHT ON?

NOT Pressed / LOW

300

In Image 8:

Identify the series circuit and parallel circuit.

Left: series

Right: Parallel

400

in this code:

for(i=2; i<5; i++)

How many iterations will this loop run?

3 times

400

What are the two types of circuit?

Parallel and Series

400
See Image 1:

From the circuit, identify the Input(s) and Output(s) pins.

Hint:  when push button is pressed, LEDs light up.

Input: push button or Pin 2

Outputs:  Pin 3, 4, 5

400

What do you call a port/channel that allow Arduino to send/receive data bit-by-bit to a computer?

Serial

500

See Image 7:

if sensorVal = 1024, what would be the printed value of voltage?

Voltage = 5 V

500

What is the name of the Law/Theory that equates voltage = current x resistance?

Ohm's Law

500

See Image 4:

if Temperature = 23, and baselineTemp = 20, 

What will be the state (in terms of LOW/HIGH) of PIN 2, 3, and 4?

PIN 2 = HIGH

PIN 3 = LOW

PIN 4 = LOW

500

Identify 2 out of the three types of conditional statements. 

1.) If

2.) If, Else

3.) If, Else if