Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: nckspec on March 30, 2008, 06:49:25 PM

Title: infrared detector/emitter
Post by: nckspec on March 30, 2008, 06:49:25 PM
when you are reading the output through your microcontroller for object avoidence would you just use code like : if porta=0 then go straight else reverse). I mean would it matter what it outputs or would you write the code based on if it ouputs anything.
Title: Re: infrared detector/emitter
Post by: superchiku on March 31, 2008, 06:15:50 AM
plzz post a little clearly

and what do u mean by portd=0???????????
Title: Re: infrared detector/emitter
Post by: nckspec on March 31, 2008, 03:06:26 PM
sorry i meant does your controller have to know the exact voltages your detector sends to act upon avoiding an obstacle
Title: Re: infrared detector/emitter
Post by: airman00 on March 31, 2008, 05:34:41 PM
sorry i meant does your controller have to know the exact voltages your detector sends to act upon avoiding an obstacle

analog sensors give a value within a certain range ( you use Analog to Digital conversion)
digital sensors tell you if  a value of 0 or 1

search google for more details, and if any other questions ill answer