Loading...
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 08:29:57 am
|
Arduino Forum
::
Forum 2005-2010 (read only)
::
Hardware
::
Interfacing
:: 1-wire
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: 1-wire (Read 596 times)
0 Members and 1 Guest are viewing this topic.
cgriffin
0
Offline
Newbie
Karma: 0
Posts: 12
1-wire
«
on:
October 22, 2006, 11:49:49 am »
Bigger
Smaller
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
bigfun
Hurley, NY
Offline
Jr. Member
Karma: 0
Posts: 77
Re: 1-wire
«
Reply #1 on:
October 22, 2006, 12:52:17 pm »
Bigger
Smaller
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
cgriffin
0
Offline
Newbie
Karma: 0
Posts: 12
Re: 1-wire
«
Reply #2 on:
October 22, 2006, 01:31:34 pm »
Bigger
Smaller
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
bigfun
Hurley, NY
Offline
Jr. Member
Karma: 0
Posts: 77
Re: 1-wire
«
Reply #3 on:
October 23, 2006, 01:01:27 pm »
Bigger
Smaller
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
bigfun
Hurley, NY
Offline
Jr. Member
Karma: 0
Posts: 77
Re: 1-wire
«
Reply #4 on:
October 23, 2006, 01:04:28 pm »
Bigger
Smaller
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
cgriffin
0
Offline
Newbie
Karma: 0
Posts: 12
Re: 1-wire
«
Reply #5 on:
October 23, 2006, 01:22:22 pm »
Bigger
Smaller
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
brainfart
0
Offline
Jr. Member
Karma: 0
Posts: 91
Re: 1-wire
«
Reply #6 on:
October 23, 2006, 05:52:30 pm »
Bigger
Smaller
Reset
Dunno about the software part of your question. I guess you need to code the 1 wire protocol by hand.
Logged
cgriffin
0
Offline
Newbie
Karma: 0
Posts: 12
Re: 1-wire
«
Reply #7 on:
October 23, 2006, 06:16:15 pm »
Bigger
Smaller
Reset
Thanks
I have a thread running in the software interface section now.
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Forum 2005-2010 (read only)
::
Hardware
::
Interfacing
:: 1-wire
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...