I have 3 strings of 1wire temp sensors (DS18B20) where each string has 9 sensors on it. If I plug one string into my Arduino, I can read everything fine. I can even splice two strings together and everything is fine. But when I tie all 3 together my sketch says zero devices found. Is there a limit to the number of devices the library supports? I've tried each string by itself and it's fine.
Here's my sketch
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup(void) {
Serial.begin(9600);
Serial.println("Dallas Temperature IC Control Library Demo");
sensors.begin();
}
void loop(void) {
int deviceCount;
sensors.requestTemperatures(); // Send the command to get temperatures
deviceCount = sensors.getDeviceCount();
Serial.print("Found ");
Serial.print(deviceCount);
Serial.println(" devices");
for (int i=0; i < deviceCount; i++)
{
Serial.print("Temperature for Device ");
Serial.print(i);
Serial.print(" is: ");
Serial.print(sensors.getTempFByIndex(i));
Serial.println();
}
Serial.println();
delay(2000);
}