I'm design micromouse sensors (topdown), as the maze is in black lines on white background (not walls).
Currently my circuit is very simple.
However, as my friend suggests I should filter out ambient light, and have no clue about it.
Unfortunately that wouldn't work, the circuit only provides a high or low logic output.
You could try fitting an IR filter over the phototransistor, this will reduce visible light interference. But the best way is to modulate the IR LED, and detect the modulation after the phototransistor - which is how remote controls work, to avoid interference from ambient light.
some suggest pulsing the infrared transmitter ( to save the power instead of always transmitting). Every time we enable the transmitter, wait for a while and read in from the receiver side. At the receiver put a high pass filter to filter out ambient light. I'm not sure how this works, and how to implement it.. Is it that for high pass filter just put a RC circuit ?
No, pulsing transmitter is not only to save pwr. It's to make a frequency filter. If you transmit all the time, and outdoor, you may get noises from sunlight, or other IR sources, heats... You transmit at high frequency, you will recieve the right signal. They used to use about 40KHz for IR tx and rx.
My connection is the same as above, but at the transmitter side, instead of connecting to GND, i connect to clock.
At the other side, I measure voltage before going through filter.
However as clock frequency increases, p-p voltage measured decreases, and only reach max 5V when about 1Khz clock. Waveform at receiver also is not square.
Any thing wrong with my circuit?