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
Didn't find your answer? Ask the community — no account required.
J
John Popelish
Software.
L
lerameur
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
k
G
Greg Neill
two
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.
L
lerameur
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
k
Greg Neill wrote:
J
John Popelish
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).
What kind of sensors are these?
R
redbelly
IF the problem is from different sensitivity, you could try putting a voltage divider on the sensor output that gives the larger signal.
The resistance of the divider should be:
Large enough so that it does not alter the sensor output appreciably, and
Small enough so that the microchip does not alter it's output appreciably.
Mark
L
lerameur
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?
k
J
John Popelish
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.
R
redbelly
lerameur wrote:
It really needs to go on the output voltage.
Nice. That 8 Meg resistor makes it pretty sensitive.
A simple way to both have a low-pass filter and make adjustments to the DC signal would be to put this on the output of your sensor:
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?
Mark
L
lerameur
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
ken
R
redbelly
You're welcome ... and good luck.
Mark
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.