Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
K868-Uair proper GPIO assignation ?
#1
Hi

I'm tyring to use a K868-Uair with ESPHome but I have some problems ! According at Kincony ducomentation it should GPIO32 and 33 to control RGB LEDs of bottom ring and vertical bar ! Unhappy these two GPIOs are doing exactly the same thing: control the ring only and only 3 LEDs of it Sad
Someone has the proper GPIO configuration of that board ?
Noticed also that the Dallas temperature sensor is a chinese copy I think as it's 4/5° offset of other temperature sensors I have in the room Sad

Code used so far in ESPHome for LEDs:

Code:
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO33
    num_leds: 4
    name: "Barre"
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO32
    num_leds: 4
    name: "Ring"


Thanks for help

Vincèn
Reply
#2
esphome:
  name: kc868-uair
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "978e66f878ed5041b830cfb427393c79"

wifi:
  ssid: "KinCony"  # your wifi router ssid
  password: "12345678"  # your wifi password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kc868-Uair Fallback Hotspot"
    password: "FbTxCLlbDvbO"

captive_portal:

# follow configure use for DS18B20 temperature sensor, SHT30 temperature and humidity sensor. WS2812B RGB LEDs.
i2c:
  sda: 4
  scl: 16
  scan: true
  id: bus_a

         
# Example configuration entry
dallas:
  - pin: GPIO27
    update_interval: 15s

# Individual sensors
sensor:
  - platform: dallas
    address: 0xC000000004D81528  # your DS18B20 address
    name: "internal Temperature"
 
# Example configuration entry
  - platform: sht3xd
    temperature:
      name: "extend Temperature"
    humidity:
      name: "extend Humidity"
    address: 0x44
    update_interval: 15s
 
light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO32    # Pin Define connected with LED strip
    num_leds: 4  #LEDs number
    rgb_order: GRB
    name: "Uair-Bottom-LED"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO33    # Pin Define connected with LED strip
    num_leds: 1  #LEDs number
    rgb_order: RGB
    name: "Uair-Vertical-LED"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:


Attached Files
.zip   Made_for_ESPHome_KC868-Uair.zip (Size: 935 bytes / Downloads: 243)
Reply
#3
(03-09-2022, 09:34 AM)vincen Wrote: Hi

I'm tyring to use a K868-Uair with ESPHome but I have some problems ! According at Kincony ducomentation it should GPIO32 and 33 to control RGB LEDs of bottom ring and vertical bar ! Unhappy these two GPIOs are doing exactly the same thing: control the ring only and only 3 LEDs of it Sad
Someone has the proper GPIO configuration of that board ?
Noticed also that the Dallas temperature sensor is a chinese copy I think as it's 4/5° offset of other temperature sensors I have in the room Sad

Code used so far in ESPHome for LEDs:

Code:
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO33
    num_leds: 4
    name: "Barre"
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO32
    num_leds: 4
    name: "Ring"


Thanks for help

Vincèn


GPIO33 use for 1 LED
GPIO32 use for 4 LED
Reply
#4
(03-09-2022, 11:41 AM)admin Wrote:
(03-09-2022, 09:34 AM)vincen Wrote: Hi

I'm tyring to use a K868-Uair with ESPHome but I have some problems ! According at Kincony ducomentation it should GPIO32 and 33 to control RGB LEDs of bottom ring and vertical bar ! Unhappy these two GPIOs are doing exactly the same thing: control the ring only and only 3 LEDs of it Sad
Someone has the proper GPIO configuration of that board ?
Noticed also that the Dallas temperature sensor is a chinese copy I think as it's 4/5° offset of other temperature sensors I have in the room Sad

Code used so far in ESPHome for LEDs:

Code:
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO33
    num_leds: 4
    name: "Barre"
  - platform: neopixelbus
    type: GRB
    variant: WS2812X
    pin: GPIO32
    num_leds: 4
    name: "Ring"


Thanks for help

Vincèn


GPIO33 use for 1 LED
GPIO32 use for 4 LED

Thanks for code it works this way but it's using old RGB implementation mode of ESPHome Wink
Reply
#5
In fact the device has a hardware issue as one of the ring LED is wired with bar so only 3 LEDs of ring work together, the other one works with bar which kills the visual effect of the ring !! Are you aware of that problem on the device ??
[Image: IMG_20220311_193517.jpg]
Reply
#6
(03-11-2022, 07:03 PM)vincen Wrote: In fact the device has a hardware issue as one of the ring LED is wired with bar so only 3 LEDs of ring work together, the other one works with bar which kills the visual effect of the ring !! Are you aware of that problem on the device ??
[Image: IMG_20220311_193517.jpg]

no, 4 LEDs work together with ring LED. another one LED is indepentant. here is diagram, you can see details.
   
Reply
#7
(03-11-2022, 11:03 PM)admin Wrote: no, 4 LEDs work together with ring LED. another one LED is indepentant. here is diagram, you can see details.

Thanks for the schematics but it doesn't correspond with reality ! Have a look at my picture you can clearly one of the LED is not following the other ones on ring but the ones of bar Sad
Reply
#8
do you use my code directly? or changed something?
Reply
#9
(03-12-2022, 01:44 PM)admin Wrote: do you use my code directly? or changed something?

I use your code nearly without modifications, here it is:

Code:
substitutions:
  friendly_name: kincony-netatmo

esphome:
  name: $friendly_name

esp32:
  board: esp32dev
  framework:
    type: arduino

logger:

web_server:

ota:

wifi:
  networks:
  - ssid: !secret wifi
    password: !secret wifi_passwd
  - ssid: !secret wifi_puppy
    password: !secret wifi_puppy_passwd
  ap:
    ssid: $friendly_name

captive_portal:

api:
  reboot_timeout: 120min

#i2c:
#  sda: 4
#  scl: 16
#  scan: true
#  id: bus_a
 
dallas:
  - pin: GPIO27
    update_interval: 15s

sensor:
  - platform: dallas
    address: 0x0800000004680128
    name: "Temperature"

light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO32    # Pin Define connected with LED strip
    num_leds: 4  #LEDs number
    rgb_order: GRB
    name: "Ring"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO33    # Pin Define connected with LED strip
    num_leds: 1  #LEDs number
    rgb_order: RGB
    name: "Bar"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:
Reply
#10
i think you need to check software, hardware is no problem, here is some our demo images.
   
   
   
Reply


Forum Jump:


Users browsing this thread: