I am trying to interface ds18b20 with arduino. I have downloaded the dallas temperature libraries but during compilation it is showing some errors in the DallasTemperature.h.
I have taken the code from http://www.hobbytronics.co.uk/ds18b20-arduino.
Some of the errors are as follws:
1.Syntax error due to some brackets ( )
2._onewire not declared anywhere.
Please tell whats the problem or some alternative code.
First of all, with 1 Post and 0 Karma, it is obvious you are a Newbie. Here's a tip; ALWAYS BEGIN YOUR SEARCH FOR A LIBRARY OR CODE EXAMPLES OR ANYTHING ARDUINO RELATED WITH A GOOGLE SEARCH CONTAINING THE KEYWORDS "ARDUINO [SPACE] [SUBJECT]". This will return a search looking something like this:
Then look at the top of the search for a link with the keywords "Arduino Playground", under which you will see a link that looks something like this:
[url=Arduino Playground - HomePage [url=http://(look for these important words in the URL ".arduino.cc/Learning"
Then CLICK on the [Playground] link to go to a page that looks like this: Arduino Playground - HomePage] playground.arduino.cc/Learning/OneWire (look for these important words in the URL ".arduino.cc/Learning"
Then CLICK on the [Playground] link to go to a page that looks like this: Arduino Playground - HomePage] (look for these important words in the URL ".arduino.cc/Learning"
Then CLICK on the [Playground] link to go to a page that looks like this: Arduino Playground - HomePage] playground.arduino.cc/Learning/OneWire (look for these important words in the URL ".arduino.cc/Learning"
Then CLICK on the [Playground] link to go to a page that looks like this: Arduino Playground - HomePage
SCROLL DOWN until you see something that looks like this:
The latest version of the library is on Paul Stoffregen's site.
Now this is the important part; NOTE THAT SOME OF THE WORDS ARE "arduino green" (THESE ARE LINKS)
Note the one with the of the Library , like this :
The latest version of the library is on Paul Stoffregen's site.
So why am I telling you this ?
Well, because EVERYTHING ON THE ARDUINO SITE has already been tested and when we do this we know we are not getting garbage. Unless you want to be back here posting a plea for help again , try following the above. It doesn't guarantee you will never have problems, it guarantees you will have fewer UNNECESSARY problems, like the one you have now. I have used the library at the link I recommended and it works. I don't know why you have a problem with the library you are using because I
don't think I have tried it.