Society of Robots - Robot Forum

Software => Software => Topic started by: izua on June 28, 2008, 08:04:34 AM

Title: one wire tutorial
Post by: izua on June 28, 2008, 08:04:34 AM
I am looking for a good one wire tutorial or some commented code. I haven't been able to find any.
I have a bunch of 18B20 temp sensors, i want to toy around with em.

Anyone knows a link to such a resource?
Title: Re: one wire tutorial
Post by: krich on June 29, 2008, 12:04:03 AM
Hey izua, try this:

AVR Tutor - Home (http://www.avrtutor.com/tutorial/global/home.php)

Haven't read the whole thing, but there's at least three sections that talk about not only 1-Wire, but also the 18B20 sensor.

I'm jealous, I want some of those to play with too.   :D

Good luck!
Title: Re: one wire tutorial
Post by: izua on June 29, 2008, 01:03:32 AM
They have a theorethical 0.0625 (yes, .0625!) maximum accuracy (albeit, a conversion takes 0.75 sec). I got all of mine from MAXIM. They are pretty generous with the samples. I'm thinking of using them for some homemade hydroponics.

edit: hmm, that's not exactly what I'm looking for. It says nothing about multiple slaves on the bus, the required rom enumeration. i know the theory, but it's practice that kills. maybe i'll write a tute when i'll understand this.