Lots of Temperature sensors to monitor
prof_braino
Posts: 4,313
The request is to monitor temperature for a composting system.
EDIT - Originally I asked about THERMISTORS. Now it seems I should also consider other sensor options.
There would be 10 to 30 locations to monitor. They might be as close as 1 meter or as far as several meters.
I arbitrarily picked up 10k thermistors, but could use 100k or anything else if it was more appropriate.
Initially I though to use sigma delta directly from prop pins, but considering the distance this might not be an optimal solution.
Also, we might have to use pins for other purposes; other sensors, control, etc. So there is motivation to use lest possible pins for temperature monitoring.
I started looking at 8 channel ADC chips, but I don't know about these yet.
Any suggestions/recommendations?
EDIT - Originally I asked about THERMISTORS. Now it seems I should also consider other sensor options.
There would be 10 to 30 locations to monitor. They might be as close as 1 meter or as far as several meters.
I arbitrarily picked up 10k thermistors, but could use 100k or anything else if it was more appropriate.
Initially I though to use sigma delta directly from prop pins, but considering the distance this might not be an optimal solution.
Also, we might have to use pins for other purposes; other sensors, control, etc. So there is motivation to use lest possible pins for temperature monitoring.
I started looking at 8 channel ADC chips, but I don't know about these yet.
Any suggestions/recommendations?
Comments
I've made rugged probes from the LM34 (10mV/°F) and from the AD592 (1µA/K), and have DIY instructions on my web site. Those do take an ADC and multiplexer.
The sensor cost is higher, but you gain the benefit of being able to run all the devices from a single buss.
The cost savings in wire and connectors should significantly offset the higher sensor cost.
He is some info on multiple devices on long cables:
http://www.maximintegrated.com/app-notes/index.mvp/id/148
C.W.
DS18B20 is $4.25 per sensor. So $42 for 10 sensors.
http://www.ebay.com/itm/10pcs-LM34DZ-LM34-Precision-Fahrenheit-temp-sensors-/280689647505 $19.35
http://www.ebay.com/itm/AD592AN-AD592-Temperature-Transducer-3-pin-TO-92-IC-/200330338679 $7.95 * 10 = $79
Total $100
So the MCP3208 ADC from http://forums.parallax.com/showthread.php/137657-help-with-8-channel-ADC-and-BS2-interface
and the http://www.parallax.com/product/604-00062 MCP3202,3204,and 3208
would not be a good fit for this?
Is it because the wires would be too long?
I had expect the answer to be "Two MCP3208 will easily cover this". Good thing I checked!
I would use the very inexpensive (< 50 c) TI430 chips as a sensor node. They have an A/D converter built in, and draw almost no power. You could then "roll your own" 1Wire-like comms system at your own preferred data rate that then also powers the sensors. Each node has its own unique device address. The Master ontroller/interrigator of course is a Prop. I have done this for industrial applications, and it works great.
Cheers,
Peter (pjv)
Prof, There is nothing wrong with thermistors. You can get decent accuracy at low cost. Thermistors are best served by a ratiometric ADC, that is, the excitation voltage to the thermistor is the same as the reference for the ADC. You might come up with a scheme that uses only one ADC and one reference resistor, and switches in each thermistor in turn. However, on the down side, there is potential for noise pickup on long wires, and shielding adds to cost, and there are bound to be headaches with marginal connectors and such. Burial in compost will call for rugged packaging!
You could use the LM331 to convert voltage into frequency for transmission over distance.. and then a mutiplexed Propeller 1 could do it.
Famous for the MSP430 LaunchPad, which initially sold for $4.30
One-wire solution (10 pieces, $21.87 including shipping): http://www.ebay.com/itm/10pcs-DS18B20-Waterproof-Digital-Thermal-Probe-or-Sensor-DS18B20-NEW-/121111705251?pt=LH_DefaultDomain_0&hash=item1c32d1f6a3 AFAIK: Each sensor can have its own address, so only 1 I/O may be needed as a bus for all sensors...
Check out this demo from the OBEX: http://obex.parallax.com/object/306
I'm testing several of these in a weather station... No ADC needed!
dgately
-Phil
If its no trouble I would appreciate it.
Thanks for this. It is also a contenter.
I'm on a steep learning curve here...
Actually two MCP3208's will work well, but you'll want to use 1K thermistors and 0.1% resistors with a low temperature coefficent to load each thermistor. (the LTC1863 is another nice ADC) The low resistance will reduce the effect of ADC loading and reduce the effect of any stray leakage currents from wet wires/connectors. The precision resistors with low temperature coefficient will insure that you're only measuring the temperature of the sensor. I'd also put a 0.1uF or bigger capacitor on each input to the ADC. This will function as an anti-aliasing filter and further reduce error due to ADC loading.
I've used an identical circuit to get 0.1 degree Celsius precision right off the ADC and 0.01 degree Celsius precision after oversampling and averaging. (i.e. capture 64x faster and average) At speeds significant to temperature measurement, I'd expect twisted pair to be enough to keep the temperature signals clean for 5-10 meters. Assuming, the wet compost doesn't cause a few micro-amps of leakage between the thermistor wires.
Marty
I have a couple of MSP-EXP430G2 Launch pad kits they sent out. But I never did get around to installing the dev tools. It may turn out to be time to get started with these.
Hey! Thanks! I thought there would be some soultion like this, thanks for the detail. Of course the thermistors I bought turn out to be the wrong value, but they were cheap and at least got me to start my investigation.
Now I just have to go through and figure what the cost and effort trade off are for each suggestion.
Thanks to contributors for all you insights!
You could use the prop to drive the transistors directly if V+ is 3.3V and you have the pins to spare, otherwise you could use a '595.
Using a 555 would help against noise if the source oscillation can be kept local to the thermistor..... combining two thermistors into one 555 circuit is also unique, but it doesn't solve having a ratiometric output.... which was mentioned earlier in the thread.
Using a schmitt trigger to generate a PWM signal locally to each thermistor would allow a ratiometric response at least to a known resistor value.
In the schematic below, the 74HC132 could be replaced with just about any other schmitt trigger gate. In place of the POT, a thermistor would be placed on one half of the wiper, while a fixed 10k (or that matching the Thermistor at 25 Deg C) would be placed on the other half of the wiper. The result is a square wave with 50/50 duty cycle at room temp, but a disproportionate duty cycle above and below 25 Deg C. The resulting PWM, can then be multiplexed further down the line into a microprocessor. The ratiometric approach also helps to negate against ambient temperature changes that may affect the oscillator and component tolerances.
http://web.archive.org/web/19991012070557/http://ionet.net/~bschwabe/BasicStampII/pwm.gif
Here is a link to using a single 555 for PWM ... http://www.reuk.co.uk/LED-Dimmer-Circuit.htm ... For this application however the 50K pot would have the Thermistor on one side of the wiper leg, and a fixed 10k resistor on the other side of the wiper leg.
The main concern is having the analog lines line correct? What about using a cheap ADC chip with one or two thermistors and running the SPI lines back to the Prop? I think the SPI signals should be good for at least a few meters.
If 10-bits is enough precision, the MCP3002 could be used. It's $2.07 in qty 10. I personally like the MCP3002. It doesn't seem to mind high impedance sources as much as the MCP3208.
Edit: I think I'm late to the game. I think this sort of approach as already been mentioned.
Edit again: The MCP3002 could share the data and clock pins on the Prop. Each chip would need its own select line. If one were running out of pins, then the trick used by the C3 could be used to cycle through the select pins.
"What about using a cheap ADC chip with one or two thermistors and running the SPI lines back to the Prop?" - Yes, that will work also, but the PWM still keeps the number of signal lines down .... unless you go 1-wire
Nice circuit. I think if Fets with less than a 0.1 ohm Rds(on) were used for the row select and op-amp buffers added between the thermistors and the MCP3208 that circuit should do 0.1 [C] precision as well. I suspect cross talk via the row select transistors and the MCP3208's multiplexed sampling capacitor killed the precision. The main remaining weakness is aliasing. And aliasing can be minimized with a fast scan rate and a software anti-aliasing filter. (aka just average a bunch of samples)
Marty
One-wire temperature sensors were proven useful over a decade ago in temperature monitoring at multiple locations in grain silos. They have the ability to provide both the data and the distances.
If you insist on using thermistors, you have to provide the additional distance communications services and that likely means a microcontroller and a board at the distance with associated power supply.
I suspect that one-wire is really the only cost effective solution, and it would work well with a Propeller managing the network.
Essentially, the NON selected thermistors are shunting across the inputs to the AtoD.
Or am I missing something here?
Duane J
The requirement is temperature monitoring over reasonable distance, in this case about a couple meters. The process being monitored is some kind of composting, so the accuracy should be degrees or tenths of a degree; the frequency should be from at least once per second to once per minute. There should be minimum 8 sensors. Minimum cost and effort, maximum reliability, are the only other factors at this point.
For now I will eliminate the requirements for "fewest pins", "more than two meters", "up to 28 sensors", and "allow other devices on unused prop pins". These can be brought back as requirements after the basic temperature measurement is successful.
Thanks for all the input so far!