micro quiz 1 p3 Flashcards

(44 cards)

1
Q

is an open-source electronics platform based on easy-to-use hardware and software

A

Arduino

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

Arduino boards are relatively inexpensive compared to other microcontroller
platforms

A

Inexpensive

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

The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.

A

Cross-platform

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

The Arduino Software (IDE) is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. For teachers,
it’s conveniently based on the Processing programming environment, so students learning to
program in that environment will be familiar with how the Arduino IDE works.

A

Simple, clear programming environment

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

The Arduino software is published as open source
tools, available for extension by experienced programmers. The language can be expanded
through C++ libraries, and people wanting to understand the technical details can make the
leap from Arduino to the AVR C programming language on which it’s based. Similarly, you can
add AVR-C code directly into your Arduino programs if you want to.

A

Open source and extensible software

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

The plans of the Arduino boards are published
under a Creative Commons license, so experienced circuit designers can make their own
version of the module, extending it and improving it. Even relatively inexperienced users can
build the breadboard version of the module in order to understand how it works and save
money

A

Open source and extensible hardware

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

You can control your board functions by sending a ____________ to the microcontroller on
the board via Arduino IDE (referred to as uploading software).

A

set of instructions

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

Arduino IDE

A

Step 1: First you must have your Arduino board (you can choose your favorite board) and a USB
cable. In case you use Arduino UNO, Arduino Duemilanove, Nano, Arduino Mega 2560, or Diecimila, you
will need a standard USB cable (A plug to B plug), the kind you would connect to a USB printer as shown
in the following image.
Step 2: Download Arduino IDE Software
Step 3: Power up your board.
Step 4: Launch Arduino IDE
Step 5: Open your first project
Step 6: Select your Arduino board.
Step 7: Select your serial port

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

Give at least 3 Operating System that is compatible with the Arduino IDE

A

Windows, Linux, MacOS

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

The term IDE stands for “ ”.

A

Integrated Development Environment

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

is software with source code that anyone can inspect, modify, and enhance.

A

Open source software

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

. It is the place where Arduino was created and develop.

A

Institute Ivrea in Ivrea

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

Who created Arduino

A

Massimo Banzi and
David Cuartielles

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

developed the Arduino
software, which was based on Wiring

A

David Mellis

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

original founders of Arduino.

A

Massimo Banzi
David Cuartielles
David Mellis
Gianluca Martino
Tom Igoe

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

Use it to initialize the variables, pin modes,
start using libraries, etc. The setup function will only run once, after each power up or reset of the Arduino
board

A

The setup() function

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

does precisely what its name suggests, and loops consecutively, allowing your program to change and
respond. Use it to actively control the Arduino board

A

the loop() function

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

Data Types

A

void, Boolean, char, unsigned char, byte, int, unsigned int, word, long, unsigned long, short, float, double, array, String-char array, string-object

19
Q

The void keyword is used only in function declarations. It indicates that the function is expected
to return no information to the function from which it was called

20
Q

A Boolean holds one of two values, true or false. Each Boolean variable occupies one byte of
memory.

21
Q

A data type that takes up one byte of memory that stores a character value. Character literals are
written in single quotes like this: ‘A’ and for multiple characters, strings use double quotes: “ABC”.

22
Q

Unsigned char is an unsigned data type that occupies one byte of memory. The unsigned char
data type encodes numbers from 0 to 255.

A

Unsigned char

23
Q

A byte stores an 8-bit unsigned number, from 0 to 255.

24
Q

Integers are the primary data-type for number storage. int stores a 16-bit (2-byte) value. This
yields a range of -32,768 to 32,767 (minimum value of -2^15 and a maximum value of (2^15) - 1).

25
Unsigned ints (unsigned integers) are the same as int in the way that they store a 2 byte value. Instead of storing negative numbers, however, they only store positive values, yielding a useful range of 0 to 65,535 (2^16) - 1). The Due stores a 4 byte (32-bit) value, ranging from 0 to 4,294,967,295 (2^32 - 1).
Unsigned int
26
On the Uno and other ATMEGA based boards, a word stores a 16-bit unsigned number. On the Due and Zero, it stores a 32-bit unsigned number.
Word
27
Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from 2,147,483,648 to 2,147,483,647.
Long
28
Unsigned long variables are extended size variables for number storage and store 32 bits (4 bytes). Unlike standard longs, unsigned longs will not store negative numbers, making their range from 0 to 4,294,967,295 (2^32 - 1).
Unsigned Long
29
A short is a 16-bit data-type. On all Arduinos (ATMega and ARM based), a short stores a 16-bit (2-byte) value. This yields a range of -32,768 to 32,767 (minimum value of -2^15 and a maximum value of (2^15) - 1).
Short
30
Data type for floating-point number is a number that has a decimal point. Floating-point numbers are often used to approximate the analog and continuous values because they have greater resolution than integers.
Float
31
On the Uno and other ATMEGA based boards, Double precision floating-point number occupies four bytes. That is, the double implementation is exactly the same as the float, with no gain in precision. On the Arduino Due, doubles have 8-byte (64 bit) precision.
Double
32
Variables and Constant
local variables formal parameters. global variables
33
Variables that are declared inside a function or block are local variables. They can be used only by the statements that are inside that function or block of code. Local variables are not known to function outside their own.
Local Variables
34
Global variables are defined outside of all the functions, usually at the top of the program. The global variables will hold their value throughout the life-time of your program. A global variable can be accessed by any function. That is, a global variable is available for use throughout your entire program after its declaration.
Global Variables
35
What does void setup() mean?
This is a declaration for a function called "setup". This exact line is required in every Arduino sketch ever. Any code that lives inside setup()'s curly brackets ({ and }) runs once at the very beginning of your program and then never again
36
What is sketch?
A sketch is the name that Arduino uses for a program. It's the unit of code that is uploaded to and run on an Arduino board.
37
is the name that Arduino uses for a program. It's the unit of code that is uploaded to and run on an Arduino board
sketch
38
types of operators in C language:
Arithmetic Operators * Comparison Operators * Boolean Operators * Bitwise Operators * Compound Operators
39
Control Statements are elements in Source Code that control the flow of program execution. They are
If statement * If …else statement * If…else if …else statement
40
It takes an expression in parenthesis and a statement or block of statements. If the expression is true then the statement or block of statements gets executed otherwise these statements are skipped.
if statement
41
An if statement can be followed by an optional else statement, which executes when the expression is false
If…else statement
42
The if statement can be followed by an optional else if...else statement, which is very useful to test various conditions using single if...else if statement. When using if...else if…else statements, keep in mind
if…else if…else statement
43
that yields the remainder after integer division
The modulus operator, %
44
operator in C++ is a single ampersand &, used between two other integer expressions
bitwise AND