Challenging Projects - IR Object Detector with Transformerless Power Supply
Hi there,
I am wondering if a project as in below circuit can be done.
With the help of mister_e, I have already, well mostly mister_e, done the controlling of TRIAC as an ON/OFF gate to the load (motor/heater) using transformerless power supply.
If I want to add an IR detection feature to this circuit, then I need to assign a frequency to the IR LED, and read it through the photo transistor (not by traditional 38Khz or 56Khz IR detector modules).
Thus, it becomes challenging while there is an ongoing sensitive interrupt process for the firing of TRIAC.
I am thinking, since the code is being run by serial execution, IR LED will never be encoding at the same time with detection of photo transistor. Thus, I put photo transistor to Timer1 module in counter mode. So that, it can count in the background once the code starts encoding the IR LED.
I would appreciate comments on this circuit.
Doable?
------------------------------
<img src="http://img10.picsplace.to/18/IR2.GIF" alt="Image Hosting by PicsPlace.to" >
------------------------------
Hope I am readable this time
Hi,
You know when you have turned on the LED, so you know technically when to check for a (0) in your app. So the frequency doesn't make any sense. Now there can be two conditions :
1. The LED is ON and you sense it via the photo
2. The LED is not ON still you sense by the photo (ambient light)
Use IR Filter to obviate the 2nd Issue now say you find the photo on against a LED ON then check it in a loop:
Turn off the LED and the photo should be OFF if not then ambient light (not likely if taken care of)
Turn On the LED and check again , do this turn on-off thing in a loop and if the condition satisfies reset your internal "off" counter. If you detect no object then turn off the TRIAC after the specified delay has elapsed.
You won't be doing Phase Angle Control I suppose so should not be very complicated. If doing a phase angle control then a little bit more complex. Choose the zero cross to set your fire angle and object detection. Cause anyway you would be firing the TRIAC a little later...
P.S. - For a cheap IR filter for your test , expose a colour film for about a minute in normal fluroscent light develop it and the black negative is your I.R. Filter. Read somewhere on the web never tested.