Electronic – IR sensor for line follower not working in day light

infraredphotodiodeproximity-sensor

I m using IR sensor ir tx and photodiode for rx for my line follower bot it's working in normal light and night time but when put in sun light it's not working all sensor showing high ouyput. Also I find out that sun light have high wavelength so that photo diode shows always high signal.
Is that any other way to work line follower in day light time?

enter image description here

Best Answer

You guessed it, sunlight has a lot of IR which is blinding your sensor. There are two common solutions for this problem:

  1. Put a small cap on the sensor to provide a shadow.

  2. Modulate your IR signal so that your sensor can detect an IR variation rather than fixed IR level.

For #2, you may want to look for components of IR remotes. There are IR receivers which have signal demodulation built in and there is plenty of IR transmitter circuits which modulate the signal for you. Common modulation frequencies are 38 and 48 kHz.