Color Line Following Boe-Bot Senior design project...IMPORTANT!
amuszeme
Posts: 13
Help!!!!· I have been trying to use the TAOS TCS230 color sensor to program the boe-bot to follow colored lines...I've not been successful and have been unsuccessful finding any assistance on line.· Can anyone help.· PLLLLEEEEEEEEEEEEEASE
Post Edited (amuszeme) : 4/23/2006 9:33:09 PM GMT
Post Edited (amuszeme) : 4/23/2006 9:33:09 PM GMT
Comments
Have you taken the time to run the TCS230 Color Match.exe program to see if the sensor is providing RGB values (and a color match) for what you're observing? That's a start - isolate this into small pieces and build on the basics.
Ken Gracey
Parallax, Inc.
Do you indeed have varied colored lines that you wish to follow separately (differentiated)? If not, there are far better and much less costly solutions than the Taos Color Line Sensor Evaluation Kit, which is what I presume you're speaking about (Parallax Product #30054).
Although it appears to be presently backordered, the QTI Line Follower AppKit for the Boe-Bot, is a far better bargain, with a total of 4 sensors and all the associated mounting and wiring accessories for only $28.00 US. This presumes colored lines are NOT involved, merely some dark color (usually black) lines on a light or white background color.
If you DO need color, I will post another reply to your question, with additional questions for troubleshooting the problem.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Post Edited (Bruce Bates) : 4/23/2006 11:06:23 PM GMT
How wide are the colored lines you're using?
What did you use to make the colored lines (paint, tape, magic marker, etc)?
What is the background color behind the colored lines?
How close to the lines is the sensor mounted, and is it mounted inboard or outboard of the BOE-Bot's metal chassis?
Are you using the source lighting supplied on the Eval Board, or something else?
How many Eval Boards or sensors are you using?
An attached·copy of your program would be helpful, if you like us to look through it to make any suggestions or recommendations.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Amy
At the possible risk of sounding uncharitable,·even my changed version of the present·program (attached) is at best rudimentary in its present form, and·it's a long way from·the way it was,·to the point where one might be able to legitimately suspect that the TAOS sensors aren't detecting the colored lines. I have shortened the name of the program a bit, and added a phoney .TXT postfix-file_type, which you can feel free to change back, and made a few minor changes, but changes which should change the reaction of the program (for better or worse). I didn't run it throught the IDE to check for errors, so I may have added syntactical errors by accident. My apologies if I did.
Only you know how you intended the IF/THEN structures in the program to operate, but I doubted they were correct as they stood, thus I changed them. The information you were displaying to aid you in debugging was BOGUS, thus you were probably coming to incorrect conclusions as to what was actually happening with the TAOS sensors. I changed those DEBUG statements. This was a pure syntactical mis-placement, so·I would suggest a better study of the PBASIC Manual or PBASIC Help File to insure that the commands you are entering are structured correctly.
It wasn't clear to me what should be happening if GREEN was being detected, nor what should be happening if NO COLOR was being detected. What's with that?
Although you seem to have a PING))) Sensor onboard, it would appear that you're not presently using it, or if you are, it's not being used correctly. If it's purposely not being used, that's fine, but disable the PING))) commands for now, so that they don't interfere with the active code. This can be simply done by adding a single quote (" ' ") to the beginning of any line or lines you want ignored. This causes them to be viewed as a comment by the IDE/Editor.
Just out of sheer curiosity, did you use gloss, semi-gloss, of flat latex paint on your "map"? I'm not sure whether that will make a difference in the end, but you might want to develop a couple of small test panels, if possible, just to check that angle. Here are some possible shortcuts, rather than having to purchase more paint of each type. Just remember these are _permanent_ changes below:
Covering flat or semi-gloss with some clear, glossy,·nail polish·should simulate gloss paint, and give the same effect for test panel purposes.
Using very fine sandpaper should change gloss to semi-gloss, or possibly even to flat, on a small test panel.
Buffing semi-gloss with Pledge (or any other spray-on furniture polish) should allow you to simulate gloss from a semi-gloss surface.
Give it another shot, and let us know the results. Once you get this baby back on track, it will grow by leaps and bounds, take my word for it! First we crawl, and then we walk :-)
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
The Ping))) sensor is intended to avoid collision with another bot following another route within 5 inches. Thanks again for helping the helpless [noparse]:)[/noparse] I will let you know how it goes.
Amy