PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
579 stars 382 forks source link

[Question]: DS18S20 Sensor send Convertion ready? #89

Closed hasenradball closed 4 years ago

hasenradball commented 4 years ago

Hello Iam using the OneWire Library and I recognized that the delay after Convertion Request is set to fix values. But the Ds18S20 send the ConvertionReady Information. How can use or get this information?

Can I do it like this:

ds.reset();
ds.select(addr);
ds.write(0x44, 1);        // start conversion, with parasite power on at the end

/* Read Convertion ready info */
while(ds.read != 1) yield();

/* then not needed anymore  */
//delay(1000);     // maybe 750ms is enough, maybe not
// we might do a ds.depower() here, but the reset will take care of it.

present = ds.reset();
ds.select(addr);    
ds.write(0xBE);         // Read Scratchpad

Serial.print("  Data = ");
Serial.print(present, HEX);
PaulStoffregen commented 4 years ago

This is the wrong place to ask questions. The issue tracker is for reporting software defects.

Please use the forum for questions.

hasenradball commented 4 years ago

Hi Do you have a link for the Forum?

Mit freundlichen Grüßen

Frank Häfele

Am 06.02.2020 um 16:02 schrieb Paul Stoffregen notifications@github.com:

 This is the wrong place to ask questions. The issue tracker is for reporting software defects.

Please use the forum for questions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Testato commented 4 years ago

He mean Arduino forum