MrDEB
Well-Known Member
Is this really wrong or ??
I tried setting up portB5 as input for the PIR which upon motion outputs 3.3v
Can't get B5 port to setup as an input. Tried several things but it apparently conflicts with my present code. I read 4.8v on B5 constantly.
So I combined the PIR output with my Cds cell and input to A0 as an ADC sample.
Seems to work just fine but am led to believe it might not be right or done correctly?
Don't get me wrong, the source is very knowledgeable but
WHY? might it be wrong.
Here is the schematic as well as the LT spice simulation results
the section in question is the PIR/Cds circuit.
I tried setting up portB5 as input for the PIR which upon motion outputs 3.3v
Can't get B5 port to setup as an input. Tried several things but it apparently conflicts with my present code. I read 4.8v on B5 constantly.
So I combined the PIR output with my Cds cell and input to A0 as an ADC sample.
Seems to work just fine but am led to believe it might not be right or done correctly?
Don't get me wrong, the source is very knowledgeable but
WHY? might it be wrong.
Here is the schematic as well as the LT spice simulation results
the section in question is the PIR/Cds circuit.