Light Sensor & LCD :: Code & Schematic
Dear All,
My problem is really simple for you guys but not for me as I am a beginner.
My problem is:
I have a light sensor (works as a resistor), a PIC16F84A microcontroller, and LCD like the two of these...
--
| |
--
| |
-- .
If the light in the room increased the value in the LCDs also increases (limit is 0 ~ 99) and vise versa for decrement.
I want a schematic and picbasic code ...
Can anyone help me in this respect?
Thanks in advance,
Munim
not a so simple design ...
Hi, Steve
As a 0-100 scale is expected, ... RCTime function could do it.
Buuuut, the problem is light scale ... it's a logarithmic scale !!!
Sooo.... the input scale must be 0 - 10 000 !!! ( which is the A/D to use, Then ???? )
I think a design around a CA3089 ( or with log response: FM IF systems w/signal stenght indicator make good sonometers ...) could do it easily.
here, a modular 3 1/2 digit std voltmeter could be enough ... as the CA3161/3162 are ... out of my purse !!!
Alain