want to detect daylight so (the PIR triggers the PIC all day long so inserting a timing code to disable the PIR durring daylight) I can disable the PIR.
found two photo transistors but having never worked with them I am asking for suggestions.
the two I am looking at are
Fairchild QSC112 for 18 cents a piece
or
Orasham SFH309F for 42 cents each
cheap usually comes out expensive so I want something that will work.
how to designate an input as high or low durring daylight then determing darkness as a cDs is a light sensitive resistor?
resistance increases? (decreases?) with light.
I need to disable the PIR in daylight
a cDs just changes resistance while a photo transistor changes states.
need to configure a circuit for cDs. already have for photo transistor but maybe the photo transistor will consume more current than a cDs.
I even contemplated solar cells.
another option is the compariator in a PIC. I think the 18F1320 has one?? then just use that.
I recall seeing something about ADC using a PIC.
note I am just a newbi with PICs