EASE 1 Flashcards
What is the primary purpose of a breadboard?
To create temporary electrical circuit connections
Source Code is composed in?
Arduino IDE
Which pin has a built-in LED?
Pin 13
What are parallel circuits?
A parallel circuit is a circuit that contains multiple pathways, or branches
What are Schematics?
Symbolic descriptions of a circuit’s connections
What is the easiest way to tell a resistor’s level of resistance?
Look at the colour stripes and calculate the resistance
What is a series circuit?
In-line circuitry
What is a good analogy for current?
Water-and-pipe analogy - if we have a water pump that exerts pressure (voltage) to push water around a “circuit” (current) through a restriction (resistance), we can model how the three variables interrelate.
What is the mathematical formula for OHM’s law?
IVR triangle. I = current; V = voltage; R = resistance
What is a good analogy for voltage?
Refer to the water-and-pipe analogy. In this analogy, voltage is represented by the water pressure
What is the definition of a circuit?
A circuit is a complete circular path that electricity flows through
LED positive and negative
Long side = anode = positive; Short side = cathode = negative
What is the symbol for LDR?
A wiggly line or box within a circle with two lines pointing at it
What is the symbol for a resistor?
Wiggly line or a box
What is the difference between schematics and writing diagram?
A schematic shows the plan and function for an electrical circuit, but is not concerned with the physical layout of the wires whilst a writing diagram show how the wires are connected and where they should located in the actual device and the connections between parts
What is a function call that makes digital output?
digitalWrite()
The Arduino board, that can be produced as output component
The Arduino board can only make a digital output. If there are no additional external output components, the Arduino can utilise the onboard LED on pin 13
Example of output command listed in digital write ()
(pinNum, MODE)
What would you do if you received a syntax error while verifying code?
Check your code for errors
Why wouldn’t a project behave like you expect it to?
You most probably have a bug
What happens if you leave out a semicolon?
Syntax error
Instruction to set a pin up for input
pinMode(pinNum, INPUT);
Source code will make the program wait for one second
delay(1000)
Void setup() {} is known as …
The setup function
What are comments?
Comments are notes left by the developer that cannot be read by the computer. They are created using // and these insinuate that the computer is not able to read the comment
What is the language used in the Arduino program?
C
What should you do after make a change to some code/
Upload it onto the board
Commands turns voltage on
digitalWrite (pinNum, HIGH);
Lines start with // or are between /* and */
Are comments and are ignored by the comupter
How many setup functions can you have in one program?
One
An example of a pair of delimiters
{ } - braces, for functions and other constructs
“ “ - quotes, for strings
‘ ‘ - single quotes, for characters
[ ] - (square) brackets, in arrays
< > - angle brackets
( ) - parentheses, for function argument lists and other things
/* */ - multi-line comments
What is a sequence?
Lines of code executed in that order. Sequence is the order in which the statements are executed
If function example
if (this ) {
Do that
}
the right way to assign a value to a variable
int Variable name = desired variable value