|
1 | | -#define SKETCH_VERSION "01282017a" |
| 1 | +#define SKETCH_VERSION "03222017a" |
2 | 2 | /* |
3 | 3 | * QTR-8RC line sensor Testing sketch to determine correct wiring |
4 | 4 | * of sensor with the Gobbit robot chassis. |
5 | 5 | * |
6 | | - * For assembly, wiring, programming, and other examples, see: http://www.primalengineering.com/robots |
| 6 | + * For a video using this sketch: https://youtu.be/Y3DGQTP38wU |
| 7 | + * |
| 8 | + * For assembly: http://primalengineering.com/robots/Downloads/GBT-101-INSTR-R2_LineFollowAssemblyInstructions.PDF |
| 9 | + * |
| 10 | + * For wiring: http://primalengineering.com/robots/Downloads/Gobbit_LineFollowWiring_03222017.pdf |
| 11 | + * |
| 12 | + * For additional programming, hardware, and other projects: http://www.primalengineering.com/robots |
7 | 13 | * |
8 | 14 | * Parts list: |
9 | 15 | * |
10 | 16 | * 1) Gobbit Robot with line following configuration |
11 | | - * Components: |
| 17 | + * Components: |
12 | 18 | * Gobbit Chassis with motors, switch, and battery holder |
13 | 19 | * Sparkfun Redboard (arduino uno clone) |
14 | 20 | * Motor shield |
|
20 | 26 | * Pololu QTR-8RC RC Reflectance Sensor Array |
21 | 27 | * |
22 | 28 | * see: Zagros Robot Starter Kit - Gobbit |
23 | | - * (http://www.zagrosrobotics.com/) |
| 29 | + * http://www.zagrosrobotics.com/ |
24 | 30 | * |
25 | 31 | * 2) Black electrical tape line course on white background |
26 | 32 | * |
|
33 | 39 | * To Use: |
34 | 40 | * 1) Upload sketch to Arduino/Redboard. |
35 | 41 | * 2) Run the Serial Monitor at 115200 baud with your Arduino/Redboard connected to your computer via USB. |
36 | | - * 3) Place the robot on a lined track with the sensor over the line. |
37 | | - * 4) Slowly wave the sensor over the line, keeping all the wheels of the robot touching or close to the track. |
38 | | - * a) The serial monitor should read __ at each sensor that does not see the line. |
39 | | - * b) The serial monitor should read -- where some line is partially seen. |
40 | | - * c) The serial monitor should read XX where the line can be fully seen. |
| 42 | + * 3) Stand the robot up on the end with the ball caster, with the sensor facing away from you. From this |
| 43 | + * perspective, the readout on the serial monitor will match left to right with the robot left/right. |
| 44 | + * 4) Slowly wave your finger or a pencil/pen close to the sensor from side to side. |
| 45 | + * a) The serial monitor should read __ at each sensor that detects the IR light refleced from your finger. |
| 46 | + * b) The serial monitor should read -- where only some reflected light is detected. |
| 47 | + * c) The serial monitor should read XX where very little reflection is detected. |
| 48 | + * d) If it appears to be working properly, place the robot on your course. |
| 49 | + * i) The sensors over the line should read XX since it is black and does not reflect much light. |
| 50 | + * ii) The sensors over the white of the course should read __ since the white reflects a lot of light. |
41 | 51 | * 5) If your readings do not match what you would expect: |
42 | 52 | * a) Unplug the robot |
43 | 53 | * b) Check your wiring and fix any errors. |
|
0 commit comments