Programming Arduino Flashcards
Gives you access to the tools needed for creating and saving Arduino sketches.
menu bar
Compiles your code and checks for errors in spelling or syntax.
verify button
Sends the code to the microcontroller – (which in this case is an Arduino Uno. )
upload button
Opens up a new window containing a blank sketch.
new sketch
Allows the user to open a saved sketch or any of the stored samples.
open existing sketch
This saves the sketch currently in the workspace.
save sketch
When the board is connected, this will display the serial data from the Arduino.
serial monitor
When the sketch is saved, the name of the sketch is displayed here.
sketch name
This is the workspace where the sketch code is written.
code area
This area displays the status and errors during saving, code compiling, etc.
message area
Shows additional information like the details of error messages and size of the compiled program.
text console
Indicates what board is being used and which serial port it is connected to.
board and serial port
Coding using the Arduino UNO usually has four basic divisions or sections.
namely the Introductory Comments, Declaration Section, Setup Section and Loop Section.
arduino code structure
Comments are lines in the program that are used to inform yourself or others about the way the program works.
introductory comments
Before variables are used, they have to be declared first. Declaring a variable means defining its type, and optionally, setting an initial value (initializing the variable).
declaration section
The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc.
setup section
Is a sequence of instructions that is repeated endlessly
loop section