u can connect ir sensor in adc and as well as in digital pin........
if u interfacing a sensor first u have to check whether it works in digital are analog then u can procede........
then if its analog device then u have to find minimum and maximum value of it..... if its digital device no problem only logic 1(high) and logic (low)
algorithm in digital:
define controller pin as input if sensor is detected then it shows logic 1(high) u decide what operation to do...... if ir not detected then its shows logic 0(low) u decide what operation to do.......
algorithm in analog:
for analog u have to find minimum and max value using adc module
then u can write up in same procedure as digital ...minimum value is low and maximum value is high.......
try to write program of your own if not works then we can debug it why not working
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum