Transmitting PHONE LED (Flash) with certain frequency?

view full story

http://forum.allaboutcircuits.com – Hello everyone! I have started a project making an electrical security system. I was thinking one way to "Unlock" the security lock is to shine phone's flash with certain frequency and it will unlock that particular lock. To achieve this, I was thinking of just using IR transmitting and receiving techniques, however I realized it cannot be done when I start introducing a certain pattern of flash. I am currently fiddling with a PIC trial and erroring the ways this system could come to life. Do you have any suggestions I could take? any advises will be appreciated! Than (Embedded)