28125 Parallax Inc, 28125 Datasheet - Page 211

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Detecting Shadows
Casting a shadow makes the photoresistor’s resistance value (R) larger, which in turn
makes Vo smaller. The 2 kΩ resistors were chosen to make the value of Vo reside
slightly above the BASIC Stamp I/O pin’s 1.4 V threshold in a well lit room. When you
cast a shadow over it with your hand, it should send Vo below the 1.4 V threshold.
In a well lit room, both
photoresistor divider connected to P6, it will then store a 0. Likewise, if you cast a
shadow over the photoresistor divider connected to P3, it will cause
When resistors are connected end-to-end as shown in Figure 6-4 they are connected in
series, and they can be referred to as series resistors.
When two resistors are connected in series to set a voltage at Vo, the circuit is called a
voltage divider. In this circuit, the value of Vo can be anywhere between Vdd and Vss.
The exact value of Vo is determined by the ratio of R to 2 kΩ. When R is larger than 2 kΩ,
Vo will be closer to Vss. When R is smaller than 2 kΩ, Vo will be closer to Vdd. When R is
equal to 2 kΩ, Vo will be 2.5 V. If you measure one of the two values (R or Vo), you can
calculate the other value using one of these two equations.
1.4 V is called the BASIC Stamp I/O pin’s threshold voltage, also known as the I/O pin’s
logic threshold. When voltage sensed by an I/O pin is above that threshold, the I/O pin’s
input register will store a 1. If it is below that value, the I/O pin’s input register will store a 0.
Vo
=
5
V
×
2
IN6
000
2
000
and
+
R
IN3
Vdd
Vss
will store the value 1. If you cast a shadow over the
2
kΩ
R
R
=
Vo
5
V
×
2000
Figure 6-4
Schematic –
Voltage Divider
Circuit
Vo
2000
IN3
to store a 0.

Related parts for 28125