Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sensor DHT22 on modul A16
#1
dear admin,

I am using KC868-A16 and I need to connect temperature and humidity sensors to 3 1-Wire inputs. I connected DS18B20 sensors to pins "GPIO32" and "GPIO33" and DHT22 sensor (/AM2302) to pin "GPIO14". When installing the module in HomeAssistant add-on ESPHome, DS18B20 sensors are loaded correctly, but DHT22 sensor is not found. I tried two DHT22 sensors with the same result.

This is the code in YAML
###
one_wire:
  - platform: gpio
    pin: GPIO32
    id: one_wire1
  - platform: gpio
    pin: GPIO33
    id: one_wire2
  - platform: gpio
    pin: GPIO14
    id: one_wire3

.
.
.
sensor:
  - platform: dallas_temp
    address: 0x773ce1d458ac1a28
    name: temperature1
    update_interval: 120s
    one_wire_id: one_wire1
  - platform: dallas_temp
    address: 0xfd3ce1d4432b6528
    name: temperature2
    update_interval: 120s
    one_wire_id: one_wire2
###


The attached image is a screenshot from the installation.
   

Please could you help me? Where am I making a mistake?

Is this the correct code to get values from DHT22?
###
- platform: dht
    model: DHT22
    one_wire_id: one_wire3
    temperature:
      name: "Temperature3"
    humidity:
      name: "Humidity3"
    update_interval: 30s

###
Reply
#2
how about your DHT22 connect with GPIO32 or GPIO33?
Reply
#3
thanks for the advice.
I swapped/moved the DHT22 sensor with one DS18B20 sensor, so I swapped the GPIO32 and GPIO14 inputs.
...the result is the same - the sensor is not recognized :o(.

can you recommend what to do next?


Attached Files Image(s)
   
Reply
#4
you can replace a new sensor, or take a photo how you wire.
Reply
#5
thanks for the quick response.
I have previously connected one DS18B20 sensor (from GPIO33) and DHT22 to GPIO32 and 33.... the result is still the same bad: Device not found 
=>     

and here are pictures of connecting the sensors to the terminal block... 
    and 
   
Reply
#6
maybe your sensor module need power 5V, not 3.3V, confirm with your sensor's seller.
This is the original DHT22 sensor.
   
Reply
#7
Manufacturer/seller states 3.3 to 5.5V DC - see photo
   
so maybe it should work on the A16 module too, right?

What voltage is your sensor https://shop.kincony.com/products/temper...ity-sensor   ? It also says 5V DC and it doesn't say whether it's a 1-Wire connection.
Reply
#8
DHT22 should work with KC868-A16, ESPHome support that. next week whether i have free time, i can check DHT22 with KC868-A16 board.
Reply
#9
hello,
I would like to ask if you got to test the DHT22 on the KC868-A16 inputs? maybe I'm making a mistake somewhere, but I don't see where :o(.
I got another DHT22 sensor I ordered and I need to install it on the A16 module.
I look forward to your response.
Reply
#10
DHT22 use by 3.5v--5.5v power. so i have contact with 433MHz receiver's pin, that have a 5V point.
[Image: attachment.php?aid=6611]   
[Image: attachment.php?aid=6609]   
[Image: attachment.php?aid=6608]   
[Image: attachment.php?aid=6607]   
[Image: attachment.php?aid=6606]   
[Image: attachment.php?aid=6610]   
Code:
esphome:
  name: a16
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light9"
    pin:
      pcf8574: pcf8574_hub_out_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

binary_sensor:
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

# Enable logging
logger:

# Enable Home Assistant API
api:

sensor:
  - platform: dht
    pin: 32
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

web_server:
  port: 80
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)