Tuesday, January 22, 2008

Further programming by KAILab S/W


If you change the speed slower, KRC Line Tracer can trace along the sharp curve line.


Using this above program, it may happen this problem as below.


* KRC Line Tracer is programmed to trace black line by changing the speed according to detection of IR sensors. Actually it is not turing right or left when it detects corner like this. Then KRC line tracer may get out of line as below. It just simply pass the black line by acceleration. *

Or it may happen like this as below,





* When 2ea IR sensor detect black line, it won't move at all. Because I didn't program in this case which both of 2ea IR sensors of KRC Line Tracer detects black line. *

Here's the example for another programming source



This program is like this.
If 2ea IR sensor detect white paper (IR > 150), it goes forward 2ea LED lighting up.
If right side of IR sensor detect black line and left side of IR sensor detect white paper, it turns right.
If left side of IR sensor detect black line and right side of IR sensor detect white line, it turns left.
If both of IR sensors detect black line, it also goes forward.
* You can check this logic in above programming source. *

No comments: