Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: funtymanish on June 21, 2009, 03:46:56 PM
-
plz any1 help me out , the pblm is i want to build a line follower robot , and since i am not using any comparator please suggest me the logic behind it,
i am using atmega16 mic,and ir sensors.
-
so you have an atmega16 and ir sensors?
well, you can just write some simple code to say if one side gets more light turn that way so it stays on the line?
i couldn't really understand you well...
-
sorry but i hav tried dat, the pblm is how to write the logic . suppose my sensor senses black color then the receiver dsnt receiives light hence it is at a low potential, .
i am using port A as my input port then
IF(PORTA==0X00)
THEN TURN LEFT();
but the pblm is it is not working , now wat logic shall i write for the voltage received dat by the receiver,???