Solved-- I just soldered together a temperature probe that was supposed to meas
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
I am working on a circuit to measure voltage of a battery.· Following a idea I found online I constructed an R/C circuit to be measured by using one of the R/C time objects.· It uses 660K Ohms and a 100K POT that attach to the battery voltage and feed one side of the cap.· The other side of the cap is grounded.· The positive side then is fed to the prop through a 3.3K resistor.· Things seemed fine on the breadboard.· It was a little hard to hold calibration but I thought it just might be a noisy breadboard.·
Now that I have it all soldered on a board it has become apparent that the 'noise' was temperature.· Watching it over time it becam apparent that would slowly decrease the sensed time as it warmed up.· My horror came when I simply cupped my hand over it and watched it drop like a count-down timer.· Bad news, this will be enclosed and within a box where a heat-sinked regulator will be providing heavy 5v output.· It's going to get warm inside.· The really bad news is I need .1v resolution which it will do AT ONE TEMP, but if it's going to drift by .5v depending on the load on the regulator I'm sunk.· I was not expecting that kind of drift.· The parts are standard 5% resistors and some small ceramic caps.· If I keep air flowing over it then it stabilizes, but having a fan running is a non option.
Are there parts I could swap that would be better for this?· Is the design just doomed?· Should I go for bigger caps and smaller resistors?
|3.3K|
|660K|---|100K pot|
BATT V
····················· |
····················· |
····················----···
····················5 nf x 2
····················----
····················· |
····················· |
··················· GND
Post Edited (photomankc) : 8/17/2009 3:14:27 AM GMT
Comments
here is a search from digikey, you can select the parameters and narrow down to what you need. Most of these chips use 1 wire which is very simple to do with the propeller.
Greg
Post Edited (photomankc) : 8/17/2009 1:16:17 AM GMT
'Some' ceramic caps can even be used as a microphone pickup.
Just as an FYI to explain one method... There are many times that temperature or other unwanted characteristics can be introduced to a circuit. One effective method for designing a circuit that is temperature compensated is to build it in duplicate and apply the returned values differentially to one another. This way ambient changes cancel out and your left with an increased signal to noise ratio of what you are trying to detect. In your case one of the dual circuits would have a 'fixed' voltage reference. You take the known reading of the fixed value and compare the amount of error due to temperature. Apply the same amount of 'error' in reverse to the second reading where you are looking for an unknown voltage. You may need to characterize the temperature curve, but once done, it should be consistent.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.