I see lots of example online of the OneWire being used to get a DS18B20 DeviceAddress, and others using the OneWire and DallasTemperature libraries where the DeviceAddress is used to identify multiple sensors on the same input pin.
Is it possible to use the DeviceAddress without the DallasTemperature library, with multiple sensors on the same pin ?
I am busy adding some functions to a 3D printer, and wanting to add 3 temperature sensors to the code.
I do have them working in the code with the 2 libraries, but the delay in waiting for a response from the sensors is causing a brief interruption ( pause of around 500ms ) in the printing.
I believe ( if I understand it correctly ) that if I use OneWire, I am able to send the sensor/s a command to get the temperature, and then continue with my main loop, and then after 750 - 1000ms, go back and read the value.
Are you talking about the OneWire Library, or the DallasTemperature library ?
The DallasTemperature library has these methods:
// sets/gets the waitForConversion flag
void setWaitForConversion(bool);
bool getWaitForConversion(void);
// sets/gets the checkForConversion flag
void setCheckForConversion(bool);
bool getCheckForConversion(void);
They look to me like they do what you want.
Set wait to false, then, periodically check for completion.