EasyManuals Logo

Parallax Boe-Bot User Manual

Parallax Boe-Bot
360 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #337 background imageLoading...
Page #337 background image
Appendix F: Balancing Photoresistors · Page 323
Calibrating Using a Linear Approximation
The photoresistor is often referred to as a non-linear device. In other words, if it returns
one measurement at one brightness, that doesn’t mean that the measurement will be five
times as large when the light is five times as bright. The math is more complicated and
involves logarithms. However, in cases where the measurements are confined over a
narrow range of the sensors overall detection abilities, the sensor can be treated like it’s a
linear device. You can take a couple of measurements, and then figure out how the
device will react if other measurements in its range could be plotted in a straight line.
The technique is called linear approximation.
Another thing you can do with linear devices is assume the difference between the two
lines can also be plotted as a line. In fact, if you have one linear device that has larger
measurements than the other for ambient and low light, you can use a linear
approximation for making the sensors return approximately the same values for the same
light levels. For every reading from one sensor, (we’ll call that one x), you can multiply
it by a scale factor (m), and add it to a constant (b) to get a value in the same range the
other sensor would report (y).
bmxy +=
Here is an example of how to get the values of m and b to match the left photoresistor
circuit to the right. First, assign X
1
and X
2
to the left photoresistor values and Y
1
and Y
2
to the right photoresistor values. (Table F-2) shows some example values for
mismatched photoresistors. Your values will be different.
Table F-2: RC-Time Measurements in Ambient and Low Light
Duration Values
timeLeft timeRight
Description
X
1
= 36 Y
1
= 56 Photoresistors in uniform ambient light
X
2
= 152 Y
2
= 215 Photoresistors in uniform low light
Now, solve for m and b using two equations in two unknowns. One of the simpler
approaches is to write two y = mx + b equations, one in terms of X
1
and Y
1
and the other
in terms of X
2
and Y
2
. Then, subtract one from the other to eliminate b. Then, solve for
m.

Table of Contents

Other manuals for Parallax Boe-Bot

Questions and Answers:

Question and Answer IconNeed help?

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

Parallax Boe-Bot Specifications

General IconGeneral
BrandParallax
ModelBoe-Bot
CategoryRobotics
LanguageEnglish