Parallax 29115 Скачать руководство пользователя страница 19

Parallax, Inc.  •  Parallax Line Follower (#29115)  •  12/2001 

Page 18

 

Making Tracks 

 

This simplest way to construct a track for your Line Follower is with white art paper and a black, ¼”  

(6 mm) wide felt tip marking pen.  Select a heavy paper stock, one that is opaque, has a matte (non-
glossy) finish and is designed to take paint or pens (papers intended for watercolors work well).  Draw 
the line carefully, making sure that it is no wider than one IR sensor.  If you prefer a white line on black 

paper, you can use ¼” (6 mm) model striping tape to make the line. 
 

For very large tracks, some robotics clubs use 1” white athletic tape on black photographers backdrop 
paper.  It may be necessary to make cuts in the tape on the insides of sharp corners.  Be sure to burnish 
the tape down flush so that it doesn’t interfere with the sensor array.  Figure 7 shows a small practice 

track made with black foam core and 1” athletic tape. 

 

Figure 7: Practice Track 

 

 

 
 

Troubleshooting 

 

You may find that some track and environment combinations cause trouble for the Line Follower module.  

Tracks that use a black line on white field that are lit with fluorescent lights or are affected by sunlight 
can be troublesome.  If adjusting the threshold pot does not solve the problem, you can make a skirt 

from a 

5

/

8

” (16 mm) wide strip of black construction paper.  Wrap the strip around the body of the 

sensors and secure with cellophane tape. 

 

Figure 8: Line Follower With Light Skirt 

 

 

Содержание 29115

Страница 1: ...The content and copyrights of the attached material are the property of its owner Distributed by www Jameco com 1 800 831 4242...

Страница 2: ...ke us and line following circuitry will help get us there safely and without effort With the Parallax Line Follower module you can experiment with this technology today using your BOE Bot Features The...

Страница 3: ...sis Use the other two 4 40 screws to secure the Line Follower Module to the BOE Bot 9 Holding the BOE Bot in your hand turn it over so the bottom side faces up Hold the ribbon cable in your other hand...

Страница 4: ...nd that the IR Detect output is taken at collector of the transistor As the current flow through the transistor increases the voltage across the 10 k resistor also increases causing the voltage at the...

Страница 5: ...hrough the transistor will be low causing detector output voltage to increase If the output voltage goes higher than the threshold pot setting the comparator will output a high 1 In review reflective...

Страница 6: ...back and forth across this line and see the corresponding detector bit change on the DEBUG screen Be careful not to lift the BOE Bot off the paper The emitter detector pairs are focused devices and th...

Страница 7: ...turn the correct value for the specified course type The final constant value is called MoveTo and has a value of 2 This is a little used yet very useful code to use with DEBUG MoveTo allows the curso...

Страница 8: ...at this does is allow the program to see the line be it black on white or white on black as a 1 If no line is detected the output bit will be zero After each bit is recorded the LEDs are switched off...

Страница 9: ...O Definitions Constants LEDon CON 0 LF LEDs are active low LEDoff CON 1 WLine CON 0 white line on black field BLine CON 1 black line on white field LFmode CON BLine set pgm for black line MoveTo CON...

Страница 10: ...eTo 4 3 BIN5 lfBits display LF reading GOTO Main END Subroutines Read_Line_Follower lfBits 0 clear last reading FOR ledPos 2 TO 6 OutL LowBit ledPos LEDon turn the LED on PAUSE 1 allow sensor to read...

Страница 11: ...ialized to 00100 This will cause the BOE Bot to go straight even if it is started off the line The function of the main loop is to read the Line Follower module and decode its bits determining the app...

Страница 12: ...lement Revision History 01 DEC 2001 Version 1 0 I O Definitions LMotor CON 15 servo motor connections RMotor CON 14 Constants LEDon CON 0 LF LEDs are active low LEDoff CON 1 WLine CON 0 white line on...

Страница 13: ...o read lfBits LowBit ledPos In9 LFmode record the sensor reading OutL OutL 01111100 turn LEDs off NEXT lfBits lfBits 2 shift bits to zero index RETURN Off_Line lfBits lastBits get last known position...

Страница 14: ...Parallax Inc Parallax Line Follower 29115 12 2001 Page 13 Hard_Left PULSOUT LMotor MStop stop left motor PULSOUT RMotor MStop Speed075 GOTO Save_Last Notes...

Страница 15: ...power state The next time the Stamp is reset by pressing the Reset button the reset flag value is read and inverted again This time the inverted value will be FF and the program will proceed to initia...

Страница 16: ...History 01 DEC 2001 Version 1 0 I O Definitions LMotor CON 15 servo motor connections RMotor CON 14 Constants LEDon CON 0 LF LEDs are active low LEDoff CON 1 WLine CON 0 white line on black field BLi...

Страница 17: ...n the course Check_End IF lfBits 11111 THEN Steer_Robot keep steering if not at end IF onCourse No THEN Straight still at start IF lastBits 00000 THEN At_End verify end of course Steer_Robot steer NCD...

Страница 18: ...r GOTO Save_Last Right PULSOUT LMotor MStop Speed100 full speed on left PULSOUT RMotor MStop GOTO Save_Last Straight PULSOUT LMotor MStop Speed100 both motors forward PULSOUT RMotor MStop Speed100 GOT...

Страница 19: ...k photographers backdrop paper It may be necessary to make cuts in the tape on the insides of sharp corners Be sure to burnish the tape down flush so that it doesn t interfere with the sensor array Fi...

Отзывы: