FINAL EXAM CAPSTONE Flashcards
is one of the tools in Arduino IDE. It is used for two purposes. Arduino - PC vice versa
Serial Monitor
Sends data (command) from PC to Arduino.
PC – Arduino
Receives data from Arduino and display data on screen. This is usually used for debugging and monitoring
Arduino – PC
To send data from Arduino to PC, use the following code
Set baud rate and begin serial port using Serial.begin() function
and send data to serial monitor using Serial.print()
is short for binary digit and is the smallest data unit in a digital system. A bit is either a single 1 or a single 0.
Bit
consists of a series of bits. The most common length for a byte “word” is 8 bits.
Byte
is the rate at which information is transferred in a communication channel.
Baud rate
____ is the standard baud rate
9600
To read data from the serial monitor, first, you need to check whether user entered data or not. To check user data availability, you need to use_________function/command.
Serial.available()
A _____ loop will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false.
While
Assignment operator :
Equal to:
=
==
Looks for the next valid integer in the incoming serial. The function terminates if it times out.
Serial.parseInt()
a _____is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format.
Float
_____ are used to store text
Strings
To read a string type of data from the serial monitor, you need to use _____ function/command to capture the string type of data.
Serial.readString()
The _____ is a component that connects two points in a circuit when you press it. The example turns on an LED when you press the button.
Pushbutton
A pushbutton will need a _____ when it is used in conjunction with a microprocessor or microcontroller as an input. The main reason for using it is to ensure a defined state (0 or 1) is present at the microcontroller’s input, otherwise the input could be left floating (which is unwanted).
resistor
The ______isused to read the logic state at a pin. It is capable to tell whether the voltage at this pin is high (~ 5V) or low (~ 0V) or, in other words, if the pin is at logic state 1 or 0 (or HIGH/LOW).
digitalRead() function
The _____ is the most basic of all programming control structures. It allows you to make something happen or not, depending on whether a given condition is true or not.
if() statement
It is a variable qualifier that modifies the behavior of the variable, making a variable “read-only”. This means that the variable can be used just as any other variable of its type, but its value cannot be changed. You will get a compiler error if you try to assign a value to a const variable.
Constant (const)