lesson 5+6 Flashcards
Modular programming, also referred to as … refers to the process of…
This way of writing the code …
modular architecture
dividing program code into different, sub-sections that can be called upon as functions
simplifies and neatens the project code to make it easier to use, understand and troubleshoot.
The metal block on your Arduino is used for …. and it allows…
serial communication
communication between an Arduino and a computer
TXD
(pin …)
RXD
(pin 1)
transmitter
0
receiver
1
visa versa
“Serial” is a ….
The full stop(.) provides…
“begin” …
“9600” is the …
> library (it holds a lot of functions) that is used in the communication between the Arduino and the computer
> access to all the functions within the library
> specifies the way the Arduino and computer communicate
> baud rate, which means it is the speed at which the computer and the Arduino communicate.
“.println” function causes the code to….
print the next output text on a new line
“.print”….
which continues to print the text output on the same line.
Inside the bracket ….
is the data to be printed.
“Hello world!” is the
content
Click the Serial monitor button which is on the … of the screen to…
top right corner
open a screen that displays data that is exchanged between the Arduino and the computer
The word function in coding refers to a …
set of coding lines that are grouped together and given a specific name
example of function
void setup
Programmers use functions to…
break down a problem into smaller pieces or “chunks”, each of which performs a specific task.
to simplify the code, the function can be defined in the…
main loop
IDE stand for… and it…
integrated development environment
is a software application that provides a space for computer programmers to develop software.
This allows coding to be done faster;
has colour coded text to easily identify different types of functions;
has code examples for small projects, and
helps the programmer manage the code with comments
The compile button…
The upload button…
The serial monitor:….
checks for errors and makes sure there are no issues in your code.
uploads all your code to the Arduino
opens up a monitor which allows the programmer to communicate with the Arduino and get information from it.