Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-A6]--#04-Ds18b20_code
#1
Heart 
[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: 304)
Reply
#2
Hello, I use sensor ds18b20 with Tasmota, but did not work.
how is it connected? and which pin to set? Thank you
Reply
#3
here are "IO-1" and "IO-2" with KC868-A6, that can connect to DS18B20
here is photo
   
Reply
#4
(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
Reply
#5
ok, good.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)