Line Following Robot

I am new at programming with arduino.I am using qtr sensor (6 sensor)
I need a code that works with PID control.Are there any sample code so that i can study.

Refer to this sample code (CREDITS TO POLOLU FOR THE CODE AND EXCELLENT DOCUMENTATION)
test.c (7.6 KB)
Look after line 188 ie. refer study the int main() function
this is code is written for Pololu’s Orangutan Dev Board i guess

Hello, dragonboy.

The LineFollower example in our zumo-32u4-arduino-library is another PID line following example for the Arduino IDE, though you will need to modify it to work with your hardware.

-Nathan