Sonsivri

Electronics => Projects => Topic started by: gabriel on September 07, 2017, 08:07:57 20:07



Title: about temperature measurement
Post by: gabriel on September 07, 2017, 08:07:57 20:07
Hello:
I need to measure moderate temperatures between 5°C and 50°C and do some commands with a microcontroller. I founded that LM35 is the most appropriate, (can be directly connected to the micro without additional components, linear, etc...), some colleagues advised me to use NTC thermistors, and said that it's most widely used. I think that thermistors should be mounted in a voltage divider and then do some corrections in program, so not better than LM35. For this range of temperature, is there any advantages for using thermistors instead of LM35?
other question: some sensors should be remotely mounted far from the board (about 30 meters), is there any precaution for using LM35 at that distance?

Any help is appreciated.

Thank you














Title: Re: about temperature measurement
Post by: Wizpic on September 07, 2017, 08:36:03 20:36
30 Meters I would say yes, major noise issue.
I don't like LM35.  may be over kill but I would use a DS18B20 or DHT22 with an NRF24L01 using Arduino and transmit the data rather than using 30 meters of cable, Or even use an LM35 with the same set up if you wanted to.


Title: Re: about temperature measurement
Post by: rtm on September 07, 2017, 09:04:07 21:04
I've used both LM35 and DS18B20. I can say that DS18B20 is better choice for me. I had a lot of problems with noises for LM35, so it took additional efforts to solve it in program. Using of DS18B20 is much simpler, and program for its digital 1-wire port is not so complicated at all.


Title: Re: about temperature measurement
Post by: PICker on September 07, 2017, 09:23:29 21:23
Please, read this appnote from Microchip, you can order free samples...
http://ww1.microchip.com/downloads/en/DeviceDoc/21895a.pdf


Title: Re: about temperature measurement
Post by: gabriel on September 08, 2017, 11:08:46 11:08
thanks for reply.
Do you think that DS18B20 can be connected 30 meters away?


Title: Re: about temperature measurement
Post by: Wizpic on September 08, 2017, 12:34:10 12:34

You really should not exceed about 1.5 meters tops. This is similar to the i2c bus length; if you exceed about one meter then you will have intermittent problems due to capacitance issues and|or noise. words to the wise


Title: Re: about temperature measurement
Post by: Signal on September 08, 2017, 02:37:51 14:37
Do you think that DS18B20 can be connected 30 meters away?
According to https://www.maximintegrated.com/en/app-notes/index.mvp/id/148 30 meters should not be a problem.
Some discussions from other forums reported a fully successful 30 m connections with DS18B20 without special master drivers.


Title: Re: about temperature measurement
Post by: gabriel on September 08, 2017, 08:43:27 20:43
searching wikipedia for "one wire", I found:
Quote
Up to 300 meter long buses consisting of simple twisted pair telephone cable have been tested by the manufacturer. It will however require adjustment of pull-up resistances from 5 to 1 kΩ.
interesting


Title: Re: about temperature measurement
Post by: towlerg on September 09, 2017, 02:33:15 14:33
Although both I2C and Dallas single wire are both open collector so probably less sensitive to noise than say SPI, I suspect that the inherent simplicity of Dallas single wire is even less sensitive than I2C.

If you have an open collector GPIO on your ucontroller,  the 18b20 will work nicely on it.