I'm trying to build a device to measure the obscuration of an IR signal in a free air chamber that will be a few meters accross, between 10 - 50m aprox. This will be used to determine if there are particles in the chamber (dust, fumes, smoke, etc). The chamber will be inside so no direct sunlight but it will be exposed to artificial lighting (fluorecent and incandescent are the most concerning to me).
The device will have a high power 850nm IR LED emitter and a photodiode receiver on one side in the same enclosure, and a reflector on the other side of the chamber.
The IR LED will emit a modulated square wave @ 1kHz with a 10% duty cycle, the light will travel back and forth through the chamber (by reflecting on the reflector) and the receiver will reconstruct the signal and measure the frequency and the amplitude to see how much it has degraded (by obscuration) - this can be done with a microcontroller.
Both the Tx LED and Rx photodiode are optically shielded inside dark cones with NIR band-pass filtered lenses on the optics so visible light is not much of a concern.
I've put together a simple receiver circuit composed of a BPW34 photodiode and an AC coupled TIA followed by a simple HPF:
Simulations of this circuit have been successful but now I'm having a hard time determining the next building blocks to achieve the above goal, whilst rejecting ambient noise. I've looked at envelope detection and synchronous detection but I think these are more for analogue signals, not so much for reconstructing a digital square wave.
If anyone could help point me in the right direction that would be great, thank you in advanced!
