Pages: [1]   Go Down
Author Topic: Using the Dallas Tempature Library  (Read 448 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I have a D18B20 tempature sensor that I am trying to use. I downloaded the Dallas Tempature Library from(for some reason can't post the link. I'm using Miles Burton's library linked to from the onewire page in the playground). I've been trying to run the example program and am getting "Invalid CRC". Unfortunately I'm not sure where to look for the problem.

I'm running Arduino - 0015 with a USB Arduino Duemilanove with an Atmega 328 processor. All of this on a mac OS x. I have the sensor connected to the 5v and ground and then the bus wire to port 12 with a 4.7k resistor.
Logged

London
Offline Offline
Sr. Member
****
Karma: 0
Posts: 330
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is that a D18B20 or a DS18B20?

There are loads of posts on the forum on getting the DS18B20 working with the Arduino.
Including example code.

Try searching the forum using google it works better than the forum search tool.
http://www.google.co.uk/search?hl=en&q=site%3Aarduino.cc+DS18B20&btnG=Search&meta=

Gordon
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's a DS18B20. I'm beginning to wonder if I have a bad chip because after reading multiple posts it seems that no one else is having this much trouble getting this sensor to work. Either that or I'm doing something drastically long. (I'm an ME guy not an EE or CS guy...)

Thanks for your help I think I will get a new sensor next time a place an order.
Logged

The Big Smoke
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
Hacking and Slashing
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Bates,

the library was intentionally designed for the DS18B20 with other series playing supporting roles.

Have you made sure you've grounded the other pins and "pulled-up" the data wire appropriately?

What you've said is usually a sign of a badly wired up IC


*re-read your post*
You have 3 pins. ground the outer two. Pull-up the centre (as you are) and connect it to an appropriate pin
« Last Edit: May 31, 2009, 06:40:47 am by TeamMCS » Logged

Pages: [1]   Go Up
Jump to: