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" >
------------------------------
Last edited by sayzer; - 14th October 2006 at 21:45.
Reason: Typo Mistake: 0.047 => 0.47
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks