Hello guys.
Would it be possible to make an LDR controlled dimmer for LEDs with adjustable offset and span (gain) ?
I got an LDR that goes from daylight (55ohm) to total darkness (2Mohm+), more specifivly its a NORP12.
So I want it to work like this: at daylight output of the circut is 4.5V, and in total darkness output is 500mV. These two values need to be adjustable.
I have been fiddling around with this alot lately. Beem trying with a transistor circut and opamp summer. Also tried with a regular inverting opamp where I just adjusted the virtual ground, but whatever I do, offset and span keep affecting eachother so it gets pretty difficult to adjust.
Any help would be awesome. Even if its just to point in a direction where I can read up on something like this.
Would it be possible to make an LDR controlled dimmer for LEDs with adjustable offset and span (gain) ?
I got an LDR that goes from daylight (55ohm) to total darkness (2Mohm+), more specifivly its a NORP12.
So I want it to work like this: at daylight output of the circut is 4.5V, and in total darkness output is 500mV. These two values need to be adjustable.
I have been fiddling around with this alot lately. Beem trying with a transistor circut and opamp summer. Also tried with a regular inverting opamp where I just adjusted the virtual ground, but whatever I do, offset and span keep affecting eachother so it gets pretty difficult to adjust.
Any help would be awesome. Even if its just to point in a direction where I can read up on something like this.