Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect DS18b20 temperature sensor to KC868-AIO
#1
I am trying to connect  DS18b20 temperature sensor to KC868-AIO and get sensor ID from ESPHome logs

My configuration:

one_wire:
  - pin: GPIO01
    platform: gpio



This is what I am getting:

[10:58:55][C][gpio.one_wire:020]: GPIO 1-wire bus:
[10:58:55][C][gpio.one_wire:021]:  Pin: GPIO1
[10:58:55][W][gpio.one_wire:078]:  Found no devices!




   
Reply
#2
you can see esp32 pin define for KC868-AIO: https://www.kincony.com/forum/showthread.php?tid=2735
the 1-wire sensor gpio are:
DS18B20/DHT11/DHT21/LED strip -(TP1): GPIO14
DS18B20/DHT11/DHT21/LED strip -(TP2): GPIO5

so you use gpio14 or gpio5, NOT "gpio1"
Reply
#3
Thanks. It works now with GPIO14.
Reply
#4
I did the same for DHT11 but not showing anything. I connected to same pins with DSS18b20 (only the DHT without the DS).

This is what I used: (Anything wrong?)

# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
i2c:
  - id: bus_a
    sda: 4
    scl: 16
    scan: true


one_wire:
  - pin: GPIO014
    platform: gpio


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true
Reply
#5
now you just defined one_wire code in yaml. you have not added DHT11 code.

Code:
# Example configuration entry
sensor:
  - platform: dht
    pin: 14
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 10s
Reply
#6
My code now is like this and is FINALLY working:

Code:
one_wire:
 - pin: GPIO14
   platform: gpio
   
sensor:
  - platform: dallas_temp
    name: "AIO DS18B20 #1"
    update_interval: 10s  
 
Reply
#7
ok, good.
Reply
#8
So how difficult was for you to just give THESE lines of yaml for the DS18b20 in the first place??

Maybe yaml is easy for you but new users like me struggle to understand what is happening. That means either to drop out your product due to "support issues" and find other product, or struggle for a long time with trial and error.
Reply
#9
sorry, we can't take all sample demo code. such as you are usuing DS18B20, someone use DHT11, someone use SHT30. The methods of learning and problem-solving are the most important.
Reply
#10
As you can see, this thread is for DS18B20 on AIO. 

Pretty specific I would say.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)