The day started well
My Nuelectronics shield arrived so time to look a bit more at the Arduino. As an aside I will be teaching an instrumentation course in the next few weeks and have implimented a thermister based HalFBee PIC sensor using two look up tables. I will do the same with a PT1000 sensor in a week or so. I know that some of you will think why bother when there are DS18B20 and 18S20 ICs easily available but thermistors are cheaper and some come with decent mounting systems.
Anyway I downloaded the One-wire Arduino Library from
http://www.pjrc.com/teensy/td_libs_OneWire.html and think I have installed and complled the example correctly (for DS18S20s on Pin 10). This compiles and links to 4038 Bytes.
I have a working DS18S20 and can see it with my USB9097 but when I plug into the Arduino setup in either powereed and parasitic mode it is not seen. and I continually get "No more addresses.\n" on my serial monitor. This is the error if no devices are found.
Am I doing anything obvious wrong?
Segment of code attached
#include <OneWire.h>
/* DS18S20 Temperature chip i/o */
OneWire ds(10); // on pin 10
void setup(void) {
Serial.begin(9600);
}
void loop(void) {
byte i;
byte present = 0;
byte data[12];
byte addr[8];
if ( !ds.search(addr)) {
Serial.print("No more addresses.\n");
ds.reset_search();
delay(250);
return;
}