Author Topic: big pblm with sensors  (Read 1388 times)

0 Members and 1 Guest are viewing this topic.

Offline funtymanishTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
big pblm with sensors
« 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.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: big pblm with sensors
« Reply #1 on: June 21, 2009, 03:58:16 PM »
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...
Howdy

Offline funtymanishTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: big pblm with sensors
« Reply #2 on: June 22, 2009, 03:24:50 AM »
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,???

 


data_list