Parallax 28034 Quick Start Manual page 6

Table of Contents

Advertisement

Quick-Start Circuit
The circuit pictured can be used with the example code below, as well as for the line following code
included at the end of this document.
Note: In order to use this sensor with the Stingray, you will need to bypass the voltage translators on
the Propeller Robot Control Board. The Infrared Line Follower has a 3 V onboard regulator, and the
Propeller Robot Control Board's translators will interfere with signals coming from the sensor.
For instructions on how to disable the translators, see the documentation available on the Propeller Robot
Control Board's product page. Go to www.parallax.com and search 28230.
Figure 1: Infrared Line Follower Quick-Start Circuit
BASIC Stamp 2 Example Code
The program InfraredLineFollower_Simple.bs2 will test the Infrared Line Follower sensors before they're
used in a line-following application. Follow the instructions below to test that all 8 sensors are working
correctly.
Affix a 3/4" piece of electrical tape on a white piece of paper.
Enter & run InfraredLineFollower_Simple.bs2 (below).
Place sensor S0 over the electrical tape and the other sensors over the white paper.
The Debug Terminal should read %00000001 and the S0 LED should be off.
Repeat this process until all eight sensors are tested.
If your sensor doesn't display a logical 1 when over a black surface and a logical 0 when over a white
surface, check your connections and/or try adjusting the frequency in the Calibration section on page 8.
Copyright © Parallax Inc.
Infrared Line Follower Kit (#28034)
v1.0 1/18/2011 Page 6 of 9

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 28034 and is the answer not in the manual?

Table of Contents