Introduction to Robotics
Machine Language
Learning Languages
• Machines Language =
Language in the form of
electric pulses (on/off) that
is used by the
computer/Robot
• Programming Language =
Computer language used to
give instruction to
machines/robots
• YOU = Human Interface
How Programming Language Works
You
Computer
Program
CODING
Machine Language
(for Computers)
How Programming Language Works
You
Remote Control
Robot
Robot Processing and
Responding to
Command
Robot part moving
How Programming Language Works
You
Computer
Programmed ROBOT
Programming
translates to Machine
Language
Robot responds to
command
Your Robot Design Specs
• Describe what your robot will do?
• (as in entertainment, military,
home use, rescue, science
exploring, ect)
• Label your robot if its
• Remote Controlled
• Autonomous
• Describe the parts of the robot and
what each part can do (in relation nto
your code)
Learning Machine Language
• Machines Language =
Language in the form
of electric pulses
(on/off) that is used
by the computer
• Binary = Coded
Information
consisting of a series
of two digits, 1 and 0,
that a computer can
“understand”
How to read binary
• Binary Language is right to left
• 0 in binary means “off” or a value
of 0 or low
• 1 in binary means “on” or a # value
or high
• Binary Language is a form of math
with it doubles every time example
• 000001 = 1
• 000010 = 2
• 000100 = 4
• 001000 = 8
• 010000 = 16
• 100000 = 32
Who can solve?
1. 1100
2. 0001
3. 1111
4. 0101
5. 0000
Who can solve?
1. 1100 = 8+4+0+0=12
2. 0001 = 0+0+0+1=1
3. 1111 = 8+4+2+1=15
4. 0101 = 0+4+0+1=5
5. 0000 = 0+0+0+0=0
Binary Challenge:
Secret Word Message
000001
A = 1
000010
B = 2
000011
C = 3
000100
D = 4
000101
E = 5
000110
F = 6
000111
G = 7
001000
H = 8
001001
I = 9
001010
J = 10
001011
K = 11
001100
L = 12
001101
M = 13
001110
N = 14
001111
O = 15
010000
P = 16
010001
Q = 17
010010
R = 18
010011
S = 19
010100
T = 20
010101
U = 21
010110
V = 22
010111
W = 23
011000
X = 24
CARLOS
Letter # Binary
C 3 000011
A 1 000001
R 18 010010
L 12 001100
O 15 001111
S 19 010011
000011
000001
010010
001100
0011111
010011
Binary Challenge:
Secret Message
000001
A
000010
B
000011
C
000100
D
000101
E
000110
F
000111
G
001000
H
001001
I
001010
J
001011
K
001100
L
001101
M
001110
N
001111
O
010000
P
010001
Q
010010
R
010011
S
010100
T
010101
U
010110
V
010111
W
011000
X
• Each letter has a 6 digit binary code
• LOVE for example
• L = 001100
• O = 001111
• V = 010110
• E = 000101
• What would Hi be in binary code?
Binary Challenge:
Secret Message
000001
A
000010
B
000011
C
000100
D
000101
E
000110
F
000111
G
001000
H
001001
I
001010
J
001011
K
001100
L
001101
M
001110
N
001111
O
010000
P
010001
Q
010010
R
010011
S
010100
T
010101
U
010110
V
010111
W
011000
X
• Create a one or two coded message
using Binary, can work with a
partner
• Write coded message on index card
• Staple index card to folder
• End of class Students will be given 2
minutes to figure out your message
Review
• Machine Language
• Binary Code
• Programming Language
Hour of Code
Go to the website:
https://code.org/learn
We will do one session of
the hour of code,
Write in your notebook,
what session you chose,
what you learned & grade

002 machine language