Hi,
I want to find a program to make my 3pi follow the white line on black background. Can you suggest something? How can I arrange the simple line following program which follows black line on white background to follow white line on black backgorund. Thank you
Hello,
This is a pretty simple modification. You’ll need to use the read_line_white() function, which is described here. Also, this forum post might be useful as well.
Thanks,
Geoff
Hi, Thanks,
I look at these links and make changes like:
unsigned int sensors[5];
unsigned int position = read_line_white(sensors,IR_EMITTERS_ON);
unsigned char i;
for(i=0;i<5;i++)
{
sensors[i] = 1000-sensors[i];
}
but it still doesn’t follow what should i add to this program?
Thanks
Hi,
I believe that read_line_white expects the 3pi’s sensors to be calibrated. Have you done this in your code? If so, could you post your code so we can take a look at it?
Thanks,
Geoff