Project help PLEASE
czs0024
Posts: 4
for our project, we are using the colorpal sensor. we have to program a boe-bot to use the colorpal sensor to follow a green line of electrical tape. however, we were given no other instructions and we have only done basic stamp once before. i found the section in the manual on how to follow a black tape line using different sensors, but cannot find anything on our project. any help would be GREATLY appreciated.
Comments
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/colorpal/List/0/SortField/4/ProductID/617/Default.aspx
If you haven't looked at it, download and read through the "Robotics with the BoeBot" tutorial. It sounds like you've seen some of the examples in that, but you may need to work through some of the exercises so you understand what they're doing and how.
2) Experiment with the Color Matching program until you understand how it works and how the sensor works
3) Look at Chapters 6, 7, and 8 in the Robotics tutorial. These cover navigation using the existing photoresistors and the IR distance sensors. Exercise #3 in Chapter 8 specifically covers following a stripe on the floor. Instead of getting a distance measurement using IR (actually measuring the intensity of the reflected IR), you'll get a measurement of the intensity at the color of the tape and, if it's different enough in color from the tape, the intensity at the color of the floor. If you're using two ColorPALs, the rest of the logic is the same. If you're using only one ColorPAL, you'll have to turn the BoeBot from side to side to see where the edge of the tape is each time you move forward a little bit and lose the tape.
Since this is a school project, you'll have to do most of the work yourself using what resources are available in the documentation for the BoeBot and ColorPAL. If you have specific questions or specific things you don't understand after looking at the documentation, feel free to ask, but give as much information as possible. Include a copy of your program as an attachment to your message. Describe what your BoeBot is doing, not just what it isn't doing. Check your wiring. Use the DEBUG statement to look at your program's variables and mention what sort of values you're getting.