I am building a sensor cicuit, 2 sensors. Simple sensor with Vdd, GND and Vout. The too sensor are read by my microchip. but the voltage out of the two sensor are not identical under the same conditions. What is the best way to make them eual. I tried using a 3 legged potentiometer (voltage divider). I did not work well, one of the value with the highest resistance stays at the same output no mater what input (light). maybe just putting one resistor on one of the output sensor. Any better ways ? thanks ken
I tried that , I substracted a value (in decimal) to the highest input port to make them equal. but when the values get low lighting, the higher of the two gives me 65555 on myLCD screen
The sensor's individual response curves may not differ by only a constant value. You may have to calibrate them over their operating range and do a suitable curve fit to have them match over that range.
HI well thats what I was trying to do , calibrate that chip using resistance on the output or in the micro chip. I just thought that if I decrease the input voltage of the sensor that gives the highest output, I might be able to get a conveniant output. I also have to add a low pass filter, there are a lot of noise and the output on each fluctuates about 0.2volt
Lets get back to the origin of the signals, to figure out what correction math might bring them into similar calibration (if a simple offset isn't appropriate).
Yes, how about putting the voltage divider at the input supply. ?
Here is the chip I am using:
formatting link
Also I saw about 3%-4% of ripple (noise). Maybe just adding a small capacitor with a resistance in parallel (from Vout to ground)? or would a feedback op-amp low pass filter be a better idea?
The output should be fairly independent of the exact supply voltage, so this is probably not a very good method.
Are you sure your light source is perfectly stable (no ripple)?
An RC could be used as a low pass filter. A voltage divider that has a small range (100% to 80% of input signal) followed by an RC might also work. This device should have a pretty good zero output for zero signal, so variable scaling (zero in equals zero out, regardless of the scale factor) is probably a lot better than variable offset.
The filter's time constant is Rp*C, where Rp is the parallel combination of R1 & R2. R1 & R2 form a simple voltage divider for the DC level of the signal. R2 could be a trimpot; adjust it on one sensor to match the response of the other.
A low-pass filtering op-amp is better, if you can hook one up. Then you could use a trimpot to adjust the DC gains of the two sensors to match each other, in addition to having filter caps.
Question: is your ripple: ... at line frequency? ... twice the line frequency? ... some other frequency? ... just randomly fluctuating, not at any particular frequency?
I added a capacitor and a resistor in parallel at the output like you said and it solved the problem. I already had a a resistor their. The max current these chip can take is about 20ma for input anyway. I also has some back ac lighting,weak but still affected the circuit, but when in total darkness and just the white led, it works good. thanks
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.