Pages: [1]   Go Down
Author Topic: 1-wire  (Read 1455 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a bunch of these 1-wire temp sensors from a dead PIC project.  


Any ideas on how I may interface them to one of the Arduino boards

DS18B20 is the temp sensor


Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hmm, one wire?  they'd have to have two to actually do anything, and then they'd be thermistors, in which case they'd be variable resistors.

1. measure their resistance at room temperature.
2.  find a fixed resistor with that measured value (or something near it)

3. connect one between VCC and an analog-in on the Arduino
4.  connect the fixed resistor between analog-in and ground.

This makes a voltage divider based on the value of your thermistor, and the numbers from reading the analog in will have a linear relationship to temperature.  you just have to find out what that relationship is and write a function to translate.  I keep everything integer in my thermistor readings to keep things simple.  Thus 989 means 98.9 degrees Fahrenheit, etc.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1-wire is a bus networking system from Dallas semiconductor.

it is a thermistor attached to a its own A/D converter,

http://www.maxim-ic.com/1-Wire.cfm  


and the sensor I was talking about is here

http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2812
Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i'd save those for a non-Arduino project, since the A/D would be wasted on it.  it's too easy to just use a cheap thermistor.  
Logged

Hurley, NY
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

unless, of course, you're making a generic USB-to-one-wire interface with an Arduino board.  that would be a useful gizmo.  i imagine the protocol is some sort of serial thing with device addressing, sort of like usb but half-duplex.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The rreason they are so very very useful is that several dozen or even hundreds can exist on a single digital pin, and they can be placed any distance away from the processor (within reason) and not suffer any ill effects from the buildup in wire resistance.    

So instead of 4 or 5 analog thermistors connected near to the board you can have 100 and never use more than 1 digital pin to do it.


each sensor is individually addressable using its 64bit address


Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 91
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



Dunno about the software part of your question. I guess you need to code the 1 wire protocol by hand.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks   smiley


I have a thread running in the software interface section now.

Logged

Pages: [1]   Go Up
Jump to: