Hello,
I am a relative newcomer to Arduino, but after Blink, decided to go for OneWire as I have some potential applications for this technology.
There are many and varied examples of OneWire code out there, including examples in Arduino 0022. My problem has been to find a published sketch that works out of the box. I downloaded the DallasTemp and Onewire libraries from sites like PJRC and milesburton, and finally got some of these to work, for one device at least. After shuffling around some of these published libraries, it was a disappointment to find that the sketches that did work, suddenly didn't, and came up with errors like "OneWire does not name a type" or similar. I am coming to the conclusion that there are several versions of DallasTemp and OneWire libraries around, and if the wrong one is in the 0022 library folder, then nothing works.
Is there a universal solution to this i.e. a set of published libraries that work with all the published sketches, or is there a way of organising the libraries so that the right sketch finds the right libraries?
I want to persevere with OneWire, but at this stage I am still reluctant to mess about with library names - I know that there is version 2 of OneWire, so if I renamed this library OneWire2.h and called it as OneWire2 from the sketch. would this work?
A typical example is the OneWire Doghouse sketch from Hacktronics, which doesn't seem to work even when using their versions of DallasTemp and OneWire libraries.
Please forgive any misspellings or naivety, and at this stage, suggestions like use LM35 are not an option as I need the analogues for something else.
Thanks