And about the program LINE_FOLLOWER.c (attached at the last) there seems to be some serious bug.
1. Though I have installed WINAVR, GCC 4.1.2 that comes with it does not have a header file called "a2d.h"
I had tried to link the folder in my PC containing the SoR Utills and the Photovore files (which had a .h and .c file called a2d) with AVR Studio (Project->Config options->Include libraries), after that the compile(Alt+F7) was successfull but when I tried to Build and Run (Ctrl+F7) it it showed the following error message....
"undefined reference to 'a2dInit'
undefined reference to 'a2dSetPrescaler'
undefined reference to 'a2dSetReference'
undefined reference to 'a2dConvert8bit'
...in other words to simply put it my installed GCC v 4.1.2 does not have a2d.h or any such header required for analog to digital conversion.
And thanks again for any help!
To Admin:) The header and C file titled a2d in your sbs_source_photovhore_v1.rar
seems to have an anomaly
In the aforesaid files while defining the a2dIsComplete there it has u8 a2dIsComplete(void)
Shouldn't it be void a2dIsComplete(void)