Parallax Boe-Bot Student Manual page 338

Hide thumbs Also See for Boe-Bot:
Table of Contents

Advertisement

Page 324 · Robotics with the Boe-Bot
=
+
y
mx
b
2
2
=
+
y (
mx
) b
1
1
=
y (
y
)
m
x (
2
1
2
y (
y
)
2
1
=
m
x (
x
)
2
1
Once you've solved for m, you can plug m back into either of the two y = mx + b
equations you started with to get b.
=
+
y
mx
b
2
2
b
=
y
mx
2
2
So, the two equations for solving for m and b turn out to be:
y (
y
)
2
1
=
m
x (
x
)
2
1
Let's plug our sample values from Table F-2 into the equations and see what the scale
factor (m) and offset constant (b) will be for the left photoresistor. First, calculate m:
y (
y
)
=
2
1
m
x (
x
)
2
1
(
215
56
)
=
m
(
152
36
)
159
=
=
m
. 1
37
116
Then, use m, y
and x
to calculate b:
2,
2
=
×
b
215
(
. 1
37
152
=
b
. 6
76
b
7
x
)
1
=
b
y
mx
2
2
and
)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Boe-Bot and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF