Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 11:55:31 11:55


Login with username, password and session length


Pages: [1]
Print
Author Topic: about temperature measurement  (Read 3437 times)
0 Members and 1 Guest are viewing this topic.
gabriel
Active Member
***
Offline Offline

Posts: 134

Thank You
-Given: 283
-Receive: 59


« 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












Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 539
-Receive: 408



« Reply #1 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.
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
rtm
Junior Member
**
Offline Offline

Posts: 53

Thank You
-Given: 90
-Receive: 71


a.k.a. klug


« Reply #2 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.
Logged
PICker
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 207
-Receive: 109


« Reply #3 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
Logged
gabriel
Active Member
***
Offline Offline

Posts: 134

Thank You
-Given: 283
-Receive: 59


« Reply #4 on: September 08, 2017, 11:08:46 11:08 »

thanks for reply.
Do you think that DS18B20 can be connected 30 meters away?
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 539
-Receive: 408



« Reply #5 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
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-Receive: 81



« Reply #6 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.
Logged

Give a right name to a right game and play it right
gabriel
Active Member
***
Offline Offline

Posts: 134

Thank You
-Given: 283
-Receive: 59


« Reply #7 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
Logged
towlerg
Senior Member
****
Offline Offline

Posts: 263

Thank You
-Given: 474
-Receive: 104

What is this for?


« Reply #8 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.
« Last Edit: September 09, 2017, 02:38:17 14:38 by towlerg » Logged

Win 7 Ult x64 SP1 on HP2570p
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC