Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22)
+--- Thread: [Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code (/showthread.php?tid=1862)



[Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - KinCony Support - 04-25-2022

[Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code

Code:
/*KC868-A6 DS18B20 CODE*/
#include <DS18B20.h>
DS18B20 ds1(32);  //channel-1-DS18b20
DS18B20 ds2(33);  //channel-2-DS18b20

void setup()
{
  Serial.begin(115200);
}

void loop()
{
  Serial.print("Temperature1:");
  Serial.print(ds1.getTempC());
  Serial.print(" C /");
  delay(500);
  Serial.print("Temperature2:");
  Serial.print(ds2.getTempC());
  Serial.print(" C /\n");
  delay(500); 
}

.zip   4.ds18b20.zip (Size: 674 bytes / Downloads: 306)



RE: [Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - fra6767ita - 05-07-2023

Hello, I use sensor ds18b20 with Tasmota, but did not work.
how is it connected? and which pin to set? Thank you


RE: [Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - admin - 05-08-2023

here are "IO-1" and "IO-2" with KC868-A6, that can connect to DS18B20
here is photo
   


RE: [Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - fra6767ita - 05-08-2023

(05-08-2023, 12:55 AM)admin Wrote: here are "IO-1" and "IO-2" with KC868-A6, that can connect to DS18B20
here is photo

Thank you , now it  work.

best wishes


RE: [Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code - admin - 05-08-2023

ok, good.