Hi,
today I had some free time and I modify my circuit, and now I have 2 sensors connected on same wire and a 3K resistor.
I am able to discover all 13 sensors - that's good, but now I have to read all 7 pins (bus) with different ROM address on each bus.
can you please advice me how should I do that?
#define one_wire_bus_pin2 2
#define one_wire_bus_pin3 3
OneWire oneWire(ONE_WIRE_BUS_PIN2); {
DeviceAddress Probe01 = { 0x28, 0xFF, 0xF2, 0x4E, 0x69, 0x14, 0x04, 0x05 };
DeviceAddress Probe02 = { 0x28, 0xFF, 0xF2, 0x4E, 0x69, 0x14, 0x04, 0x06 };
}
OneWire oneWire(ONE_WIRE_BUS_PIN3);{
DeviceAddress Probe03 = { 0x28, 0xFF, 0xF2, 0x4E, 0x69, 0x14, 0x04, 0x07 };
DeviceAddress Probe04 = { 0x28, 0xFF, 0xF2, 0x4E, 0x69, 0x14, 0x04, 0x08 };
}
void setup(){
sensors.setResolution(Probe01, 10);
sensors.setResolution(Probe02, 10);
sensors.setResolution(Probe03, 10);
sensors.setResolution(Probe04, 10);}
void loop(){
delay(3000);
Serial.println();
Serial.print("Number of Devices found on bus = ");
Serial.println(sensors.getDeviceCount());
Serial.print("Getting temperatures... ");
Serial.println();
// Command all devices on bus to read temperature
sensors.requestTemperatures();
Serial.print("Probe 01 temperature is: ");
printTemperature(Probe01);
Serial.println();
Serial.print("Probe 02 temperature is: ");
printTemperature(Probe02);
Serial.println();
Serial.print("Probe 03 temperature is: ");
printTemperature(Probe03);
Serial.println();
Serial.print("Probe 04 temperature is: ");
printTemperature(Probe04);
Serial.println();}
something like this will work?