K868-Uair proper GPIO assignation ? - 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-Uair (https://www.kincony.com/forum/forumdisplay.php?fid=31) +--- Thread: K868-Uair proper GPIO assignation ? (/showthread.php?tid=1740) Pages:
1
2
|
K868-Uair proper GPIO assignation ? - vincen - 03-09-2022 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 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 Code used so far in ESPHome for LEDs: Code: light: Thanks for help Vincèn RE: K868-Uair proper GPIO assignation ? - admin - 03-09-2022 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: RE: K868-Uair proper GPIO assignation ? - admin - 03-09-2022 (03-09-2022, 09:34 AM)vincen Wrote: Hi GPIO33 use for 1 LED GPIO32 use for 4 LED RE: K868-Uair proper GPIO assignation ? - vincen - 03-11-2022 (03-09-2022, 11:41 AM)admin Wrote:(03-09-2022, 09:34 AM)vincen Wrote: Hi Thanks for code it works this way but it's using old RGB implementation mode of ESPHome RE: K868-Uair proper GPIO assignation ? - vincen - 03-11-2022 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 ?? RE: K868-Uair proper GPIO assignation ? - admin - 03-11-2022 (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 ?? RE: K868-Uair proper GPIO assignation ? - vincen - 03-12-2022 (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 RE: K868-Uair proper GPIO assignation ? - admin - 03-12-2022 do you use my code directly? or changed something? RE: K868-Uair proper GPIO assignation ? - vincen - 03-12-2022 (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: RE: K868-Uair proper GPIO assignation ? - admin - 03-13-2022 i think you need to check software, hardware is no problem, here is some our demo images. |