Save
ROBOTICS
Control Structures
Save
Share
Learn
Content
Leaderboard
Learn
Created by
John4406
Visit profile
Cards (22)
Computer programming
One of the functions is for
communication
between
humans
and
computers
or
machines
Key skill to develop for working in
robotics
View source
Conditional statement
Allows performing different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false
View source
Conditional control structures
Make conditions or expressions that evaluate to either true or false
Mostly used to determine program flow through if statements and while loops
View source
Control Structures Common Syntax
digitalWrite()
delay()
View source
IF CONDITIONAL STATEMENT
Executes any statement inside the brackets { } if the conditional statement is true. If false, the program skips over the statement
View source
If
-
Else CONDITIONAL STATEMENT
An if statement can have an else clause which handles what should be done if the if statement is not true
View source
while LOOP STATEMENT
Continues to repeat a block of code as long as the
condition is true
View source
for LOOP STATEMENT
Most useful when you want something to happen a couple of times
View source
Robots
replaced some people working on dangerous tasks
View source
Robots
receive commands from programmers to do a certain task using computers and software
View source
Robots
cannot understand the language humans use
View source
Robots
replaced some people working on
dangerous tasks
, making our lives more
convenient
View source
Robots
Receive commands from programmers to do a certain task using computers and software
View source
Communication
between robots and humans is important
View source
Programming languages
are developed because
robots
cannot understand the language we use
View source
Source codes
(
commands
)
Converted into machine codes that can only be understood by computers
View source
Serial Monitor
A tool used for communication between the Arduino board and a computer or other devices
View source
Serial Monitor
Allows sending messages from a computer to an Arduino board (over USB) and receiving messages from the Arduino
View source
Opening up the Serial Monitor
After uploading the sketch onto your
Arduino
, click on the right-most button on the toolbar in the
Arduino IDE
View source
Serial Monitor Window
Acts as a separate terminal that communicates by receiving and sending Serial Data
Part of the Arduino IDE software
View source
Serial Data
is sent over a single wire (but usually travels over USB) and consists of a series of 1’s and 0’s sent over the wire
View source
Serial Monitor Window
is called the Serial Monitor and it is part of the Arduino IDE software
View source